/* === VARIABLE DEFINITIONS === */
:root {
    --color-background: #0a0515;
    --color-surface: #1a0f2e;
    --color-primary: #ffd700;
    --color-secondary: #ff6b35;
    --color-accent: #9b59b6;
    --color-on-background: #ffffff;
    --color-on-surface: #ffffff;
    --color-border: rgba(255, 215, 0, 0.3);
    --font-main: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, #0a0515 0%, #1a0f2e 50%, #2d1b4e 100%);
    background-attachment: fixed;
    color: var(--color-on-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 80px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(
            circle at 20% 50%,
            rgba(255, 215, 0, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(155, 89, 182, 0.1) 0%,
            transparent 50%
        );
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 15px;
    position: relative;
    z-index: 1;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === HEADER === */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(
        135deg,
        rgba(26, 15, 46, 0.95) 0%,
        rgba(45, 27, 78, 0.95) 100%
    );
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__logo img {
    height: 50px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    border-radius: 12px;
}

.header__logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.header__actions {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition:
        width 0.6s,
        height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn--primary {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    background-size: 200% auto;
    color: #1a0f2e;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.btn--primary:hover {
    background-position: right center;
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.6);
    transform: translateY(-2px);
}

.btn--secondary {
    background: linear-gradient(135deg, #8e44ad 0%, #c337ff 50%, #8e44ad 100%);
    background-size: 200% auto;
    box-shadow: 0 4px 20px rgba(142, 68, 173, 0.4);
}

.btn--secondary:hover {
    background-position: right center;
    box-shadow: 0 6px 30px rgba(142, 68, 173, 0.6);
    transform: translateY(-2px);
}

/* === BANNER === */
.banner {
    margin: 20px 0 10px 0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.banner__slide {
    display: none;
    animation: fadeIn 0.8s ease-in-out;
    cursor: pointer;
    text-decoration: none;
}

.banner__slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.banner__image {
    width: 100%;
    object-fit: cover;
}

/* === GAME SECTION === */
.game-section {
    padding: 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--color-on-surface);
    text-shadow:
        0 0 20px rgba(255, 215, 0, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ffd700 0%, transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.game-card {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 35px;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.1) 0%,
        rgba(155, 89, 182, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.game-card:hover {
    transform: translateY(-5px) scale(1.02);
}

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

.game-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: all 0.3s ease;
    position: relative;
    z-index: 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.game-card:hover .game-card__image {
    filter: brightness(0.7) contrast(1.1);
    transform: scale(1.05);
}

.game-card__title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 5px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    background: rgba(0, 0, 0, 0.75);
    transition: all 0.3s ease;
    z-index: 2;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.game-card:hover .game-card__title {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    text-shadow:
        0 0 10px rgba(255, 215, 0, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.8);
}

.game-card::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transform-origin: center;
    font-size: 40px;
    color: rgba(255, 215, 0, 0.95);
    text-shadow:
        0 0 20px rgba(255, 215, 0, 1),
        0 0 40px rgba(255, 215, 0, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.8);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 3;
}

@keyframes pulse {
    0%,
    100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

.game-card:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* === PROVIDERS SECTION === */
.providers-section {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
}

.provider-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.provider-track {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: marquee 30s linear infinite;
    width: fit-content;
    padding: 10px 0;
}

.provider-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.provider-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.provider-logo {
    height: 75px;
    width: auto;
    opacity: 0.85;
    transition: all 0.4s ease;
    filter: grayscale(0.2) brightness(1.1);
    flex-shrink: 0;
}

.provider-logo:hover {
    transform: scale(1.2);
    opacity: 1;
    filter: grayscale(0) brightness(1.3)
        drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
}

/* === FOOTER === */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(
        135deg,
        rgba(26, 15, 46, 0.98) 0%,
        rgba(45, 27, 78, 0.98) 100%
    );
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.btn-play-game {
    display: inline-block;
    padding: 14px 50px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.1rem;
    color: #1a0f2e;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    background-size: 200% auto;
    box-shadow:
        0 6px 25px rgba(255, 215, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    text-align: center;
}

.btn-play-game::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition:
        width 0.6s,
        height 0.6s;
}

.btn-play-game:hover::before {
    width: 400px;
    height: 400px;
}

.btn-play-game:hover {
    background-position: right center;
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 8px 35px rgba(255, 215, 0, 0.7),
        0 0 50px rgba(255, 215, 0, 0.5);
}

.btn-play-game:active {
    transform: translateY(-1px) scale(1.02);
}

/* === RESPONSIVE STYLES === */
@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .game-card {
        padding-bottom: 32px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .header__logo img {
        height: 42px;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .container {
        padding: 12px;
    }

    .game-card__title {
        font-size: 0.75rem;
        padding: 6px 3px;
    }

    .game-card::after {
        font-size: 35px;
    }

    .banner {
        margin: 15px 0 8px 0;
        border-radius: 15px;
    }

    .provider-logo {
        height: 50px;
    }

    .provider-track {
        gap: 50px;
    }
}

@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .game-card {
        padding-bottom: 30px;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .header {
        padding: 12px 15px;
    }

    .header__logo img {
        height: 38px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .game-card__title {
        font-size: 0.7rem;
        padding: 5px 2px;
    }

    .game-card::after {
        font-size: 30px;
    }

    .provider-logo {
        height: 45px;
    }

    .provider-track {
        gap: 40px;
    }

    .banner {
        border-radius: 12px;
    }

    .btn-play-game {
        padding: 12px 40px;
        font-size: 1rem;
    }

    body {
        padding-bottom: 70px;
    }
}
