/* Midnight Static TV Loading Screen Styles */

body {
    margin: 0;
    padding: 0;
    background: #000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    height: 100vh;
}

.crt-screen {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #000;
    overflow: hidden;
}

.scanlines {
    position: absolute;
    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: 1;
}

.crt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 2;
}

.screen-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px;
}

.loading-container {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.logo-container {
    margin-bottom: 30px;
}

.logo-image {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 0 20px #00ff00);
    animation: breathing 2s ease-in-out infinite alternate;
}

@keyframes breathing {
    from { 
        transform: scale(1);
        filter: drop-shadow(0 0 20px #00ff00);
    }
    to { 
        transform: scale(1.05);
        filter: drop-shadow(0 0 30px #00ff00);
    }
}

.loading-text {
    margin-bottom: 40px;
}

.station-name {
    font-size: 3rem;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00;
    margin: 0 0 10px 0;
    letter-spacing: 2px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { 
        text-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00;
    }
    to { 
        text-shadow: 0 0 30px #00ff00, 0 0 60px #00ff00;
    }
}

.loading-subtitle {
    font-size: 1.2rem;
    color: #00aa00;
    margin: 0;
    text-shadow: 0 0 10px #00aa00;
}

.loading-progress {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00aa00);
    width: 0%;
    animation: fillProgress 3s ease-in-out forwards;
    box-shadow: 0 0 10px #00ff00;
}

@keyframes fillProgress {
    from { width: 0%; }
    to { width: 100%; }
}

.loading-status {
    font-size: 1rem;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    margin: 0;
}

.loading-steps {
    margin-bottom: 30px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    font-size: 0.9rem;
    color: #00aa00;
    margin: 8px 0;
    padding: 5px 0;
    opacity: 0;
    animation: fadeInStep 0.5s ease-in-out forwards;
}

.step:nth-child(1) { animation-delay: 0.5s; }
.step:nth-child(2) { animation-delay: 1s; }
.step:nth-child(3) { animation-delay: 1.5s; }
.step:nth-child(4) { animation-delay: 2s; }

@keyframes fadeInStep {
    from { 
        opacity: 0;
        transform: translateX(-20px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

.loading-footer {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.8rem;
    color: #00aa00;
    border-top: 1px solid #00ff00;
    padding-top: 10px;
    width: 100%;
    max-width: 500px;
}

.frequency {
    margin-bottom: 5px;
    text-shadow: 0 0 5px #00aa00;
}

.copyright {
    color: #006600;
    text-shadow: 0 0 5px #006600;
}

/* Navigation Links */
.navigation-links {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 600px;
    width: 100%;
    padding: 0 20px;
}

.nav-link {
    display: inline-block;
    padding: 10px 15px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    border-radius: 5px;
    color: #00ff00;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff00;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInNav 0.5s ease-in-out forwards;
}

.nav-link:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 15px #00ff00;
    transform: translateY(-2px);
}

.nav-link:nth-child(1) { animation-delay: 2.5s; }
.nav-link:nth-child(2) { animation-delay: 2.7s; }
.nav-link:nth-child(3) { animation-delay: 2.9s; }
.nav-link:nth-child(4) { animation-delay: 3.1s; }

@keyframes fadeInNav {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .station-name {
        font-size: 2rem;
    }
    
    .logo-image {
        max-width: 150px;
    }
    
    .loading-steps {
        max-width: 300px;
    }
    
    .navigation-links {
        gap: 15px;
        padding: 0 15px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .loading-footer {
        bottom: 100px;
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .station-name {
        font-size: 1.5rem;
    }
    
    .logo-image {
        max-width: 120px;
    }
    
    .loading-steps {
        max-width: 250px;
    }
    
    .navigation-links {
        flex-direction: column;
        gap: 10px;
        bottom: 10px;
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 0.75rem;
        width: 100%;
        text-align: center;
    }
    
    .loading-footer {
        bottom: 120px;
        max-width: 280px;
    }
    
    .frequency {
        font-size: 0.7rem;
    }
}