@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Color System */
    --bg-primary: #120A12;
    --bg-secondary: #241018;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-solid: #1e0d14;
    --xmas-red: #DC2626;
    --xmas-red-dark: #991b1b;
    --lux-gold: #FBBF24;
    --deep-gold: #B45309;
    --evergreen: #166534;
    --ice: #93C5FD;
    --text-primary: #FFFFFF;
    --text-secondary: #FDECC8;
    --text-muted: #B8A58A;
    
    /* Layout */
    --sidebar-width: 280px;
    --max-width: 1320px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--lux-gold);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Typography Classes */
.text-gradient {
    background: linear-gradient(to right, var(--lux-gold), var(--text-secondary), var(--deep-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.heading-xl { font-size: clamp(3rem, 5vw, 4.5rem); margin-bottom: 1rem; }
.heading-lg { font-size: clamp(2rem, 3vw, 3rem); margin-bottom: 1rem; }
.text-lead { font-size: 1.125rem; color: var(--text-secondary); margin-bottom: 2rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--xmas-red-dark), var(--xmas-red));
    color: white;
    border: 1px solid var(--lux-gold);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3), inset 0 0 10px rgba(251, 191, 36, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5), inset 0 0 15px rgba(251, 191, 36, 0.5);
    background: linear-gradient(45deg, var(--xmas-red), #ef4444);
}

.btn-secondary {
    background: transparent;
    color: var(--lux-gold);
    border: 2px solid var(--deep-gold);
}

.btn-secondary:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: var(--lux-gold);
}

/* Layout Structure */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Left Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-right: 1px solid rgba(251, 191, 36, 0.2);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    z-index: 100;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

/* Scrollbar for sidebar */
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(251, 191, 36, 0.3); border-radius: 10px; }

.brand-logo {
    display: block;
    margin-bottom: 2.5rem;
    text-align: center;
}

.brand-logo img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(251,191,36,0.3));
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(251,191,36,0.1) 0%, transparent 100%);
    transition: width 0.3s ease;
    z-index: 0;
}

.nav-link:hover::before, .nav-link.active::before {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--lux-gold);
    border-left: 3px solid var(--lux-gold);
    padding-left: calc(1rem - 3px);
}

.nav-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
    z-index: 1;
}

.nav-text {
    z-index: 1;
}

/* Sidebar CTA System Update */
.sidebar-cta {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.sidebar-cta .btn {
    width: 100%;
    font-size: 1.15rem;
    padding: 1.2rem 1rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--xmas-red-dark), var(--xmas-red), var(--lux-gold));
    background-size: 200% 200%;
    animation: sidebarCtaGlow 3s ease infinite;
    color: #FFFFFF;
    border: 2px solid var(--lux-gold);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4), inset 0 0 10px rgba(251, 191, 36, 0.4);
    letter-spacing: 1px;
}

.sidebar-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6), inset 0 0 15px rgba(251, 191, 36, 0.6);
}

@keyframes sidebarCtaGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.sidebar-compliance {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.compliance-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.age-badge {
    display: inline-block;
    border: 1px solid var(--text-muted);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 28px;
    text-align: center;
    font-weight: bold;
}

/* Mobile Header (Hidden on Desktop) */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(36, 16, 24, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
    z-index: 90;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.mobile-logo img {
    height: 40px;
    width: auto;
}

.menu-toggle {
    background: transparent;
    border: none;
    color: var(--lux-gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    display: flex;
    flex-direction: column;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-christmas-slot.webp');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18,10,18,0.4) 0%, rgba(18,10,18,0.9) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    text-align: center;
    margin-top: 5vh;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-compliance-panel {
    margin-top: 4rem;
    padding: 1rem;
    background: rgba(0,0,0,0.5);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.1);
    display: inline-block;
}

.hero-compliance-panel p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.25rem 0;
}

.hero-compliance-panel strong {
    color: var(--lux-gold);
}

/* Global Sections */
.section {
    padding: 6rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

/* Game Showcase */
.game-container {
    padding: 2px;
    background: linear-gradient(135deg, var(--deep-gold), var(--xmas-red), var(--lux-gold));
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(220,38,38,0.2);
    margin-top: -5rem;
    position: relative;
    z-index: 10;
}

.game-frame-wrapper {
    background: var(--bg-primary);
    border-radius: calc(var(--border-radius-lg) - 2px);
    overflow: hidden;
    aspect-ratio: 16/9;
    position: relative;
}

iframe.game-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.game-info {
    text-align: center;
    margin-top: 2rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    border-top: 1px solid rgba(251,191,36,0.3);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.08);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: -webkit-linear-gradient(var(--lux-gold), var(--deep-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Page Headers (Secondary Pages) */
.page-header {
    position: relative;
    padding: 10rem 2rem 5rem;
    text-align: center;
    border-bottom: 1px solid rgba(251,191,36,0.2);
}

.page-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/page-bg-christmas.webp');
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0.4;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    z-index: 2;
}

.page-header-content {
    position: relative;
    z-index: 3;
}

/* Content Pages */
.content-area {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.content-panel {
    padding: 3rem;
}

.content-panel h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.content-panel h2:first-child { margin-top: 0; }
.content-panel p { margin-bottom: 1.5rem; color: var(--text-secondary); }
.content-panel ul { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.content-panel li { margin-bottom: 0.5rem; color: var(--text-secondary); list-style-type: disc; }

/* Contact Form */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--lux-gold); font-size: 0.9rem; }
.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--lux-gold);
    background: rgba(0,0,0,0.5);
}
textarea.form-control { min-height: 150px; resize: vertical; }

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(251,191,36,0.1);
    padding: 4rem 2rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.footer-compliance {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--border-radius);
    background: rgba(0,0,0,0.2);
}

.footer-compliance p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-compliance p:last-child { margin-bottom: 0; }

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.footer-address {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.5rem;
}

/* Responsive */
@media (max-width: 991px) {
    .mobile-header { display: flex; }
    
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 20px 0 50px rgba(0,0,0,0.5);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding-top: 70px;
    }
    
    .hero { min-height: calc(100vh - 70px); }
    .page-header { padding-top: 6rem; }
}

@media (max-width: 768px) {
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; }
    .game-container { margin-top: 2rem; }
    .content-panel { padding: 2rem 1.5rem; }
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 95;
    backdrop-filter: blur(5px);
}

.sidebar-overlay.active { display: block; }