/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-gold: #FCD34D;
    --color-gold-light: #FDE68A;
    --color-navy: #0F172A;
    --color-navy-light: #1E293B;
    --color-slate: #334155;
    --color-slate-light: #475569;
    --color-ivory: #F8FAFC;
    --color-accent: #F59E0B;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--color-navy);
    color: var(--color-ivory);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    color: var(--color-navy);
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(252, 211, 77, 0.3);
    text-decoration: none;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--color-slate);
    color: var(--color-ivory);
    padding: 12px 24px;
    border: 1px solid var(--color-slate-light);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: var(--color-slate-light);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--color-navy-light);
    border: 2px solid var(--color-gold);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.modal-content h2 {
    color: var(--color-gold);
    font-size: 2rem;
    margin-bottom: 16px;
}

.modal-subtitle {
    color: var(--color-slate-light);
    font-size: 0.9rem;
    margin-top: 8px;
}

.modal-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.modal-buttons button {
    flex: 1;
    padding: 16px;
    text-align: center;
    justify-content: center;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-navy-light);
    border-top: 2px solid var(--color-gold);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 100;
    padding: 20px 0;
}

.cookie-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.cookie-icon {
    font-size: 2rem;
}

.cookie-text h3 {
    color: var(--color-gold);
    margin-bottom: 8px;
}

.cookie-text p {
    color: var(--color-ivory);
    font-size: 0.9rem;
}

.cookie-text a {
    color: var(--color-gold);
    text-decoration: underline;
}

.cookie-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

.cookie-buttons button {
    text-align: center;
    justify-content: center;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-slate);
    z-index: 50;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    border-radius: 8px;
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background-color: var(--color-navy);
    border-radius: 4px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--color-ivory);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.nav-link:hover {
    color: var(--color-gold);
}

.nav-link.active {
    color: var(--color-gold);
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold-light), var(--color-gold));
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--color-ivory);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-navy) 0%, #1a202c 50%, var(--color-navy) 100%);
    opacity: 0.2;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(252, 211, 77, 0.05) 35px, rgba(252, 211, 77, 0.05) 70px);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px 0;
}

.hero-icon {
    font-size: 4rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 24px 0;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--color-slate-light);
    max-width: 800px;
    margin: 0 auto 48px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.feature-card {
    background-color: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-slate);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    color: var(--color-ivory);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--color-slate-light);
    font-size: 0.9rem;
}

/* Section Styles */
.section {
    padding: 80px 0;
    background-color: var(--color-slate);
}

.section-dark {
    background-color: var(--color-navy);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 24px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--color-slate-light);
    font-size: 1.1rem;
}

.text-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.game-card {
    background-color: var(--color-slate);
    border: 1px solid var(--color-slate-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.game-card[style*="display: none"] {
    opacity: 0;
    transform: scale(0.9);
}

.game-card:hover {
    border-color: var(--color-gold);
    box-shadow: 0 8px 24px rgba(252, 211, 77, 0.2);
    transform: translateY(-4px);
}

.game-image {
    position: relative;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--color-slate-light), var(--color-slate));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-placeholder {
    font-size: 4rem;
    opacity: 0.4;
}

.game-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(252, 211, 77, 0.1), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.3s ease;
    pointer-events: none;
}

.game-card:hover .game-overlay {
    background: linear-gradient(135deg, rgba(252, 211, 77, 0.3), rgba(30, 41, 59, 0.5));
}

.game-overlay .btn-primary,
.game-overlay .btn-secondary {
    font-size: 1.1rem;
    padding: 14px 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.game-overlay .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(252, 211, 77, 0.5);
}

.game-info {
    padding: 20px;
}

.game-info h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.game-type {
    color: var(--color-gold);
    font-weight: 600;
}

.game-players {
    color: var(--color-slate-light);
}

/* Info Cards */
.features-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.info-card {
    background-color: var(--color-navy-light);
    border: 1px solid var(--color-slate);
    border-radius: 12px;
    padding: 32px;
}

.info-card h3 {
    color: var(--color-gold);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.info-card p {
    color: var(--color-slate-light);
}

/* Footer */
.footer {
    background-color: #0a0f1a;
    border-top: 1px solid var(--color-slate);
    padding: 48px 0 24px;
}

.age-warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), transparent);
    border: 2px solid var(--color-accent);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-bottom: 48px;
}

.age-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 3rem;
    margin-bottom: 16px;
}

.age-text {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-gold);
}

.age-warning h3 {
    color: var(--color-gold);
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.age-warning p {
    color: var(--color-slate-light);
    margin-bottom: 32px;
}

.responsible-gaming-links {
    border-top: 1px solid rgba(251, 191, 36, 0.3);
    padding-top: 32px;
    margin-top: 32px;
}

.responsible-gaming-links h4 {
    color: var(--color-gold);
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.org-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.org-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.org-logo:hover {
    opacity: 0.8;
}

.org-box {
    width: 100px;
    height: 80px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow: hidden;
}

.org-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.org-logo span {
    color: var(--color-slate-light);
    font-size: 0.75rem;
    text-align: center;
    font-weight: 500;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--color-gold);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--color-slate-light);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--color-gold);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
}

.footer-logo .logo-text {
    font-size: 1.25rem;
}

.footer-bottom {
    border-top: 1px solid var(--color-slate);
    padding-top: 24px;
    text-align: center;
    color: var(--color-slate-light);
}

.footer-bottom p {
    margin-bottom: 8px;
}

.footer-bottom .small {
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--color-navy-light);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--color-slate);
    }

    .nav.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner .container {
        flex-direction: column;
    }

    .cookie-buttons {
        width: 100%;
    }

    .cookie-buttons button {
        flex: 1;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .org-logos {
        gap: 16px;
    }

    .org-box {
        width: 60px;
        height: 60px;
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .age-warning {
        padding: 24px;
    }

    .org-logos {
        justify-content: space-around;
    }
}
