/* =====================================================
   CYBERPUNK 2077 THEME OVERRIDE
   Production stylesheet for WOTE project

   This file overrides the green terminal aesthetic with
   Cyberpunk 2077 inspired colors and styling

   DEPLOYMENT: Add this stylesheet AFTER layout-fix.css
   ===================================================== */

/* =====================================================
   COLOR VARIABLE OVERRIDES
   ===================================================== */

:root {
    /* Primary Colors */
    --primary-green: #FF0040;        /* Changed to CP2077 red */
    --dark-bg: #0A0E1A;              /* Deep blue-black */
    --dim-green: #FF2D55;            /* Lighter red accent */
    --red-alert: #FF0040;            /* Keep red consistent */
    --amber-warn: #00F0FF;           /* Changed to cyan */

    /* New Cyberpunk Variables */
    --cp-cyan: #00F0FF;
    --cp-red: #FF0040;
    --cp-pink: #FF2D55;
    --cp-dark-1: #0A0E1A;
    --cp-dark-2: #1A1E2E;
    --cp-dark-3: #252938;
}

/* =====================================================
   BODY & BASE STYLES
   ===================================================== */

body {
    background-color: var(--cp-dark-1);
    color: var(--cp-cyan);

    /* Cyberpunk chromatic aberration - red/cyan shift */
    text-shadow:
        0.5px 0 0 rgba(255, 0, 64, 0.4),
        -0.5px 0 0 rgba(0, 240, 255, 0.4);
}

/* Update scanline to use red instead of green */
body::before {
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 0, 64, 0.08),
        rgba(255, 0, 64, 0.08) 1px,
        transparent 1px,
        transparent 2px
    ) !important;
}

/* VHS noise with red/cyan tint - OVERRIDE FOR MOVING GREEN LINE */
body::after {
    /* FORCE RED/PINK MOVING SCANLINE */
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 5px !important; /* Height of the moving line */
    pointer-events: none !important;
    z-index: 9999 !important;

    /* FORCE RED/PINK GRADIENT */
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--cp-red) 50%, /* Red/Pink center */
        transparent 100%
    ) !important;
    background-image: none !important; /* Remove VHS noise background */
    box-shadow: 0 0 10px rgba(255, 0, 64, 0.8) !important;

    /* RE-APPLY THE ANIMATION */
    animation: scanline-move 10s linear infinite !important;
}

/* =====================================================
   SIDEBAR NAVIGATION
   ===================================================== */

.sidebar {
    /* Animated Gradient Background */
    background: linear-gradient(
        180deg, /* Gradient runs top to bottom */
        rgba(255, 0, 64, 0.15) 0%, /* Start Red */
        rgba(10, 14, 26, 0.95) 50%, /* Dark Center */
        rgba(0, 240, 255, 0.15) 100% /* End Cyan */
    );
    background-size: 100% 400%; /* Makes the gradient height four times the element height */
    animation: gradient-shift 12s ease infinite; /* Slow, continuous vertical shift */

    /* Subtle Occult Grid Overlay */
    background-image:
        /* Faint Hexagram/Grid pattern */
        repeating-linear-gradient(
            -45deg,
            rgba(255, 0, 64, 0.05) 0px,
            rgba(255, 0, 64, 0.05) 1px,
            transparent 1px,
            transparent 60px
        ),
        repeating-linear-gradient(
            45deg,
            rgba(0, 240, 255, 0.05) 0px,
            rgba(0, 240, 255, 0.05) 1px,
            transparent 1px,
            transparent 60px
        ),
        linear-gradient(
            180deg,
            rgba(255, 0, 64, 0.15) 0%,
            rgba(10, 14, 26, 0.95) 50%,
            rgba(0, 240, 255, 0.15) 100%
        );
    background-blend-mode: overlay; /* Allows it to blend with the animated gradient */

    border-right: 3px double var(--cp-red);
    border-top: 3px double var(--cp-red);
    border-bottom: 3px double var(--cp-red);
    /* Double border effect */
    box-shadow:
        0 0 30px rgba(255, 0, 64, 0.4),
        inset 0 0 30px rgba(0, 240, 255, 0.05),
        inset -3px 0 0 var(--cp-dark-2),
        inset -6px 0 0 var(--cp-red),
        inset 0 3px 0 var(--cp-dark-2),
        inset 0 6px 0 var(--cp-red),
        inset 0 -3px 0 var(--cp-dark-2),
        inset 0 -6px 0 var(--cp-red);

    /* Prevent overlap with stacking order */
    z-index: 100 !important;

    /* Allow scrolling but hide scrollbar */
    overflow-y: auto !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
}

