/* ============================================================
   ENShell Landing — Cyberpunk War Room Theme
   ============================================================ */

/* ── Design Tokens (override for landing) ────────────────── */
:root {
    --bg-deep: #0a0a0a;
    --bg-surface: #111118;
    --bg-elevated: #1a1a24;
    --border: #2a2a3a;
    --border-accent: rgba(255, 26, 26, 0.3);
    --text: #e8e8e8;
    --text-bright: #fafafa;
    --text-muted: #6a6a7a;
    --accent: #ff1a1a;
    --accent-light: #ff4444;
    --accent-glow: rgba(255, 26, 26, 0.15);
    --success: #00ff88;
    --warning: #ffaa00;
    --ens-blue: #5298ff;
    --font-pixel: 'Press Start 2P', monospace;
    --font-body: 'Space Mono', monospace;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ── CRT Scanline Overlay ────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(0, 0, 0, 0.04) 1px,
        rgba(0, 0, 0, 0.04) 2px
    );
}

/* ── Noise Texture Overlay ───────────────────────────────── */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ── Fog Scanline Overlay ─────────────────────────────────── */
.fog-scanline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 26, 26, 0.02) 2px,
        rgba(255, 26, 26, 0.02) 4px
    );
}

/* ── Hero Grid Pattern ────────────────────────────────────── */
.hero-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 26, 26, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 26, 26, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

/* ── Hero Grid Fade (blends grid into dark background) ───── */
.hero-grid-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent 0%, #0a0a0a 100%);
    pointer-events: none;
    z-index: 2;
}

/* ── Red Glow Utilities ──────────────────────────────────── */
.glow-red {
    box-shadow: 0 0 30px rgba(255, 26, 26, 0.15);
}

.glow-red-strong {
    box-shadow: 0 0 60px rgba(255, 26, 26, 0.25), 0 0 120px rgba(255, 26, 26, 0.1);
}

.glow-green {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
}

.text-glow-red {
    text-shadow: 0 0 20px rgba(255, 26, 26, 0.4);
}

.text-glow-green {
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

/* ── Chrome Border Card ──────────────────────────────────── */
.chrome-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    transition: border-color 0.2s ease;
}

.chrome-card:hover {
    border-color: rgba(255, 26, 26, 0.2);
}

.chrome-card-glow {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-top: 1px solid rgba(255, 26, 26, 0.3);
    box-shadow: 0 -1px 20px rgba(255, 26, 26, 0.05);
}

/* ── Terminal Cursor Blink ───────────────────────────────── */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cursor-blink::after {
    content: '_';
    animation: blink 1s step-end infinite;
}

/* ── Pixel Font Heading ──────────────────────────────────── */
.pixel-heading {
    font-family: var(--font-pixel);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ── Section Prompt ──────────────────────────────────────── */
.section-prompt::before {
    content: '> ';
    color: var(--success);
    font-family: var(--font-mono);
}

/* ── Flash Animation (for blocked events) ────────────────── */
@keyframes flash-red {
    0% { background-color: transparent; }
    20% { background-color: rgba(255, 26, 26, 0.15); }
    100% { background-color: transparent; }
}

.flash-red {
    animation: flash-red 0.8s ease-out;
}

/* ── Fade In Animation ───────────────────────────────────── */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out forwards;
    opacity: 0;
}

/* ── Pulse Dot (live indicator) ──────────────────────────── */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
    display: inline-block;
    flex-shrink: 0;
}

/* ── Scrollbar ───────────────────────────────────────────── */
.overflow-y-auto::-webkit-scrollbar {
    width: 4px;
}

.overflow-y-auto::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}
