/* Custom styles for System Shock 2 Terminal */

@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap');

body {
    font-family: 'Courier Prime', 'Courier New', monospace;
    background: #000;
    color: #00ff41;
    overflow: hidden;
}

.terminal-container {
    position: relative;
    background: radial-gradient(ellipse at center, #001100 0%, #000000 100%);
}

.terminal-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(transparent 50%, rgba(0, 255, 65, 0.03) 50%),
        linear-gradient(90deg, transparent 50%, rgba(0, 255, 65, 0.03) 50%);
    background-size: 2px 2px, 2px 2px;
    pointer-events: none;
    z-index: 1;
}

.terminal-screen {
    position: relative;
    background: rgba(0, 20, 0, 0.95);
    border: 2px solid #00ff41;
    border-radius: 8px;
    box-shadow: 
        inset 0 0 20px rgba(0, 255, 65, 0.1),
        0 0 30px rgba(0, 255, 65, 0.3);
    overflow: hidden;
}

.terminal-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 65, 0.05) 2px,
            rgba(0, 255, 65, 0.05) 4px
        );
    pointer-events: none;
    z-index: 2;
}

.terminal-content {
    position: relative;
    z-index: 3;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.8);
    animation: screenFlicker 4s infinite linear;
}

@keyframes screenFlicker {
    98% { opacity: 1; }
    99% { opacity: 0.98; }
    100% { opacity: 1; }
}

.glitch-text {
    position: relative;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 90%, 100% {
        text-shadow: 
            0 0 5px rgba(0, 255, 65, 0.8),
            0 0 10px rgba(0, 255, 65, 0.8);
    }
    95% {
        text-shadow: 
            -2px 0 rgba(255, 0, 64, 0.8),
            2px 0 rgba(128, 64, 255, 0.8),
            0 0 5px rgba(0, 255, 65, 0.8);
    }
}

.typing-text {
    animation: typing 0.1s ease-in-out;
}

@keyframes typing {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb {
    background: #00ff41;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc33;
}

/* Button hover effects */
button {
    transition: all 0.2s ease;
}

button:hover {
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    text-shadow: 0 0 5px rgba(0, 255, 65, 1);
}

/* Input field styles */
input {
    caret-color: #00ff41;
}

input:focus {
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

/* Enhanced glow effects */
.text-green-400 {
    text-shadow: 0 0 3px rgba(0, 255, 65, 0.6);
}

.text-red-400 {
    text-shadow: 0 0 3px rgba(255, 0, 64, 0.6);
}

.text-yellow-400 {
    text-shadow: 0 0 3px rgba(255, 255, 0, 0.6);
}

.text-purple-400 {
    text-shadow: 0 0 3px rgba(128, 64, 255, 0.6);
}

/* Progress bar glow */
.bg-green-500, .bg-yellow-500, .bg-red-500, .bg-purple-500 {
    box-shadow: 0 0 10px currentColor;
}