/* ===== YUKON GOLD CASINO - DESIGN SYSTEM ===== */
/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
    /* Brand Colors (Yukon Gold specific) */
    --brand-bg: #0b0e14;
    /* Deep charcoal/blue background */
    --brand-surface: #131722;
    /* Glass surface */
    --brand-emerald: #058A43;
    /* Yukon Green */
    --brand-green-glow: rgba(5, 138, 67, 0.2);
    --brand-gold: #D4AF37;
    /* Yukon Gold */
    --brand-gold-glow: rgba(212, 175, 55, 0.2);
    --brand-red: #7C1B23;
    /* Accents */

    /* Text */
    --text-pure: #ffffff;
    --text-primary: #e6e9f0;
    --text-muted: #8892b0;

    /* Layout */
    --sidebar-width: 280px;
    --bottom-bar-height: 65px;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;

    /* Z-Index */
    --z-sidebar: 1000;
    --z-header: 900;
    --z-modal: 2000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--brand-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--brand-gold);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== LAYOUT: DESKTOP SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(19, 23, 34, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: var(--z-sidebar);
    display: flex;
    flex-direction: column;
    padding: 30px 24px;
}

.brand-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.brand-logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 12px var(--brand-gold-glow));
}

.nav-menu {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--brand-gold);
    box-shadow: inset 3px 0 0 var(--brand-gold);
}

.nav-icon {
    font-size: 20px;
}

.sidebar-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: inherit;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-gold), #b38b22);
    color: var(--brand-bg);
    box-shadow: 0 4px 20px var(--brand-gold-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--brand-emerald);
    color: var(--brand-emerald);
}

.btn-secondary:hover {
    background: var(--brand-green-glow);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle at center, var(--brand-green-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, var(--brand-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 14, 20, 0.8), transparent);
}

.hero-stats {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.stat-item {
    background: rgba(19, 23, 34, 0.7);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-val {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-gold);
}

.stat-label {
    font-size: 14px;
    color: var(--text-primary);
}

/* ===== GLASS CARDS (CHARTS/TABLES) ===== */
.section {
    padding: 80px 0;
    position: relative;
}

.section-head {
    margin-bottom: 48px;
    text-align: center;
}

.section-head h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.grid-cols {
    display: grid;
    gap: 32px;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-cols-2>div,
.grid-cols-3>div,
.grid-cols-4>div {
    min-width: 0;
    /* Prevents Chart.js grid breakout */
}

.glass-card {
    background: var(--brand-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.3);
}

.card-title {
    font-size: 20px;
    color: var(--text-pure);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Chart containers */
.chart-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
}

/* Lists */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(5, 138, 67, 0.1);
    color: var(--brand-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 24px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
}

.glass-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.glass-table th,
.glass-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-table th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--brand-gold);
    font-weight: 600;
}

.glass-table tr:last-child td {
    border-bottom: none;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: var(--brand-red);
    color: #fff;
}

.badge.success {
    background: var(--brand-emerald);
}

/* SEO Content */
.seo-content {
    background: var(--brand-surface);
    padding: 60px;
    border-radius: var(--radius-lg);
    border-top: 4px solid var(--brand-emerald);
}

.seo-content h2,
.seo-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.seo-content h2:first-child {
    margin-top: 0;
}

.seo-content p {
    margin-bottom: 24px;
    font-size: 16px;
    color: var(--text-primary);
}

.seo-content a {
    color: var(--brand-gold);
    text-decoration: underline;
    text-decoration-color: rgba(212, 175, 55, 0.4);
    text-underline-offset: 4px;
}

.seo-content a:hover {
    color: var(--brand-emerald);
    text-decoration-color: var(--brand-emerald);
}

/* FOOTER */
.site-footer {
    background: #06080b;
    padding: 80px 0 40px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 20px;
}

.footer-heading {
    color: var(--text-pure);
    font-size: 18px;
    margin-bottom: 24px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--brand-gold);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-legal {
    font-size: 14px;
    color: #555;
}

/* ===== AUTH FORMS ===== */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: radial-gradient(circle at center, var(--brand-surface) 0%, var(--brand-bg) 100%);
}

.auth-card {
    background: rgba(19, 23, 34, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 48px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.auth-logo {
    display: block;
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo img {
    height: 70px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-gold);
    background: rgba(0, 0, 0, 0.5);
}

.auth-disclaimer {
    font-size: 12px;
    text-align: center;
    color: var(--text-muted);
    margin-top: 24px;
}

/* ===== MOBILE ADAPTATION ===== */
/* Topbar for mobile */
.mobile-topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(11, 14, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: var(--z-header);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
}

.mobile-overlay-menu {
    display: none;
}


.mobile-logo img {
    height: 40px;
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-bar-height);
    background: rgba(19, 23, 34, 0.95);
    backdrop-filter: blur(10px);
    z-index: var(--z-header);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0 10px;
}

.bottom-nav-list {
    display: flex;
    height: 100%;
    justify-content: space-between;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 4px;
    font-size: 11px;
}

.bottom-nav-item.active {
    color: var(--brand-gold);
}

.bottom-nav-icon {
    font-size: 22px;
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar {
        width: 220px;
    }

    .main-content {
        margin-left: 220px;
    }
}

@media (max-width: 768px) {

    /* Hide specific desktop sidebar */
    .sidebar {
        display: none;
    }

    /* Enable Mobile Bars */
    .mobile-topbar {
        display: flex;
    }

    .mobile-bottom-nav {
        display: block;
    }

    /* Adjust Main Content */
    .main-content {
        margin-left: 0;
        padding-top: 70px;
        padding-bottom: calc(var(--bottom-bar-height) + 20px);
    }

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .mobile-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
        display: flex;
        align-items: center;
    }

    .mobile-logo img {
        height: 40px;
    }

    .burger-menu-btn {
        background: none;
        border: none;
        color: var(--brand-gold);
        font-size: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        margin-left: -10px;
        /* offsets padding for visual alignment */
        cursor: pointer;
        z-index: 2;
    }

    .mobile-overlay-menu {
        position: fixed;
        inset: 0;
        background: rgba(11, 14, 20, 0.98);
        z-index: var(--z-modal);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        padding: 20px;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
        pointer-events: none;
    }

    .mobile-overlay-menu.is-active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .overlay-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 40px;
        margin-top: 10px;
    }

    .close-menu-btn {
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .overlay-links {
        display: flex;
        flex-direction: column;
        gap: 20px;
        flex-grow: 1;
    }

    .overlay-links a {
        font-size: 22px;
        font-weight: 600;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 15px;
    }

    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 40px 0;
    }

    .seo-content {
        padding: 30px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}