/* Cyberpunk Theme CSS for Autonarky */
:root {
    --cyber-red: #FF073A;
    --cyber-blue: #00F0FF;
    --matrix-green: #00FF41;
    --quantum-purple: #B026FF;
    --neural-orange: #FF6B35;
    --void-black: #0A0A0A;
    --dark-gray: #1A1A1A;
    --steel-gray: #2D2D2D;
    --ice-white: #F0F0F0;
}

* {
    cursor: none !important;
}

body {
    font-family: 'Courier New', monospace !important;
    background: var(--void-black) !important;
    color: var(--ice-white) !important;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Custom Cursor System */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--cyber-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    mix-blend-mode: screen;
    box-shadow: 0 0 10px var(--cyber-blue);
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--cyber-red);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.2s ease;
    animation: cursorRotate 2s linear infinite;
}

@keyframes cursorRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.cursor-ring.expand {
    width: 60px;
    height: 60px;
    border-color: var(--matrix-green);
}

/* Matrix Rain Canvas */
#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

/* Circuit Board Background */
.circuit-board {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0.05;
    pointer-events: none;
    background-image: 
        linear-gradient(90deg, var(--cyber-blue) 1px, transparent 1px),
        linear-gradient(var(--cyber-blue) 1px, transparent 1px),
        linear-gradient(90deg, var(--matrix-green) 0.5px, transparent 0.5px),
        linear-gradient(var(--matrix-green) 0.5px, transparent 0.5px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    animation: circuitMove 30s linear infinite;
}

@keyframes circuitMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

/* Neural Network WebGL Canvas */
#neural-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* Cyberpunk Grid Floor */
.cyber-grid {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    z-index: 4;
    background: linear-gradient(180deg, transparent 0%, var(--void-black) 100%);
    transform: perspective(500px) rotateX(60deg);
    transform-origin: bottom;
    pointer-events: none;
}

.cyber-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(var(--cyber-blue) 1px, transparent 1px),
        linear-gradient(90deg, var(--cyber-blue) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridScroll 10s linear infinite;
    opacity: 0.3;
}

@keyframes gridScroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(0, 50px); }
}

/* Glitch effects for headings */
h1, h2, h3 {
    font-weight: 900 !important;
    text-transform: uppercase !important;
    position: relative;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% { text-shadow: 0 0 10px var(--cyber-blue), 0 0 20px var(--cyber-blue); }
    100% { text-shadow: 0 0 20px var(--cyber-red), 0 0 30px var(--cyber-red); }
}

/* Cyberpunk buttons */
.btn, button, .button {
    background: linear-gradient(135deg, var(--cyber-blue), var(--matrix-green)) !important;
    border: none !important;
    color: var(--void-black) !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

.btn::before, button::before, .button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover, button:hover, .button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.5) !important;
}

/* Input fields cyberpunk style */
input, textarea, select {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid var(--matrix-green) !important;
    color: var(--matrix-green) !important;
    font-family: 'Courier New', monospace !important;
    transition: all 0.3s ease !important;
}

input:focus, textarea:focus, select:focus {
    outline: none !important;
    border-color: var(--cyber-blue) !important;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5) !important;
    background: rgba(0, 240, 255, 0.05) !important;
}

/* Cards and panels */
.card, .panel, .status-panel {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 7, 58, 0.1)) !important;
    border: 1px solid var(--cyber-blue) !important;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

/* Scanning line */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--matrix-green), transparent);
    opacity: 0.5;
    animation: scan 4s linear infinite;
    z-index: 6;
    pointer-events: none;
}

@keyframes scan {
    0% { top: -2px; }
    100% { top: 100%; }
}

/* HUD Elements */
.hud-element {
    position: fixed;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--cyber-blue);
    opacity: 0.6;
    z-index: 10;
}

.hud-top-left {
    top: 2rem;
    left: 2rem;
}

.hud-top-right {
    top: 2rem;
    right: 2rem;
    text-align: right;
}

.hud-bottom-left {
    bottom: 2rem;
    left: 2rem;
}

.hud-bottom-right {
    bottom: 2rem;
    right: 2rem;
    text-align: right;
}

/* Data streams */
.data-streams {
    position: fixed;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    pointer-events: none;
}

.stream-bar {
    width: 8px;
    background: linear-gradient(to top, var(--cyber-blue), var(--matrix-green));
    position: relative;
    overflow: hidden;
}

.stream-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: white;
    animation: dataFlow 1s linear infinite;
}

@keyframes dataFlow {
    0% { transform: translateY(100%); }
    100% { transform: translateY(-100vh); }
}

.stream-bar:nth-child(1) { height: 40px; animation-delay: 0s; }
.stream-bar:nth-child(2) { height: 60px; animation-delay: 0.1s; }
.stream-bar:nth-child(3) { height: 45px; animation-delay: 0.2s; }
.stream-bar:nth-child(4) { height: 70px; animation-delay: 0.3s; }
.stream-bar:nth-child(5) { height: 55px; animation-delay: 0.4s; }
.stream-bar:nth-child(6) { height: 80px; animation-delay: 0.5s; }
.stream-bar:nth-child(7) { height: 50px; animation-delay: 0.6s; }
.stream-bar:nth-child(8) { height: 65px; animation-delay: 0.7s; }

/* Override Tailwind styles */
.bg-white { background: var(--dark-gray) !important; }
.text-gray-900 { color: var(--ice-white) !important; }
.text-gray-600 { color: var(--cyber-blue) !important; }
.bg-primary-600 { background: var(--cyber-blue) !important; }
.bg-accent-500 { background: var(--matrix-green) !important; }

/* Terminal style for content */
.terminal-text::before {
    content: '> ';
    color: var(--cyber-blue);
}

.terminal-text::after {
    content: '_';
    animation: blink 1s infinite;
    color: var(--matrix-green);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Loading screen */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--void-black);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: bootFade 0.5s ease 2s forwards;
}

@keyframes bootFade {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hud-element { display: none; }
    .cyber-grid { display: none; }
    .data-streams { display: none; }
}