/* ============================================
   PUBLIC SITE - UNIFIED DESIGN SYSTEM
   Shared by every public page (home, game, and the
   About / Contact / Privacy / Terms pages).
   Admin panel is NOT affected by this file.
   ============================================ */

:root {
    --ink: #101828;
    --slate: #52607A;
    --slate-light: #8592AB;
    --brand: #2952E3;
    --brand-dark: #16226E;
    --brand-light: #EEF2FF;
    --sky: #3FC1E9;
    --bg-ice: #F4F7FF;
    --surface: #FFFFFF;
    --line: #E2E8F5;
}

/* ---- Uniform typography across all public pages ---- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--slate);
    background: var(--bg-ice);
}

h1, h2, h3, h4, h5, .font-display {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    color: var(--ink);
}

.font-mono-brand {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #EEF2FF; }
::-webkit-scrollbar-thumb { background: #B6C4F2; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* Section rhythm */
.section { padding: 4.5rem 0; }
@media (max-width: 768px) { .section { padding: 3rem 0; } }

/* ============================================
   MARQUEE (home/game announcement bar)
   ============================================ */
@keyframes marquee {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.animate-marquee { animation: marquee 18s linear infinite; }

/* ============================================
   STATUS CONSOLE (signature element)
   ============================================ */
.status-console {
    background: linear-gradient(180deg, #0F1B4C 0%, #16226E 100%);
    border-radius: 1.25rem;
    box-shadow: 0 30px 60px -20px rgba(22, 34, 110, 0.45);
    overflow: hidden;
    position: relative;
}
.status-console::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
    background-size: 16px 16px;
    pointer-events: none;
}
.status-dot {
    width: 8px; height: 8px;
    border-radius: 999px;
    background: #34D399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
    animation: pulse-dot 2s infinite;
    display: inline-block;
}
@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.console-row { border-top: 1px solid rgba(255,255,255,0.08); }

/* ============================================
   CARDS
   ============================================ */
.service-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -18px rgba(41, 82, 227, 0.25);
    border-color: #C7D4FA;
}
.stat-card { border-left: 3px solid var(--brand); }

/* Process stepper */
.stepper-line { background: linear-gradient(90deg, var(--brand) 0%, var(--sky) 100%); }
.step-num {
    font-family: 'JetBrains Mono', monospace;
    color: var(--brand);
    border: 1px solid #C7D4FA;
    background: var(--brand-light);
}

/* ============================================
   NAVIGATION
   ============================================ */
.header-dark {
    background: linear-gradient(180deg, #16226E 0%, #121D5E 100%);
    box-shadow: 0 4px 24px -6px rgba(16, 24, 40, 0.25);
}
.nav-link-dark {
    position: relative;
    color: var(--slate-light, #8592AB);
    font-weight: 500;
    font-size: 0.9375rem;
    padding-bottom: 2px;
    transition: color 0.2s ease;
}
.nav-link-dark.active,
.nav-link-dark:hover { color: #FFFFFF; }
.nav-link-dark.active::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 0;
    width: 100%; height: 2px;
    background: #3FC1E9;
    border-radius: 2px;
}

/* Footer link underline */
.footer-link { position: relative; }
.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: var(--sky);
    transition: width 0.25s ease;
}
.footer-link:hover::after { width: 100%; }

/* Form focus */
.input-field {
    border: 1px solid var(--line);
    background: var(--surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-field:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(41, 82, 227, 0.12);
}

/* Notification toast */
.notification-toast { animation: slideInRight 0.3s ease-out; }
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* Legal page cards */
.legal-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.875rem;
}

/* Print */
@media print {
    header, footer, .floating-actions { display: none !important; }
    body { background: white !important; }
}