/* Hide scrollbar for Chrome/Safari/Edge */
.sidebar::-webkit-scrollbar {
    display: none !important;
}

.sidebar-header {
    border: 2px solid var(--cp-red);
    border-bottom: 3px solid var(--cp-red);
    background: linear-gradient(135deg, rgba(255, 0, 64, 0.1) 0%, rgba(0, 240, 255, 0.05) 100%);
    box-shadow:
        0 0 20px rgba(255, 0, 64, 0.3),
        inset 0 -2px 10px rgba(255, 0, 64, 0.2);
    /* NEW PULSE */
    animation: pulse 4s infinite; /* Make the whole header box glow/dim */
}

.sidebar-header h1 {
    color: var(--cp-cyan);
    text-shadow:
        0 0 10px var(--cp-cyan),
        0 0 20px rgba(0, 240, 255, 0.5);
}

.sidebar-header .subtitle {
    color: var(--cp-red);
}

/* Navigation Sections */
.nav-section h2 {
    color: var(--cp-pink);
    text-shadow: 0 0 5px rgba(255, 45, 85, 0.6);
}

.nav-section ul li a {
    color: var(--cp-cyan);
    border-left: 2px solid transparent;
    transition: all 0.3s;
}

.nav-section ul li a:hover {
    color: #fff;
    text-shadow:
        0 0 10px var(--cp-cyan),
        0 0 20px var(--cp-cyan);
    border-left-color: var(--cp-red);
    background: rgba(255, 0, 64, 0.1);
}

.nav-section ul li a.active {
    color: #fff;
    text-shadow:
        0 0 10px var(--cp-cyan),
        0 0 20px var(--cp-cyan);
    border-left: 3px solid var(--cp-red);
    background: rgba(255, 0, 64, 0.15);
}

/* Signal Status */
.signal-status {
    border: 2px solid var(--cp-red);
    background: rgba(26, 30, 46, 0.6);
    box-shadow:
        0 0 15px rgba(255, 0, 64, 0.3),
        inset 0 0 20px rgba(10, 14, 26, 0.8);
}

