/* ===================================
   RESET & VARIABLES
=================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --color-primary: #6C2BD9;
    --color-primary-dark: #4A1B96;
    --color-primary-light: #8E4CF0;
    --color-secondary: #FFD700;
    --color-accent: #FF6B6B;
    --color-bg: #0A0118;
    --color-bg-light: #1A0B2E;
    --color-bg-card: #2D1B4E;
    --color-text: #FFFFFF;
    --color-text-muted: #B8A3D1;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6C2BD9 0%, #4A1B96 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --gradient-card: linear-gradient(135deg, rgba(108, 43, 217, 0.1) 0%, rgba(74, 27, 150, 0.1) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(108, 43, 217, 0.6);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   BUTTONS
=================================== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn--primary {
    background: var(--gradient-gold);
    color: var(--color-bg);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.btn--outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

.btn--large {
    padding: 16px 48px;
    font-size: 1.125rem;
}

.btn--glow {
    background: var(--gradient-gold);
    color: var(--color-bg);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    animation: btnGlow 2s ease-in-out infinite;
}

.btn--play {
    padding: 10px 24px;
    font-size: 0.875rem;
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.8); }
}

/* ===================================
   HEADER
=================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 1, 24, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(108, 43, 217, 0.2);
    padding: var(--spacing-sm) 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text);
    text-decoration: none;
}

.logo__icon {
    font-size: 2rem;
    animation: logoRotate 4s linear infinite;
}

@keyframes logoRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo__highlight {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: var(--spacing-md);
}

.nav__link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--color-secondary);
}

.nav__link:hover::after {
    width: 100%;
}

.header__buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===================================
   HERO SLIDER
=================================== */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--color-bg-light);
}

.hero-slider__container {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.hero-slide--active {
    opacity: 1;
    pointer-events: all;
}

.hero-slide__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 1, 24, 0.95) 0%, rgba(10, 1, 24, 0.4) 50%, transparent 100%);
}

.hero-slide__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide__content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
}

.hero-slide__badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-sm);
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-slide__title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-slide__text {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.hero-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.hero-slider__nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.hero-slider__nav--prev {
    left: var(--spacing-md);
}

.hero-slider__nav--next {
    right: var(--spacing-md);
}

.hero-slider__dots {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 12px;
}

.hero-slider__dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.hero-slider__dot--active {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: scale(1.2);
}

/* ===================================
   SECTIONS
=================================== */
.section {
    padding: var(--spacing-xl) 0;
}

.section--alt {
    background: var(--color-bg-light);
}

.section__header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

/* ===================================
   GAMES GRID
=================================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.game-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(108, 43, 217, 0.2);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.game-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.game-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-card__image img {
    transform: scale(1.1);
}

.game-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 1, 24, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover .game-card__overlay {
    opacity: 1;
}

.game-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 16px;
    background: var(--gradient-primary);
    color: var(--color-text);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-card__badge--live {
    background: linear-gradient(135deg, #FF4545 0%, #D81717 100%);
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 69, 69, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 69, 69, 0.8); }
}

.game-card__info {
    padding: var(--spacing-sm);
}

.game-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.game-card__provider {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ===================================
   PROVIDERS GRID
=================================== */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.provider-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(108, 43, 217, 0.2);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    transition: var(--transition);
}

.provider-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.provider-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.provider-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
}

/* ===================================
   TEXT CONTENT SECTION
=================================== */
.section--text {
    background: var(--color-bg);
}

.text-content {
    max-width: 900px;
    margin: 0 auto;
}

.text-content__title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-content__body {
    background: var(--color-bg-card);
    border: 1px solid rgba(108, 43, 217, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.text-content__body p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
}

.text-content__body p strong {
    color: var(--color-text);
    font-weight: 700;
}

.text-content__body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-left: 20px;
}

.text-content__body h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.text-content__body h3:first-of-type {
    margin-top: 0;
}

.text-content__cta {
    background: var(--gradient-card);
    border: 1px solid rgba(108, 43, 217, 0.4);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    margin: var(--spacing-lg) 0;
}

.text-content__cta p {
    font-size: 1.125rem;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.text-content__disclaimer {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.text-content__disclaimer p {
    margin-bottom: 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.text-content__disclaimer small {
    color: var(--color-text-muted);
}

/* ===================================
   FOOTER
=================================== */
.footer {
    background: var(--color-bg-light);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    border-top: 1px solid rgba(108, 43, 217, 0.2);
}

.footer__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.logo--footer {
    margin-bottom: var(--spacing-sm);
}

.footer__text {
    color: var(--color-text-muted);
    line-height: 1.6;
}

.footer__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--color-secondary);
}

.footer__bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(108, 43, 217, 0.2);
    color: var(--color-text-muted);
}

.footer__warning {
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--color-accent);
}

/* ===================================
   RESPONSIVE
=================================== */
@media (max-width: 1024px) {
    .hero-slide__title {
        font-size: 2.5rem;
    }
    
    .section__title {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .burger {
        display: flex;
    }
    
    .header__buttons {
        gap: 8px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    .hero-slider {
        height: 500px;
    }
    
    .hero-slide__title {
        font-size: 2rem;
    }
    
    .hero-slide__text {
        font-size: 1rem;
    }
    
    .hero-slider__nav {
        width: 40px;
        height: 40px;
    }
    
    .hero-slider__nav--prev {
        left: var(--spacing-sm);
    }
    
    .hero-slider__nav--next {
        right: var(--spacing-sm);
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .text-content__title {
        font-size: 2rem;
    }
    
    .text-content__body {
        padding: var(--spacing-md);
    }
    
    .text-content__body h3 {
        font-size: 1.25rem;
    }
    
    .section__title {
        font-size: 1.75rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .providers-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .footer__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo__text {
        font-size: 1.25rem;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .hero-slide__title {
        font-size: 1.5rem;
    }
    
    .hero-slide__text {
        font-size: 0.875rem;
    }
    
    .btn--large {
        padding: 12px 32px;
        font-size: 1rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .text-content__title {
        font-size: 1.5rem;
    }
    
    .text-content__body {
        padding: var(--spacing-sm);
    }
    
    .text-content__body p {
        font-size: 0.9375rem;
    }
    
    .text-content__body h3 {
        font-size: 1.125rem;
    }
}

/* ===================================
   ONLINE STATS WIDGET
=================================== */
.online-stats {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    background: var(--color-bg-card);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    min-width: 280px;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(108, 43, 217, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.online-stats.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.online-stats__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid rgba(108, 43, 217, 0.3);
}

.online-stats__icon {
    font-size: 1.5rem;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.online-stats__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.online-stats__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.online-stats__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.online-stats__label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.online-stats__value {
    font-size: 1.25rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.online-stats__value--online {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.online-stats__value--playing {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.online-stats__value.updating {
    animation: numberUpdate 0.3s ease;
}

@keyframes numberUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.online-stats__pulse {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    animation: pulseGlow 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0; transform: scale(1.05); }
}

/* Responsive */
@media (max-width: 768px) {
    .online-stats {
        bottom: 20px;
        left: 20px;
        min-width: 240px;
        padding: 12px;
    }
    
    .online-stats__title {
        font-size: 0.875rem;
    }
    
    .online-stats__label {
        font-size: 0.75rem;
    }
    
    .online-stats__value {
        font-size: 1rem;
        padding: 3px 10px;
    }
}

@media (max-width: 480px) {
    .online-stats {
        bottom: 15px;
        left: 15px;
        right: 15px;
        min-width: auto;
    }
}
