/* ===== CSS Variables & Typography ===== */
:root {
    --bg-dark: #09090b;
    --neon-pink: #ff007f;
    --neon-cyan: #00f3ff;
    --neon-purple: #b026ff;
    --text-main: #f8f8f8;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(20, 20, 25, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background image overlay */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../img/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
    /* Optional vignette effect */
    box-shadow: inset 0 0 150px rgba(0,0,0,0.9);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== Header ===== */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid var(--glass-border);
}

.logo-container .logo {
    height: 80px;
    filter: drop-shadow(0 0 10px var(--neon-pink));
    animation: pulseLogo 3s infinite alternate;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}

.winamp-link {
    color: #ff9900 !important;
    border: 1px solid #ff9900;
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.winamp-link:hover {
    background-color: #ff9900;
    color: var(--bg-dark) !important;
    text-shadow: none !important;
    box-shadow: 0 0 15px #ff9900;
}

/* ===== Main Content ===== */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 50px 0;
}

/* Hero Section */
.hero-section {
    text-align: center;
}

.neon-text {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px var(--neon-pink),
        0 0 40px var(--neon-pink),
        0 0 80px var(--neon-pink);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--neon-cyan);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    width: 100%;
    max-width: 100%;
}

/* ===== Content Grid ===== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    align-items: stretch;
}

@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Player Section ===== */
.player-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Tape Animation Decoration */
.tape-deck {
    display: flex;
    justify-content: space-between;
    width: 120px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border-radius: 20px;
    padding: 5px 15px;
    margin-bottom: 25px;
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple);
}

.tape-spool {
    width: 26px;
    height: 26px;
    background: transparent;
    border: 4px dashed var(--text-muted);
    border-radius: 50%;
}

.tape-deck.playing .tape-spool {
    animation: spinTape 3s linear infinite;
}

/* Now Playing Info */
.now-playing {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.4);
    padding: 5px 15px;
    border-radius: 15px;
    margin-bottom: 15px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: var(--neon-pink);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-pink);
}

.status-indicator.playing .dot {
    animation: pulseDot 1s infinite alternate;
}

.status-text {
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.track-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
    /* Prevent long names from breaking layout */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.station-name {
    color: var(--text-muted);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Controls */
.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: transparent;
    border: 3px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.play-btn:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 25px var(--neon-cyan);
    transform: scale(1.05);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 80%;
}

.volume-control i {
    color: var(--text-muted);
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--neon-purple);
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 0 10px var(--neon-purple);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

/* About Section */
.about-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.text-panel {
    text-align: center;
}

.section-icon {
    font-size: 3rem;
    color: var(--neon-pink);
    margin-bottom: 20px;
}

.text-panel h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.text-panel p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #e0e0e0;
}

/* ===== Footer ===== */
.main-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text-main);
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink);
    transform: translateY(-3px);
}

/* ===== Animations ===== */
@keyframes spinTape {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseDot {
    from { opacity: 0.5; box-shadow: 0 0 2px var(--neon-pink); }
    to { opacity: 1; box-shadow: 0 0 12px var(--neon-pink); }
}

@keyframes pulseLogo {
    from { filter: drop-shadow(0 0 5px var(--neon-pink)); }
    to { filter: drop-shadow(0 0 20px var(--neon-pink)); }
}

/* Responsive */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .neon-text {
        font-size: 2.5rem;
    }
    
    .main-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