.signal-bar {
    background-color: rgba(26, 30, 46, 0.5);
    border: 2px solid var(--cp-red);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.signal-fill {
    background: linear-gradient(90deg, var(--cp-red) 0%, var(--cp-pink) 100%);
    box-shadow:
        0 0 10px rgba(255, 0, 64, 0.8),
        inset 0 0 5px rgba(255, 255, 255, 0.3);
}

/* =====================================================
   TERMINAL BOXES
   ===================================================== */

.terminal-box {
    border: 3px double var(--cp-red);
    background: linear-gradient(
        135deg,
        rgba(255, 0, 64, 0.08) 0%, /* Faded Red (using --cp-red) */
        rgba(10, 14, 26, 0.9) 30%,  /* Darker Center (using --cp-dark-1) */
        rgba(255, 45, 85, 0.05) 100% /* Faded Pink (using --cp-pink) */
    );
    box-shadow:
        0 0 30px rgba(255, 0, 64, 0.4),
        inset 0 0 30px rgba(0, 240, 255, 0.05);
    position: relative;
}

/* Encrypted Hex / Occult Text at Corners */
.terminal-box::before {
    content: '0xDAEM0N'; /* Occult Hex */
    position: absolute;
    top: -15px; /* Position above the border */
    left: 10px;
    font-size: 10px;
    color: var(--cp-red);
    opacity: 0.5;
    letter-spacing: 2px;
    text-shadow: 0 0 5px var(--cp-red);
    z-index: 10;
}

.terminal-box:nth-of-type(2)::before { /* Apply different text to the second box */
    content: '0xARCAN4'; /* Occult Hex 2 */
    left: auto;
    right: 10px;
    color: var(--cp-cyan);
    text-shadow: 0 0 5px var(--cp-cyan);
    animation: text-glow 5s infinite;
}

.terminal-header {
    border-bottom: 2px solid var(--cp-red);
    color: var(--cp-cyan);
    background: rgba(26, 30, 46, 0.4);
    text-shadow:
        0 0 8px var(--cp-cyan),
        0 0 15px rgba(0, 240, 255, 0.6);
}

.terminal-content {
    color: var(--cp-cyan);
    text-shadow:
        1px 0 0 rgba(255, 0, 64, 0.1),
        -1px 0 0 rgba(0, 240, 255, 0.1);
}

.terminal-content h2 {
    color: #fff;
    text-shadow:
        0 0 10px var(--cp-red),
        0 0 20px rgba(255, 0, 64, 0.6);
}

/* =====================================================
   LINKS
   ===================================================== */

.link-list a {
    color: var(--cp-cyan);
    position: relative;
    padding-left: 10px;
}

.link-list a::before {
    content: '▸';
    position: absolute;
    left: -5px;
    color: var(--cp-red);
    opacity: 0;
    transition: all 0.3s;
}

.link-list a:hover {
    color: #fff;
    text-shadow:
        0 0 10px var(--cp-cyan),
        0 0 20px var(--cp-cyan),
        2px 0 0 rgba(255, 0, 64, 0.3);
}

.link-list a:hover::before {
    opacity: 1;
    left: 0;
}

/* =====================================================
   DOSSIER PHOTO & CLASSIFIED STAMP
   ===================================================== */

.dossier-photo {
    border: 15px solid #2a2a2a;
    background-color: #2a2a2a;
    box-shadow:
        0 0 0 3px var(--cp-red),
        0 0 30px rgba(255, 0, 64, 0.5),
        inset 0 0 50px rgba(0, 0, 0, 0.3);
}

.classified-stamp {
    color: var(--cp-red);
    border: 4px solid var(--cp-red);
    background-color: rgba(255, 0, 64, 0.2);
    text-shadow:
        0 0 10px var(--cp-red),
        0 0 20px rgba(255, 0, 64, 0.8);
    box-shadow:
        0 0 20px rgba(255, 0, 64, 0.6),
        inset 0 0 10px rgba(255, 0, 64, 0.3);
}

.photo-label {
    background-color: #1a1a1a;
    color: var(--cp-cyan);
    border: 2px solid var(--cp-red);
    text-shadow: 0 0 5px var(--cp-cyan);
}

/* =====================================================
   LADY LAZARUS TERMINAL
   ===================================================== */

.lady-lazarus-terminal {
    background-color: rgba(10, 14, 26, 0.98);
    border: 3px solid var(--cp-red);
    box-shadow:
        0 0 40px rgba(255, 0, 64, 0.5),
        inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.ll-header {
    background-color: rgba(26, 30, 46, 0.9);
    border-bottom: 2px solid var(--cp-red);
}

.ll-btn {
    border: 2px solid var(--cp-cyan);
    color: var(--cp-cyan);
    background: rgba(0, 240, 255, 0.05);
}

.ll-btn:hover {
    background-color: var(--cp-cyan);
    color: var(--cp-dark-1);
    box-shadow: 0 0 15px var(--cp-cyan);
}

.ll-cursor {
    background-color: var(--cp-cyan);
    box-shadow: 0 0 5px var(--cp-cyan);
}

/* =====================================================
   LADY LAZARUS FULL INTERFACE
   ===================================================== */

.ll-full-terminal {
    background: var(--cp-dark-1);
    border: 3px double var(--cp-red);
    box-shadow:
        0 0 40px rgba(255, 0, 64, 0.5),
        inset 0 0 30px rgba(0, 240, 255, 0.1);
}

.ll-full-messages {
    background: var(--cp-dark-1);
    border-bottom: 3px solid var(--cp-red);
    scrollbar-color: var(--cp-cyan) var(--cp-dark-2);
}

.ll-full-messages::-webkit-scrollbar-track {
    background: var(--cp-dark-2);
    border-left: 2px solid var(--cp-red);
}

.ll-full-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--cp-cyan) 0%, var(--cp-red) 100%);
    box-shadow:
        inset 0 0 5px rgba(0, 240, 255, 0.5),
        0 0 5px rgba(255, 0, 64, 0.3);
}

