:root { --bg: #050505; --card: #0a0a0a; --accent: #0070f3; --border: #1a1a1a; --text: #ffffff; }
[data-theme="light"] { --bg: #ffffff; --card: #f9f9f9; --accent: #0070f3; --border: #eaeaea; --text: #000000; }

body { background: var(--bg); color: var(--text); margin: 0; font-family: monospace; overflow-x: hidden; }
.container { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
h1 { 
    font-size: 3.5rem; 
    font-weight: 900; 
    letter-spacing: -2px; 
    margin: 0; 
    line-height: 1.1;
}
.network-stats { display: flex; gap: 40px; margin: 40px 0; padding: 20px; background: var(--card); border: 1px solid var(--border); overflow-x: auto; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { padding: 30px; background: var(--card); border: 1px solid var(--border); }

/* Mobile Responsive - Progressive scaling */
@media (max-width: 768px) {
    h1 { 
        font-size: 1.8rem;
        letter-spacing: -1px;
    }
    .container { padding: 20px; }
    .network-stats { 
        gap: 20px;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    h1 { 
        font-size: 1.5rem;
        letter-spacing: -0.5px;
    }
}

@media (max-width: 400px) {
    h1 { 
        font-size: 1.3rem;
        letter-spacing: -0.5px;
    }
}

/* Status HUD Styles */
#status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.pulse-green {
    background: #00ff00;
    box-shadow: 0 0 0 rgba(0, 255, 0, 0.4);
    animation: pulse-green 2s infinite;
}

.pulse-red {
    background: #ff0000;
    box-shadow: 0 0 0 rgba(255, 0, 0, 0.4);
    animation: pulse-red 1s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 255, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 0, 0); }
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* Boot Sequence Effects */
.terminal-line {
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.terminal-line.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Blinking cursor animation */
@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* CRT Scanline Effect */
.crt-effect {
    position: relative;
}

.crt-effect::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.15) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
}

/* Scrollbar styling for terminal */
#log-container::-webkit-scrollbar {
    width: 6px;
}

#log-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

#log-container::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

#log-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
    opacity: 0.8;
}

/* Mobile terminal optimizations */
@media (max-width: 768px) {
    #log-container {
        font-size: 0.7rem;
        line-height: 1.4;
    }
    
    #terminal-input {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
    }
    
    .terminal-line {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    #log-container::-webkit-scrollbar {
        width: 3px;
    }
}

/* Matrix Canvas */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 2s;
    pointer-events: none;
}

/* Footer icon hover effects */
footer a:hover {
    opacity: 1 !important;
}

footer #themeToggle:hover {
    opacity: 1 !important;
}
