/* VishvaX Stream — Ultra-Futuristic Global Design Tokens & Foundation */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Deep Obsidian & Cyber Canvas */
    --bg: #030509;
    --bg-canvas: #050811;
    --bg-elevated: #090e1a;
    --surface: rgba(13, 19, 33, 0.72);
    --surface-card: rgba(15, 23, 42, 0.65);
    --surface-hover: rgba(22, 33, 56, 0.9);
    
    /* Cyber Glass Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(99, 102, 241, 0.5);
    --border-focus: rgba(0, 242, 254, 0.65);
    --border-highlight: rgba(255, 255, 255, 0.16);

    /* Text & Legibility */
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --text-cyber: #00f2fe;

    /* Futuristic Color Systems */
    --brand: #e50914;
    --brand-neon: #ff2a4b;
    --brand-glow: rgba(255, 42, 75, 0.5);
    --cyber-cyan: #00f2fe;
    --cyber-cyan-glow: rgba(0, 242, 254, 0.4);
    --cyber-blue: #4facfe;
    --cyber-indigo: #6366f1;
    --cyber-indigo-glow: rgba(99, 102, 241, 0.35);
    --cyber-violet: #8a2be2;
    --cyber-emerald: #00f5a0;
    --cyber-emerald-glow: rgba(0, 245, 160, 0.4);
    --live-red: #ff2b42;
    --live-glow: rgba(255, 43, 66, 0.55);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows & Glows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.85);
    --shadow-glow-brand: 0 0 30px rgba(255, 42, 75, 0.35);
    --shadow-glow-cyan: 0 0 30px rgba(0, 242, 254, 0.25);
    --shadow-glow-indigo: 0 0 30px rgba(99, 102, 241, 0.25);

    /* Typography */
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --max-w: 1440px;
}

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

html {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    /* Cyber Aurora Mesh Gradient */
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.16) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 95% 15%, rgba(0, 242, 254, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 35% at 5% 30%, rgba(255, 42, 75, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Custom Futuristic Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #030509;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-full);
    border: 2px solid #030509;
    transition: background .2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cyber-indigo);
    box-shadow: 0 0 12px var(--cyber-indigo-glow);
}

.wrap {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 640px) {
    .wrap {
        padding: 0 14px;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Futuristic Interactive Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 20px;
    font-family: var(--font-display);
    font-size: .88rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    letter-spacing: .03em;
    position: relative;
    overflow: hidden;
    transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .2s ease, background .2s ease, border-color .2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left .5s ease;
}

.btn:hover::after {
    left: 100%;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-neon) 100%);
    color: #ffffff;
    box-shadow: 0 4px 18px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-neon) 0%, #ff4d6d 100%);
    box-shadow: 0 6px 26px var(--brand-glow), 0 0 12px rgba(255, 42, 75, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-cyber {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: #ffffff;
    box-shadow: 0 4px 18px var(--cyber-cyan-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(0, 242, 254, 0.4);
}

.btn-cyber:hover {
    box-shadow: 0 6px 26px var(--cyber-cyan-glow), 0 0 16px rgba(0, 242, 254, 0.5);
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--border-highlight);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.badge-live {
    background: rgba(255, 43, 66, 0.16);
    color: var(--live-red);
    border: 1px solid rgba(255, 43, 66, 0.45);
    box-shadow: 0 0 12px rgba(255, 43, 66, 0.25);
}

.badge-live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--live-red);
    box-shadow: 0 0 8px var(--live-red);
    animation: vx-radar-pulse 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.badge-cyber {
    background: rgba(0, 242, 254, 0.12);
    color: var(--cyber-cyan);
    border: 1px solid rgba(0, 242, 254, 0.4);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

.badge-cyber::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyber-cyan);
    box-shadow: 0 0 8px var(--cyber-cyan);
}

@keyframes vx-radar-pulse {
    0% {
        transform: scale(0.85);
        opacity: 0.5;
        box-shadow: 0 0 0 0 rgba(255, 43, 66, 0.7);
    }
    70% {
        transform: scale(1.15);
        opacity: 1;
        box-shadow: 0 0 0 6px rgba(255, 43, 66, 0);
    }
    100% {
        transform: scale(0.85);
        opacity: 0.5;
        box-shadow: 0 0 0 0 rgba(255, 43, 66, 0);
    }
}

/* Spinner */
.vx-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--cyber-cyan);
    border-right-color: var(--brand-neon);
    border-radius: 50%;
    animation: vx-spin .75s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.5));
}

@keyframes vx-spin {
    to { transform: rotate(360deg); }
}

/* Center Status States */
.center-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 24px;
    gap: 16px;
}

.state-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
    background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.state-sub {
    font-size: .95rem;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