.ll-message.assistant .ll-message-content {
    background: rgba(0, 240, 255, 0.08);
    border-left: 3px solid var(--cp-cyan);
    text-shadow: 0 0 3px rgba(0, 240, 255, 0.4);
}

.ll-message.user .ll-message-content {
    background: rgba(255, 0, 64, 0.08);
    border-right: 3px solid var(--cp-red);
}

.ll-message-content {
    color: var(--cp-cyan);
}

.ll-message-header {
    color: var(--cp-pink);
}

/* Input Container */
.ll-full-input-container,
.ll-input-container {
    background: var(--cp-dark-2);
    border-top: 3px solid var(--cp-red);
}

.ll-full-input,
#ll-user-input {
    background: var(--cp-dark-1);
    border: 2px solid var(--cp-cyan);
    color: var(--cp-cyan);
    text-shadow: 0 0 3px rgba(0, 240, 255, 0.3);
}

.ll-full-input:focus,
#ll-user-input:focus {
    box-shadow:
        0 0 15px rgba(0, 240, 255, 0.6),
        inset 0 0 10px rgba(0, 240, 255, 0.1);
    border-color: var(--cp-cyan);
}

.ll-full-input::placeholder,
#ll-user-input::placeholder {
    color: rgba(0, 240, 255, 0.3);
}

/* Send Button */
.ll-full-send-btn,
#ll-send-btn {
    background: linear-gradient(135deg, rgba(255, 0, 64, 0.3) 0%, rgba(0, 240, 255, 0.2) 100%);
    border: 2px solid var(--cp-red);
    color: var(--cp-cyan);
    text-shadow: 0 0 5px var(--cp-cyan);
    transition: all 0.3s;
}

.ll-full-send-btn:hover:not(:disabled),
#ll-send-btn:hover {
    background: linear-gradient(135deg, var(--cp-red) 0%, var(--cp-cyan) 100%);
    color: #fff;
    box-shadow:
        0 0 25px rgba(255, 0, 64, 0.8),
        0 0 15px rgba(0, 240, 255, 0.6);
    text-shadow: 0 0 10px #fff;
}

/* =====================================================
   EMAIL SIGNUP BANNER
   ===================================================== */

.email-signup-banner {
    background-color: rgba(10, 14, 26, 0.98);
    border-bottom: 4px solid var(--cp-red);
    box-shadow: 0 5px 40px rgba(255, 0, 64, 0.5);
}

.email-signup-content h2 {
    color: #fff;
    text-shadow:
        0 0 15px var(--cp-cyan),
        0 0 30px rgba(0, 240, 255, 0.6);
}

.email-form input[type="email"] {
    background-color: rgba(10, 14, 26, 0.9);
    border: 2px solid var(--cp-cyan);
    color: var(--cp-cyan);
}

