/* ================================================
   ROYAL CASINO - Common Styles
   Theme: Emerald Gold Luxury
   Fonts: Cinzel + Rajdhani
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Rajdhani:wght@300;400;500;600;700&family=Orbitron:wght@400;500;700;900&display=swap');

:root {
    /* Brand Colors */
    --primary-color: #00c97b;       /* Emerald Green */
    --primary-hover: #00a862;
    --primary-dark: #007a47;
    --gold: #d4a017;                /* Royal Gold */
    --gold-light: #f0c940;
    --gold-dim: #8a6800;
    --secondary-color: #0a1a0f;    /* Deep Forest */
    --accent-color: #f0c940;

    /* Backgrounds */
    --bg-dark: #050d08;
    --bg-card: #0c1a10;
    --bg-card2: #0f2014;
    --bg-surface: #132018;
    --header-bg: rgba(5, 13, 8, 0.97);

    /* Text */
    --text-main: #e8f5e9;
    --text-muted: #7aab86;
    --text-white: #ffffff;
    --text-gold: #d4a017;

    /* Borders */
    --border-color: #1c3a22;
    --border-gold: rgba(212, 160, 23, 0.3);

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;

    /* Utilities */
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 6px;
    --border-radius-lg: 16px;
    --container-width: 1300px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.5);
    --shadow-md: 0 6px 24px rgba(0, 201, 123, 0.15);
    --shadow-lg: 0 16px 50px rgba(0, 201, 123, 0.25);
    --shadow-gold: 0 8px 32px rgba(212, 160, 23, 0.3);
}

/* ─── Reset ─────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.02em;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ─── Scrollbar ──────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--gold));
    border-radius: 3px;
}

/* ─── Ambient Background ─────────────────────── */
.ambient-background {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    background: radial-gradient(ellipse at 20% 10%, rgba(0,100,50,0.2) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(212,160,23,0.08) 0%, transparent 50%),
                linear-gradient(160deg, #050d08 0%, #0a1a0f 50%, #050d08 100%);
}
.ambient-background::after {
    content: '';
    position: absolute; inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 80px,
            rgba(0,201,123,0.015) 80px,
            rgba(0,201,123,0.015) 81px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 80px,
            rgba(0,201,123,0.015) 80px,
            rgba(0,201,123,0.015) 81px
        );
}

/* ─── Container ──────────────────────────────── */
.container { width: 92%; max-width: var(--container-width); margin: 0 auto; }

/* ─── Header ─────────────────────────────────── */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-gold);
    z-index: 1005;
    transition: var(--transition);
    height: 75px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
header.scrolled {
    height: 65px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.6);
    border-bottom-color: rgba(0,201,123,0.25);
}
.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
    max-width: var(--container-width);
    margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 42px; transition: var(--transition); }
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 3px;
    text-transform: uppercase;
}
header.scrolled .logo img { height: 36px; }

/* Nav */
.nav-list ul { display: flex; gap: 2.5rem; }
.nav-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--gold));
    border-radius: 1px;
    transition: var(--transition);
}
.nav-link:hover { color: var(--text-main); }
.nav-link:hover::after { width: 100%; }

/* CTA Button */
.btn-signup {
    padding: 0.75rem 1.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--gold));
    color: #000;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
    box-shadow: 0 4px 18px rgba(0,201,123,0.35);
    border: none;
}
.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,201,123,0.5);
    color: #000;
}

/* ─── Mobile Toggle ──────────────────────────── */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px; height: 18px;
    background: none; border: none;
    cursor: pointer; z-index: 1010;
}
.mobile-menu-toggle span {
    width: 100%; height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* ─── Mobile Responsive ──────────────────────── */
@media (max-width: 992px) {
    .nav-list {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0; right: -100%;
        width: 290px; height: 100vh;
        background: #060e09;
        border-left: 1px solid var(--border-gold);
        padding: 6rem 2.5rem;
        z-index: 1000;
        box-shadow: -10px 0 40px rgba(0,0,0,0.7);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        visibility: hidden;
    }
    .nav-list.active { right: 0; visibility: visible; }
    .mobile-menu-overlay {
        display: none;
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.7);
        backdrop-filter: blur(5px);
        z-index: 998;
    }
    .mobile-menu-overlay.active { display: block; }
    .nav-list ul { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .mobile-menu-toggle { display: flex; z-index: 2001; }
    .mobile-menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .header-container { padding: 1rem 16px; gap: 10px; }
    .logo { flex-shrink: 0; }
    .logo img { height: 34px; }
    .header-auth { flex-shrink: 0; margin-left: auto; }
    .header-auth .btn-signup { padding: 0.4rem 0.9rem; font-size: 0.72rem; }
    .mobile-menu-toggle { position: static; flex-shrink: 0; width: 22px; height: 16px; }
}

/* ─── Footer ─────────────────────────────────── */
footer {
    background: linear-gradient(180deg, #060e09 0%, #030808 100%);
    border-top: 1px solid var(--border-gold);
    padding: 0;
    margin-top: 0;
}

/* ─── Ad Container ───────────────────────────── */
.ad-container {
    max-width: 1200px;
    margin: 2rem auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-gold);
}

/* ─── Animation Utilities ────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0,201,123,0.3); }
    50%       { box-shadow: 0 0 40px rgba(0,201,123,0.7); }
}
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.reveal { animation: fadeInUp 0.8s ease-out forwards; }

/* ─── Mobile Bottom Bar ──────────────────────── */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: rgba(5, 13, 8, 0.97);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-gold);
    padding: 10px 15px;
    z-index: 1005;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.6);
    gap: 12px;
    justify-content: space-between;
}
.mobile-bottom-bar a {
    flex: 1; text-align: center;
    padding: 12px 0;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.mobile-bottom-bar .btn-login {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.mobile-bottom-bar .btn-register {
    background: linear-gradient(135deg, var(--primary-color), var(--gold));
    color: #000;
    border: none;
    box-shadow: 0 4px 18px rgba(0,201,123,0.4);
}

/* ─── Section Common ─────────────────────────── */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    body { padding-bottom: max(88px, calc(72px + env(safe-area-inset-bottom))); }
    .section-title { font-size: 1.85rem; margin-bottom: 2rem; }
    footer { padding: 4rem 5% 2rem; }
    .header-container { padding: 1rem 12px; gap: 8px; }
    .header-auth { display: block; flex-shrink: 0; margin-left: auto; }
    .header-auth .btn-signup { padding: 0.4rem 0.8rem; font-size: 0.72rem; }
    .mobile-menu-toggle { position: static; flex-shrink: 0; width: 22px; height: 16px; }
}