/* Custom Pixel Styles */
* {
    image-rendering: pixelated;
}

body {
    font-family: 'JetBrains Mono', monospace;
}

.font-pixel {
    font-family: 'Press Start 2P', cursive;
}

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

.scanline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
}

/* Retro Panel */
.retro-panel {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(31, 31, 51, 0.95));
    border: 3px solid #8F5FFF;
    border-radius: 8px;
    box-shadow: 
        0 0 20px rgba(143, 95, 255, 0.3),
        inset 0 0 20px rgba(143, 95, 255, 0.1);
}

/* Pixel Buttons */
.pixel-button {
    background: linear-gradient(to bottom, #8F5FFF, #6F3FDF);
    border: 3px solid #AF7FFF;
    color: white;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.1s;
    box-shadow: 0 4px 0 #4F1FAF;
    position: relative;
    top: 0;
}

.pixel-button:hover:not(:disabled) {
    background: linear-gradient(to bottom, #AF7FFF, #8F5FFF);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #4F1FAF;
}

.pixel-button:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #4F1FAF;
}

.pixel-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pixel-button-small {
    background: linear-gradient(to bottom, #4F9FFF, #2F7FDF);
    border: 2px solid #6FBFFF;
    color: white;
    font-weight: bold;
    border-radius: 3px;
    transition: all 0.1s;
    box-shadow: 0 3px 0 #1F5FAF;
}

.pixel-button-small:hover {
    background: linear-gradient(to bottom, #6FBFFF, #4F9FFF);
    transform: translateY(-1px);
    box-shadow: 0 4px 0 #1F5FAF;
}

.pixel-button-small:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #1F5FAF;
}

/* Glow Effect */
.drop-shadow-glow {
    filter: drop-shadow(0 0 20px rgba(255, 105, 180, 0.8));
}

/* Loading Animation */
@keyframes pixel-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    animation: pixel-spin 1s steps(8) infinite;
}

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

::-webkit-scrollbar-track {
    background: #1a1a2e;
    border: 2px solid #8F5FFF;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #8F5FFF, #6F3FDF);
    border: 2px solid #AF7FFF;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #AF7FFF, #8F5FFF);
}

/* Code Highlighting (Basic) */
pre {
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .retro-panel {
        border-width: 2px;
    }
    
    .pixel-button {
        border-width: 2px;
        box-shadow: 0 3px 0 #4F1FAF;
    }
}