.email-form input[type="email"]:focus {
    box-shadow:
        0 0 20px rgba(0, 240, 255, 0.6),
        inset 0 0 10px rgba(0, 240, 255, 0.1);
}

.email-form button {
    background: linear-gradient(135deg, var(--cp-red) 0%, var(--cp-pink) 100%);
    color: #fff;
    border: 2px solid var(--cp-red);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.email-form button:hover {
    box-shadow:
        0 0 30px var(--cp-red),
        0 0 20px var(--cp-cyan);
    background: linear-gradient(135deg, var(--cp-pink) 0%, var(--cp-cyan) 100%);
}

.close-banner {
    border: 2px solid var(--cp-cyan);
    color: var(--cp-cyan);
}

.close-banner:hover {
    background-color: var(--cp-cyan);
    color: var(--cp-dark-1);
    box-shadow: 0 0 15px var(--cp-cyan);
}

/* =====================================================
   ANIMATIONS & EFFECTS
   ===================================================== */

/* Gradient shift animation for sidebar */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Scanline movement animation */
@keyframes scanline-move {
    0% {
        top: -100%;
    }
    100% {
        top: 100%;
    }
}

/* NEW: Keyframes to move the scanline */
@keyframes horizontal-scanline-move {
    0% {
        top: 0%; /* Starts at the top of the viewport */
    }
    100% {
        top: 100%; /* Moves to the bottom of the viewport */
    }
}

/* Pulse with red glow */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(255, 0, 64, 0.5);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 20px rgba(255, 0, 64, 0.8);
    }
}

/* Text glow with cyan */
@keyframes text-glow {
    0%, 100% {
        text-shadow: 0 0 8px var(--cp-cyan);
    }
    50% {
        text-shadow:
            0 0 15px var(--cp-cyan),
            0 0 30px var(--cp-cyan),
            0 0 5px var(--cp-red);
    }
}

/* Hide the old green scanlines */
.moving-scanline,
.scan-line {
    display: none !important;
}

/* NEW: Defines the appearance and movement of the red/pink scanline */
.moving-scanline-overlay {
    position: fixed;
    top: -100%; /* Starts above the screen */
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999; /* Ensure it's visible over content */
    pointer-events: none; /* Allows clicks to pass through */

    /* RED/PINK GRADIENT APPEARANCE */
    background: linear-gradient(
        0deg,
        transparent,
        rgba(255, 0, 64, 0.1), /* Red in the center - reduced to 0.1 for subtlety */
        transparent
    );

    /* ANIMATE IT DOWN THE SCREEN */
    animation: scanline-move 10s linear infinite; /* Moderate speed */
}

/* VHS tracking with cyan/red */
.vhs-lines {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 100px,
        rgba(0, 240, 255, 0.04) 100px,
        rgba(0, 240, 255, 0.04) 102px
    );
}

/* Loading animation with dual colors */
@keyframes loading-pulse {
    0% {
        opacity: 0.6;
        box-shadow: 0 0 5px var(--cp-red);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 15px var(--cp-red), 0 0 10px var(--cp-cyan);
    }
    100% {
        opacity: 0.6;
        box-shadow: 0 0 5px var(--cp-red);
    }
}

/* =====================================================
   BEHIND THE CURTAIN - RED THEME ADJUSTMENTS
   ===================================================== */

.behind-curtain {
    border-color: var(--cp-red);
}

.behind-curtain .terminal-header {
    border-color: var(--cp-red);
    color: var(--cp-pink);
    text-shadow: 0 0 8px var(--cp-pink);
}

.behind-curtain .terminal-content {
    color: var(--cp-cyan);
}

.behind-curtain h2 {
    color: var(--cp-pink);
    text-shadow: 0 0 15px var(--cp-pink);
}

.behind-curtain a {
    color: var(--cp-pink);
    text-shadow: 0 0 5px rgba(255, 45, 85, 0.5);
}

