/* MixWave Radio - Retro Future Stylesheet */
/* Keep the old school vibe, add some glow */

:root {
    --neon-purple: #b400ff;
    --neon-pink: #ff00aa;
    --neon-blue: #00d4ff;
    --dark-bg: #0a0a12;
    --card-bg: rgba(20, 10, 40, 0.85);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
}

/* Scan line overlay for CRT effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 9999;
}

/* ===== HEADER ===== */
header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(180deg, rgba(180, 0, 255, 0.2) 0%, transparent 100%);
}

.logo {
    max-width: 300px;
    width: 80%;
    border-radius: 20px;
    filter: drop-shadow(0 0 20px rgba(180, 0, 255, 0.5));
    transition: filter 0.3s ease;
}

.logo:hover {
    filter: drop-shadow(0 0 30px rgba(180, 0, 255, 0.8));
}

.site-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(180, 0, 255, 0.5);
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

/* ===== NAVIGATION ===== */
nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    flex-wrap: wrap;
}

.nav-button {
    list-style: none;
}

.nav-button a {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, rgba(180, 0, 255, 0.3), rgba(0, 212, 255, 0.2));
    border: 1px solid var(--neon-purple);
    border-radius: 25px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-button a:hover {
    background: linear-gradient(135deg, rgba(180, 0, 255, 0.6), rgba(0, 212, 255, 0.4));
    box-shadow: 0 0 20px rgba(180, 0, 255, 0.5);
    transform: translateY(-2px);
}

.nav-style {
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* ===== MAIN CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== NOW PLAYING CARD ===== */
.now-playing {
    background: var(--card-bg);
    border: 1px solid rgba(180, 0, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 25px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.now-playing::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink), var(--neon-blue));
}

.album-art {
    width: 150px;
    height: 150px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(180, 0, 255, 0.4);
}

.track-info {
    min-width: 0;
}

.now-label {
    display: inline-block;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(180, 0, 255, 0.5); }
    50% { box-shadow: 0 0 20px rgba(180, 0, 255, 0.8); }
}

.track-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    color: var(--neon-blue);
    font-size: 1.1rem;
    margin: 0 0 15px 0;
}

.progress-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
    border-radius: 10px;
    transition: width 1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== EQUALIZER ===== */
.equalizer {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 60px;
}

.eq-bar {
    width: 6px;
    background: linear-gradient(0deg, var(--neon-purple), var(--neon-pink));
    border-radius: 3px;
    animation: eq-dance 0.5s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { animation-delay: 0.0s; height: 60%; }
.eq-bar:nth-child(2) { animation-delay: 0.1s; height: 80%; }
.eq-bar:nth-child(3) { animation-delay: 0.2s; height: 40%; }
.eq-bar:nth-child(4) { animation-delay: 0.3s; height: 90%; }
.eq-bar:nth-child(5) { animation-delay: 0.4s; height: 50%; }
.eq-bar:nth-child(6) { animation-delay: 0.2s; height: 70%; }
.eq-bar:nth-child(7) { animation-delay: 0.1s; height: 55%; }
.eq-bar:nth-child(8) { animation-delay: 0.3s; height: 85%; }

@keyframes eq-dance {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1); }
}

.eq-paused .eq-bar {
    animation-play-state: paused;
}

/* ===== PLAYER CONTROLS ===== */
.player-section {
    background: var(--card-bg);
    border: 1px solid rgba(180, 0, 255, 0.3);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.player-section h2 {
    margin: 0 0 20px 0;
    color: var(--neon-pink);
}

.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--neon-purple);
    background: linear-gradient(135deg, rgba(180, 0, 255, 0.3), rgba(0, 212, 255, 0.2));
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(180, 0, 255, 0.6);
}

.play-button svg {
    width: 30px;
    height: 30px;
    fill: var(--text-primary);
    margin-left: 5px;
}

.play-button.playing svg {
    margin-left: 0;
}

.listener-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.listener-count strong {
    color: var(--neon-blue);
}

/* ===== UP NEXT & HISTORY ===== */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid rgba(180, 0, 255, 0.3);
    border-radius: 20px;
    padding: 20px;
}

.info-card h3 {
    margin: 0 0 15px 0;
    color: var(--neon-purple);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.up-next-item, .history-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.up-next-item:last-child, .history-item:last-child {
    border-bottom: none;
}

.mini-art {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.mini-info {
    min-width: 0;
    flex: 1;
}

.mini-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
}

.mini-artist {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ===== ARCHIVE SECTION ===== */
.archive-section {
    background: var(--card-bg);
    border: 1px solid rgba(180, 0, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.archive-section h2 {
    margin: 0 0 20px 0;
    text-align: center;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.mix-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(180, 0, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mix-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-purple);
    box-shadow: 0 10px 30px rgba(180, 0, 255, 0.3);
}

.mix-card-art {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.mix-card-info {
    padding: 15px;
}

.mix-card-title {
    font-weight: bold;
    margin: 0 0 5px 0;
}

.mix-card-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.mix-tag {
    display: inline-block;
    background: rgba(180, 0, 255, 0.3);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-top: 10px;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 30px;
    background: linear-gradient(0deg, rgba(180, 0, 255, 0.2) 0%, transparent 100%);
    color: var(--text-secondary);
}

footer a {
    color: var(--neon-blue);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 768px) {
    .now-playing {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .album-art {
        margin: 0 auto;
    }

    .equalizer {
        justify-content: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .site-title {
        font-size: 1.8rem;
    }

    .track-title {
        font-size: 1.2rem;
    }
}

/* ===== LINK STYLES ===== */
a:link, a:visited {
    color: var(--neon-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--neon-pink);
}

/* ===== LOADING STATE ===== */
.loading {
    opacity: 0.5;
    animation: fade-pulse 1s infinite;
}

@keyframes fade-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* ===== OFFLINE BANNER ===== */
.offline-banner {
    background: linear-gradient(90deg, #ff4444, #cc0000);
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    display: none;
}

.offline-banner.visible {
    display: block;
}


/* ===== LEGACY CLASSES (keeping for other pages) ===== */
.wrapper {
    padding: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.centercontent {
    background: var(--card-bg);
    border: 1px solid rgba(180, 0, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
}

.welcometext {
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.centertext {
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    padding: 10px;
}

.livestream {
    color: var(--neon-pink);
    font-style: italic;
}

.player {
    border: 1px solid rgba(180, 0, 255, 0.3);
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
}

.foot {
    text-align: center;
    padding: 30px;
    background: linear-gradient(0deg, rgba(180, 0, 255, 0.2) 0%, transparent 100%);
    color: var(--text-secondary);
}

.flex-columns {
    display: flex;
    flex-direction: column;
}
