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

* {
    font-family: 'Courier Prime', 'Courier New', monospace;
}

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

.crt-effect::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 1000;
}

/* Blinking cursor */
.blink {
    animation: blink 1s infinite;
}

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

/* Glitch effect */
.glitch-text {
    position: relative;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 98% { transform: translate(0); }
    1% { transform: translate(-1px, 1px); }
    2% { transform: translate(1px, -1px); }
    3% { transform: translate(0); }
}

/* ASCII Spinner */
.ascii-spinner {
    font-size: 24px;
    animation: spin 0.5s infinite;
}

@keyframes spin {
    0% { content: '|'; }
    25% { content: '/'; }
    50% { content: '-'; }
    75% { content: '\\'; }
    100% { content: '|'; }
}

/* Scanlines */
.crt-effect::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.03) 2px,
        rgba(0, 255, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 999;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border: 1px solid #22c55e;
}

::-webkit-scrollbar-thumb {
    background: #22c55e;
    border: 1px solid #16a34a;
}

::-webkit-scrollbar-thumb:hover {
    background: #16a34a;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .crt-effect::before,
    .crt-effect::after {
        display: none;
    }
    
    .grid-cols-12 {
        grid-template-columns: 1fr 3fr 1fr;
    }
    
    .col-span-1:first-child,
    .col-span-5,
    .col-span-2:last-child {
        display: block;
    }
    
    .col-span-2:not(:last-child) {
        display: none;
    }
}

/* Hover effects */
.hover\:bg-green-900:hover {
    background-color: rgba(20, 83, 45, 0.5);
}

.hover\:bg-green-800:hover {
    background-color: rgba(22, 101, 52, 0.5);
}

/* Focus effects */
input:focus {
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

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

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(0);
}