.behind-curtain a:hover {
    color: #fff;
    text-shadow:
        0 0 15px var(--cp-red),
        0 0 10px var(--cp-cyan);
}

/* =====================================================
   AVATAR STYLES
   ===================================================== */

.ll-avatar-container {
    background: rgba(10, 14, 26, 0.9);
    border-bottom: 3px solid var(--cp-red);
}

.ll-avatar-status {
    background: rgba(10, 14, 26, 0.95);
    border: 2px solid var(--cp-cyan);
    color: var(--cp-cyan);
}

.ll-status-indicator {
    background: var(--cp-cyan);
    box-shadow: 0 0 8px var(--cp-cyan);
}

@keyframes ll-pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px var(--cp-cyan);
    }
    50% {
        opacity: 0.3;
        box-shadow: 0 0 15px var(--cp-cyan), 0 0 5px var(--cp-red);
    }
}

/* =====================================================
   SPECIAL ELEMENTS
   ===================================================== */

/* Blockquotes */
blockquote {
    border-left-color: var(--cp-cyan) !important;
    color: #fff;
}

/* Details/Summary */
details summary {
    color: var(--cp-red);
    border-color: var(--cp-red) !important;
    background: rgba(255, 0, 64, 0.1) !important;
    transition: all 0.3s;
}

details summary:hover {
    background: rgba(255, 0, 64, 0.2) !important;
    box-shadow: 0 0 15px rgba(255, 0, 64, 0.4);
}

details div {
    border-left-color: var(--cp-cyan) !important;
}

/* User message color */
.ll-user-message {
    color: var(--cp-pink) !important;
}

/* Loading state */
.ll-loading {
    color: var(--cp-cyan);
    text-shadow: 0 0 5px var(--cp-cyan);
}

/* Welcome message */
.ll-welcome {
    color: var(--cp-cyan);
    text-shadow: 0 0 3px rgba(0, 240, 255, 0.4);
}

/* Link button */
.ll-link-btn {
    background: rgba(0, 240, 255, 0.08);
    border: 2px solid var(--cp-cyan);
    color: var(--cp-cyan);
    text-shadow: 0 0 5px var(--cp-cyan);
}

.ll-link-btn:hover {
    background: rgba(0, 240, 255, 0.15);
    box-shadow:
        0 0 20px rgba(0, 240, 255, 0.5),
        0 0 10px rgba(255, 0, 64, 0.3);
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */

/* Fix layout at zoom levels and medium screens */
@media (max-width: 1200px) {
    .main-content {
        max-width: calc(100vw - 300px);
        margin-left: 280px;
    }
}

/* Tablet and zoom breakpoint */
@media (max-width: 968px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 3px double var(--cp-red);
        top: 0 !important;
    }

    .main-content {
        margin-left: 0;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .sidebar {
        border-right: none;
        border-bottom: 3px double var(--cp-red);
    }

    body::before,
    body::after {
        opacity: 0.2;
    }
}

/* =====================================================
   ADDITIONAL CYBERPUNK FLOURISHES
   ===================================================== */

/* Add subtle corner accents to terminal boxes */
.terminal-box::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-top: 2px solid var(--cp-cyan);
    border-right: 2px solid var(--cp-cyan);
    opacity: 0.6;
}

/* Glitch effect with red/cyan */
@keyframes glitch {
    0% {
        transform: translate(0);
        text-shadow:
            0.5px 0 0 rgba(255, 0, 64, 0.4),
            -0.5px 0 0 rgba(0, 240, 255, 0.4);
    }
    20% {
        transform: translate(-2px, 2px);
        text-shadow:
            2px 0 0 rgba(255, 0, 64, 0.6),
            -2px 0 0 rgba(0, 240, 255, 0.6);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
        text-shadow:
            0.5px 0 0 rgba(255, 0, 64, 0.4),
            -0.5px 0 0 rgba(0, 240, 255, 0.4);
    }
}

