/* Custom pixel art styles */
.pixel-image {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.pixel-title {
    text-shadow: 2px 2px 0px #000000, -2px -2px 0px #000000, 2px -2px 0px #000000, -2px 2px 0px #000000;
    letter-spacing: 2px;
}

.pixel-button {
    border: 2px solid;
    transition: all 0.1s ease;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}

.pixel-button:hover {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px rgba(0,0,0,0.5);
}

.pixel-button:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

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

.action-button {
    min-height: 48px;
    border-color: #16a34a;
}

.action-button:hover:not(:disabled) {
    background-color: #15803d;
    border-color: #22c55e;
}

.scene-panel, .text-panel, .actions-panel, .info-panel {
    box-shadow: 4px 4px 0px rgba(0,0,0,0.5);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #374151;
    border-top: 3px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #10b981;
    border: 2px solid #1f2937;
}

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .pixel-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .action-button {
        font-size: 14px;
    }
    
    .scene-panel img {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .pixel-title {
        font-size: 1.5rem;
    }
    
    .scene-panel img {
        height: 200px;
    }
}

/* Glowing text effect for titles */
.text-yellow-400 {
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Pixel border animation for panels */
@keyframes pixelGlow {
    0% { border-color: #10b981; }
    50% { border-color: #22c55e; }
    100% { border-color: #10b981; }
}

.scene-panel:hover, .text-panel:hover, .actions-panel:hover, .info-panel:hover {
    animation: pixelGlow 2s ease-in-out infinite;
}

/* Better focus states for accessibility */
.pixel-button:focus {
    outline: 2px dashed #10b981;
    outline-offset: 2px;
}

/* Loading state for buttons */
.pixel-button:disabled .loading-spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
    display: inline-block;
    margin-right: 8px;
}