/* Custom Cyberpunk & Hacker Themes for TacOS Website */

/* --- Custom Variables and Reset --- */
:root {
    --color-bg: #05080a;
    --color-green: #00ff66;
    --color-cyan: #00e5ff;
    --color-border: rgba(16, 185, 129, 0.2);
    --color-border-glow: rgba(0, 255, 102, 0.35);
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar for Hacker Vibe */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #030507;
    border-left: 1px solid rgba(16, 185, 129, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 102, 0.2);
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 102, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 102, 0.5);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.6);
}

/* --- Multilingual Switching Logic --- */
body.lang-en [data-lang="es"] {
    display: none !important;
}

body.lang-es [data-lang="en"] {
    display: none !important;
}

#lang-switcher button.active-lang {
    background-color: var(--color-green);
    color: #000000;
    font-weight: 700;
    text-shadow: none;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
}

#lang-switcher button:not(.active-lang) {
    color: #6b7280;
}

#lang-switcher button:not(.active-lang):hover {
    color: #d1d5db;
    background-color: rgba(255, 255, 255, 0.05);
}

/* --- Subsystem Feature Tabs --- */
#subsystem-tabs button.active-tab {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--color-green);
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.1);
}

#subsystem-tabs button:not(.active-tab):hover {
    color: #e5e7eb;
    background-color: rgba(255, 255, 255, 0.03);
}

/* --- Cyberpunk UI Elements & Scanlines --- */
.cyber-panel-glow {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 255, 102, 0.02);
}

.cyber-panel-glow:hover {
    box-shadow: 0 0 25px rgba(0, 255, 102, 0.08), inset 0 0 20px rgba(0, 255, 102, 0.04);
}

/* Scanline Effect Overlay */
.scanline {
    position: relative;
    overflow: hidden;
}

.scanline::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* Blinking Cursor Animation */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cursor-blink {
    animation: blink 1s infinite;
}

/* Scanline animation moving down */
@keyframes scanline-move {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.scanline-animated::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background: rgba(0, 255, 102, 0.1);
    box-shadow: 0 0 8px rgba(0, 255, 102, 0.4);
    animation: scanline-move 6s linear infinite;
    z-index: 10;
    pointer-events: none;
}

/* Glow utility classes */
.text-glow-green {
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.6);
}

.text-glow-cyan {
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.border-glow-green:hover {
    border-color: var(--color-green);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.2);
}

.border-glow-cyan:hover {
    border-color: var(--color-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

/* Custom button classes to override tailwind cleanly */
.active:scale-95:active {
    transform: scale(0.95);
}
