/* ==========================================
   SHADER LITE - Gaming Theme CSS
   ========================================== */

:root {
    --color-success: #198754;
    --color-warm: #ff8c00;
    --color-cool: #17a2b8;
    --color-cinematic: #6c757d;
    --color-fantasy: #9b59b6;
    --gradient-warm: linear-gradient(135deg, #ff6b35, #f7931e, #ffd700);
    --gradient-cool: linear-gradient(135deg, #667eea, #764ba2, #17a2b8);
    --gradient-cinematic: linear-gradient(135deg, #2c3e50, #34495e, #4a5568);
    --gradient-fantasy: linear-gradient(135deg, #9b59b6, #8e44ad, #e91e8c);
}

html, body {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #1a1a2e;
    scroll-behavior: smooth;
}

/* Pixel Font for Branding */
.pixel-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    min-height: 90vh;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(25, 135, 84, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
}

.min-vh-75 {
    min-height: 75vh;
}

/* Preview Card */
.preview-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(25, 135, 84, 0.3);
}

/* Floating Badge Animation */
.floating-badge {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(50%, -50%) translateY(0); }
    50% { transform: translate(50%, -50%) translateY(-10px); }
}

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-success) !important;
}

/* Preset Cards */
.preset-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.preset-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Gradient Backgrounds */
.bg-gradient-warm {
    background: var(--gradient-warm);
}

.bg-gradient-cool {
    background: var(--gradient-cool);
}

.bg-gradient-cinematic {
    background: var(--gradient-cinematic);
}

.bg-gradient-fantasy {
    background: var(--gradient-fantasy);
}

.bg-gradient-dark {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.bg-gradient-success-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #0d3320 100%);
}

/* Purple Color Utility */
.text-purple {
    color: #9b59b6 !important;
}

.border-purple {
    border-color: #9b59b6 !important;
}

/* Gallery Items */
.gallery-item {
    transition: transform 0.3s ease;
    overflow: hidden;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-placeholder {
    background: linear-gradient(135deg, #2d2d44, #1a1a2e);
}

/* Download Cards */
.download-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(25, 135, 84, 0.2);
}

/* Accordion Styling */
.accordion-button:not(.collapsed) {
    background-color: #2d3748;
    color: #fff;
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--color-success);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    inset: 0;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
}

.loading-cube {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #198754, #20c997);
    animation: rotateCube 1.5s ease-in-out infinite;
    margin: 0 auto;
    border-radius: 8px;
}

@keyframes rotateCube {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(0.8); }
    100% { transform: rotate(360deg) scale(1); }
}

.loading-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: #198754;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Navbar */
.navbar {
    backdrop-filter: blur(10px);
}

.navbar-brand .pixel-text {
    font-size: 0.65rem;
}

/* Buttons */
.btn-success {
    background: linear-gradient(135deg, #198754, #20c997);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(25, 135, 84, 0.4);
    background: linear-gradient(135deg, #20c997, #198754);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #198754;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #20c997;
}

/* Error UI */
#blazor-error-ui {
    display: none;
    z-index: 1000;
}

.blazor-error-boundary {
    background: linear-gradient(135deg, #dc3545, #b02a37);
    padding: 1rem;
    color: white;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px !important;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .pixel-text {
        font-size: 0.6rem;
    }
}

/* Selection */
::selection {
    background: rgba(25, 135, 84, 0.3);
    color: #fff;
}

code {
    color: #c02d76;
}