/* Holographic shimmer effect */
@keyframes hologram-shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.sidebar-header {
    background-size: 200% 200%;
    animation: hologram-shimmer 8s ease infinite;
}

/* =====================================================
   UNIVERSAL BANNER SYSTEM
   Banner with Viking runes and neon line
   ===================================================== */

.cyberpunk-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    color: var(--cp-cyan);
    text-align: center;
    padding: 10px;
    font-weight: bold;
    z-index: 999999;
    font-size: 12px;
    letter-spacing: 2px;
    text-shadow:
        0 0 10px var(--cp-cyan),
        0 0 20px var(--cp-cyan),
        0 0 30px rgba(0, 240, 255, 0.8);
    animation: banner-pulse 2s infinite;

    /* Neon red line at bottom */
    border-bottom: 2px solid var(--cp-red);
    box-shadow:
        0 2px 10px rgba(255, 0, 64, 0.8),
        0 2px 20px rgba(255, 0, 64, 0.6),
        0 2px 30px rgba(255, 0, 64, 0.4);

    /* Position for runes */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    height: 45px;
}

/* Runes on left side */
.cyberpunk-banner::before {
    content: 'ᚠ ᚢ ᚦ ᚨ ᚱ ᚲ ᚷ ᚹ ᚺ';
    font-size: 16px;
    color: var(--cp-red);
    text-shadow:
        0 0 5px var(--cp-red),
        0 0 8px rgba(255, 0, 64, 0.2);
    animation: rune-flicker-left 3s infinite;
    letter-spacing: 20px;
    opacity: 0.12;
}

/* Runes on right side */
.cyberpunk-banner::after {
    content: 'ᚾ ᛁ ᛃ ᛇ ᛈ ᛉ ᛊ ᛏ ᛒ';
    font-size: 16px;
    color: var(--cp-cyan);
    text-shadow:
        0 0 5px var(--cp-cyan),
        0 0 8px rgba(0, 240, 255, 0.2);
    animation: rune-flicker-right 3s infinite;
    letter-spacing: 20px;
    opacity: 0.12;
}

/* Rune flicker animations */
@keyframes rune-flicker-left {
    0%, 100% {
        opacity: 0.12;
    }
    10% {
        opacity: 0.08;
    }
    20% {
        opacity: 0.18;
    }
    30% {
        opacity: 0.1;
    }
    50%, 90% {
        opacity: 0.15;
    }
}

@keyframes rune-flicker-right {
    0%, 100% {
        opacity: 0.12;
    }
    15% {
        opacity: 0.09;
    }
    25% {
        opacity: 0.19;
    }
    35% {
        opacity: 0.11;
    }
    50%, 85% {
        opacity: 0.15;
    }
}

@keyframes banner-pulse {
    0%, 100% {
        text-shadow:
            0 0 10px var(--cp-cyan),
            0 0 20px var(--cp-cyan),
            0 0 30px rgba(0, 240, 255, 0.8);
    }
    50% {
        text-shadow:
            0 0 15px var(--cp-cyan),
            0 0 30px var(--cp-cyan),
            0 0 45px rgba(0, 240, 255, 1);
    }
}

/* Body padding for banner */
body.has-cyberpunk-banner {
    padding-top: 45px;
}

/* Ensure banner is above body effects */
body::before,
body::after {
    z-index: 1 !important;
}

.cyberpunk-banner {
    z-index: 999999 !important;
}

/* Fix sidebar to match banner height exactly */
body.has-cyberpunk-banner .sidebar {
    position: fixed !important;
    top: 45px !important;
    left: 0 !important;
    height: calc(100vh - 46px) !important;
}

/* Mobile responsive for banner */
@media (max-width: 768px) {
    .cyberpunk-banner {
        font-size: 10px;
        letter-spacing: 1px;
        gap: 15px;
    }

    .cyberpunk-banner::before,
    .cyberpunk-banner::after {
        font-size: 12px;
        letter-spacing: 10px;
    }
}
