/* ==========================================================================
   Luxury Royal Casino Theme - Common CSS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors - Deep Obsidian & Lustrous 24K Gold with Royal Magenta */
    --primary-color: #f59e0b;       /* Rich Amber Gold */
    --primary-light: #ffd700;       /* Bright Radiant Gold */
    --primary-dark: #b45309;        /* Deep Bronze Gold */
    --secondary-color: #a855f7;     /* Royal Violet */
    --accent-color: #ec4899;        /* Hot Magenta Neon */
    --accent-cyan: #06b6d4;         /* Electric Cyan */
    --accent-emerald: #10b981;      /* Lucky Emerald Green */

    /* Backgrounds */
    --bg-dark: #0a0612;            /* Deep Obsidian Midnight Violet */
    --bg-surface: #130a21;         /* Deep Royal Plum */
    --bg-card: rgba(22, 12, 38, 0.88); /* Glass Card */
    --bg-glass: rgba(14, 8, 25, 0.94);
    --header-bg: rgba(11, 6, 20, 0.95);

    /* Text */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-gold: #ffd700;

    /* Borders & Glows */
    --border-color: rgba(245, 158, 11, 0.28);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-gold-glow: 0 0 15px rgba(245, 158, 11, 0.35);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ffd700 0%, #f59e0b 50%, #d97706 100%);
    --gradient-gold-text: linear-gradient(180deg, #ffffff 0%, #ffe259 40%, #ffa751 100%);
    --gradient-accent: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    --gradient-card: linear-gradient(145deg, rgba(30, 16, 52, 0.8) 0%, rgba(18, 9, 32, 0.9) 100%);
    --transition: cubic-bezier(0.25, 0.8, 0.25, 1) 0.35s all;
}

[data-theme="light"] {
    --bg-dark: #faf6ef;            /* Luxury Champagne Ivory */
    --bg-surface: #f3ece0;         /* Warm Soft Gold */
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-glass: rgba(253, 250, 243, 0.96);
    --header-bg: rgba(250, 246, 239, 0.97);
    --text-main: #1c1524;
    --text-muted: #64748b;
    --border-color: rgba(180, 83, 9, 0.25);
    --border-subtle: rgba(0, 0, 0, 0.08);
    --primary-color: #d97706;
    --primary-light: #f59e0b;
    --secondary-color: #7c3aed;
    --gradient-primary: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.02em;
    font-weight: 800;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    word-break: break-word;
    background-image: 
        radial-gradient(circle at 10% 15%, rgba(168, 85, 247, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 10%, rgba(245, 158, 11, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.06) 0%, transparent 55%),
        radial-gradient(circle at 80% 85%, rgba(6, 182, 212, 0.08) 0%, transparent 45%);
}

[data-theme="light"] body {
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(217, 119, 6, 0.09) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(168, 85, 247, 0.06) 0%, transparent 45%);
}

.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-size: cover;
}

/* Base Utility Classes */
.container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-light), var(--primary-dark));
    border-radius: 4px;
}

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

ul {
    list-style: none;
}
img { max-width: 100%; height: auto;}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 6, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2005;
    transition: var(--transition);
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(245, 158, 11, 0.15);
}

header.scrolled {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    height: 72px;
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo img {
    height: 44px;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.45));
    transition: var(--transition);
}
.logo img:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.7));
}

.nav-list ul {
    display: flex;
    gap: 1.6rem;
    align-items: center;
}

.nav-list a {
    font-size: 0.88rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    position: relative;
    padding: 6px 0;
    white-space: nowrap;
    transition: color 0.3s;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
    transition: var(--transition);
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-list a:hover {
    color: var(--primary-light);
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--primary-light);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.theme-toggle-btn:hover {
    background: rgba(245, 158, 11, 0.2);
    transform: rotate(20deg) scale(1.08);
    color: #fff;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

[data-theme="light"] .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(180, 83, 9, 0.25);
    color: var(--primary-color);
}

.header-auth .btn-signup {
    background: var(--gradient-primary);
    color: #0b0614;
    padding: 0.65rem 1.6rem;
    font-size: 0.82rem;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header-auth .btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.65);
    filter: brightness(1.08);
}

.section-title {
    font-size: 2.6rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #fff;
    letter-spacing: -0.5px;
    font-weight: 900;
    text-transform: uppercase;
}

.section-prefix {
    text-align: center;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.section-prefix::before,
.section-prefix::after {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--gradient-primary);
    display: inline-block;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 2001;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 2.5px;
    background: var(--primary-light);
    transition: var(--transition);
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 6, 18, 0.8);
    z-index: 2004;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.no-scroll {
    overflow: hidden;
}

/* Footer */
footer {
    background: #07040d;
    padding: 5rem 5% 2rem;
    margin-top: 5rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top center, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.footer-brand .footer-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-top: 1.2rem;
    max-width: 380px;
    line-height: 1.8;
}

.footer-nav h4, .footer-contact h4 {
    color: var(--primary-light);
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-nav h4::before,
.footer-contact h4::before {
    content: '◆';
    color: var(--primary-color);
    font-size: 0.75rem;
}

.footer-nav ul, .footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-nav a:hover {
    color: var(--primary-light);
    padding-left: 8px;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.footer-contact li {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(245, 158, 11, 0.15);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}

[data-theme="light"] footer {
    background: #f0e7d8;
    border-top: 1px solid rgba(180, 83, 9, 0.2);
}

[data-theme="light"] footer::before {
    background: radial-gradient(circle at top center, rgba(217, 119, 6, 0.08), transparent 60%);
}

[data-theme="light"] .footer-bottom {
    border-top: 1px solid rgba(180, 83, 9, 0.15);
    color: var(--text-muted);
}

/* Mobile Bar */
.mobile-bottom-bar { display: none; }

@media(max-width: 992px) {
    header { height: 72px; }
    .header-container { padding: 0 1.5rem; }
    .nav-list {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: #10081d;
        padding: 5rem 1.75rem 2rem;
        z-index: 2000;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--border-color);
        overflow-y: auto;
    }
    .nav-list.active { right: 0; }
    .nav-list ul { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
    .nav-list a { font-size: 1.05rem; padding: 6px 0; }
    .mobile-menu-toggle { display: flex; }
    .header-auth .btn-signup { display: none; }
    .mobile-nav-cta { display: block !important; }
    
    .footer-top { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
    .footer-brand .footer-desc { margin: 1rem auto; }
    .footer-nav h4, .footer-contact h4 { justify-content: center; }
    .footer-contact li { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .section-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .container { width: 92%; }
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; width: 100%;
        background: rgba(14, 8, 25, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--border-color);
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
        z-index: 1005;
        justify-content: space-between;
        gap: 12px;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    }
    .mobile-bottom-bar a {
        flex: 1; text-align: center; padding: 12px 0;
        font-family: 'Montserrat', sans-serif; font-weight: 800;
        text-transform: uppercase; border-radius: 50px;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    .mobile-bottom-bar .btn-login { 
        border: 1px solid var(--primary-color); 
        color: var(--primary-light); 
        background: rgba(245, 158, 11, 0.1);
        box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
    }
    .mobile-bottom-bar .btn-register { 
        background: var(--gradient-primary); 
        color: #0b0614; 
        box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45);
    }
    body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 576px) {
    header { height: 68px; }
    .header-container { padding: 0 1rem; }
    .logo img { height: 36px; }
    .theme-toggle-btn { width: 34px; height: 34px; font-size: 0.9rem; }
    .section-title { font-size: 1.85rem; margin-bottom: 2rem; }
}
