/* ============================================
   NEET HUB — Multi-Platform Topbar Radio Styles
   ============================================ */

/* ── Widget Container (sits inside nav-right) ── */

.radio-widget {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 1001;
}

/* ── Toggle Button (station label + icon) ────── */

.radio-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 245, 255, 0.06);
    border: 1px solid rgba(0, 245, 255, 0.15);
    border-radius: 6px;
    padding: 5px 10px;
    color: var(--text-secondary, #a8a8cc);
    font-family: var(--font-body, 'Rajdhani', sans-serif);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.radio-toggle:hover {
    background: rgba(0, 245, 255, 0.12);
    border-color: rgba(0, 245, 255, 0.3);
    color: var(--neon-cyan, #00f5ff);
}

.radio-widget.playing .radio-toggle {
    border-color: rgba(0, 245, 255, 0.35);
    color: var(--neon-cyan, #00f5ff);
    box-shadow: 0 0 8px rgba(0, 245, 255, 0.15);
}

.radio-icon {
    font-size: 0.85rem;
    line-height: 1;
}

.radio-lbl {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Equalizer Bars (animated when playing) ──── */

.radio-eq {
    display: flex;
    align-items: flex-end;
    gap: 1.5px;
    height: 12px;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.3s, width 0.3s;
}

.radio-widget.playing .radio-eq {
    opacity: 1;
    width: 14px;
}

.radio-eq span {
    display: block;
    width: 2.5px;
    background: var(--neon-cyan, #00f5ff);
    border-radius: 1px;
    animation: eqBounce 0.8s ease-in-out infinite alternate;
}

.radio-eq span:nth-child(1) { height: 4px; animation-delay: 0s; }
.radio-eq span:nth-child(2) { height: 8px; animation-delay: 0.2s; }
.radio-eq span:nth-child(3) { height: 5px; animation-delay: 0.4s; }

@keyframes eqBounce {
    0%   { height: 3px; }
    100% { height: 12px; }
}

/* ── Live Listener Badge ─────────────────────── */

.radio-live {
    font-family: var(--font-mono, 'Share Tech Mono', monospace);
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--neon-green, #39ff14);
    background: rgba(57, 255, 20, 0.1);
    border-radius: 4px;
    padding: 1px 4px;
    min-width: 0;
    line-height: 1.3;
}

.radio-live:empty {
    display: none;
}

/* ── Small Play/Pause Button ─────────────────── */

.radio-play-sm {
    background: none;
    border: 1px solid rgba(0, 245, 255, 0.2);
    color: var(--text-primary, #e0e0ff);
    font-size: 0.75rem;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.radio-play-sm:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: rgba(0, 245, 255, 0.4);
    color: var(--neon-cyan, #00f5ff);
}

.radio-widget.playing .radio-play-sm {
    color: var(--neon-cyan, #00f5ff);
    border-color: rgba(0, 245, 255, 0.3);
}

/* ── Dropdown Panel ──────────────────────────── */

.radio-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    max-height: 70vh;
    overflow-y: auto;
    background: rgba(18, 18, 28, 0.98);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 245, 255, 0.15);
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7),
                0 0 20px rgba(0, 245, 255, 0.08);
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002;
}

.radio-dropdown.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Scrollbar styling */
.radio-dropdown::-webkit-scrollbar { width: 4px; }
.radio-dropdown::-webkit-scrollbar-track { background: transparent; }
.radio-dropdown::-webkit-scrollbar-thumb {
    background: rgba(0, 245, 255, 0.2);
    border-radius: 2px;
}

.radio-dd-header {
    font-family: var(--font-display, 'Orbitron', sans-serif);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted, #7777a0);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 245, 255, 0.08);
}

/* ── Section Labels ──────────────────────────── */

.radio-dd-section-label {
    font-family: var(--font-display, 'Orbitron', sans-serif);
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--text-muted, #7777a0);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.4rem;
    margin-top: 0.3rem;
}

/* ── Station Buttons ─────────────────────────── */

.radio-dd-stations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 0.6rem;
}

.radio-dd-station {
    background: rgba(184, 41, 227, 0.05);
    border: 1px solid rgba(184, 41, 227, 0.15);
    color: var(--text-secondary, #a8a8cc);
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-body, 'Rajdhani', sans-serif);
    font-size: 0.7rem;
    font-weight: 500;
    text-align: left;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.radio-dd-station:hover {
    background: rgba(184, 41, 227, 0.12);
    border-color: rgba(184, 41, 227, 0.35);
    color: var(--text-primary, #e0e0ff);
}

.radio-dd-station.active {
    background: rgba(0, 245, 255, 0.1);
    border-color: var(--neon-cyan, #00f5ff);
    color: var(--neon-cyan, #00f5ff);
    box-shadow: 0 0 8px rgba(0, 245, 255, 0.2);
}

/* ── Platform Badges ─────────────────────────── */

.radio-platform-badge {
    display: inline-block;
    font-family: var(--font-mono, 'Share Tech Mono', monospace);
    font-size: 0.5rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    line-height: 1.3;
    vertical-align: middle;
    margin-right: 2px;
}

.radio-badge-youtube {
    background: rgba(255, 0, 0, 0.15);
    color: #ff4444;
    border: 1px solid rgba(255, 0, 0, 0.25);
}


/* ── Dropdown Play Button ────────────────────── */

.radio-dd-controls {
    margin-bottom: 0.5rem;
}

.radio-dd-play {
    width: 100%;
    background: linear-gradient(135deg, var(--neon-cyan, #00f5ff), #00d4ff);
    border: none;
    color: #000;
    padding: 7px 0;
    border-radius: 6px;
    font-family: var(--font-body, 'Rajdhani', sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 12px rgba(0, 245, 255, 0.3);
    letter-spacing: 0.5px;
}

.radio-dd-play:hover {
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
    transform: translateY(-1px);
}

/* ── Volume Slider ───────────────────────────── */

.radio-dd-volume {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: rgba(0, 245, 255, 0.04);
    border: 1px solid rgba(0, 245, 255, 0.08);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.radio-vol-slider {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: rgba(0, 245, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.radio-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neon-cyan, #00f5ff);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0, 245, 255, 0.5);
}

.radio-vol-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neon-cyan, #00f5ff);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0, 245, 255, 0.5);
    border: none;
}

.radio-vol-slider::-moz-range-track {
    background: transparent;
    border: none;
}

.radio-vol-pct {
    font-family: var(--font-mono, 'Share Tech Mono', monospace);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--neon-cyan, #00f5ff);
    min-width: 20px;
    text-align: right;
}

/* ── Listener Count ──────────────────────────── */

.radio-dd-listeners {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted, #7777a0);
    font-family: var(--font-mono, 'Share Tech Mono', monospace);
    padding: 4px 0 0;
}

/* ── Divider ─────────────────────────────────── */

.radio-dd-divider {
    height: 1px;
    background: rgba(0, 245, 255, 0.1);
    margin: 0.6rem 0;
}

/* ── Playlist Submission Section ─────────────── */

.radio-submit-section {
    display: none; /* shown via JS when authenticated */
}

.radio-submit-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 245, 255, 0.12);
    border-radius: 6px;
    padding: 7px 10px;
    color: var(--text-primary, #e0e0ff);
    font-family: var(--font-body, 'Rajdhani', sans-serif);
    font-size: 0.7rem;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 6px;
    box-sizing: border-box;
}

.radio-submit-input::placeholder {
    color: var(--text-muted, #7777a0);
    opacity: 0.7;
}

.radio-submit-input:focus {
    border-color: rgba(0, 245, 255, 0.4);
    box-shadow: 0 0 8px rgba(0, 245, 255, 0.1);
}

.radio-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--neon-purple, #b829e3), var(--neon-cyan, #00f5ff));
    border: none;
    color: #fff;
    padding: 7px 0;
    border-radius: 6px;
    font-family: var(--font-body, 'Rajdhani', sans-serif);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 0 12px rgba(184, 41, 227, 0.2);
}

.radio-submit-btn:hover {
    box-shadow: 0 0 20px rgba(184, 41, 227, 0.4);
    transform: translateY(-1px);
}

.radio-submit-msg {
    font-family: var(--font-mono, 'Share Tech Mono', monospace);
    font-size: 0.6rem;
    margin-top: 4px;
    min-height: 14px;
    text-align: center;
}

.radio-submit-error { color: #ff4444; }
.radio-submit-success { color: var(--neon-green, #39ff14); }
.radio-submit-info { color: var(--neon-cyan, #00f5ff); }

/* ── Mobile Responsive ───────────────────────── */

@media (max-width: 768px) {
    .radio-lbl {
        display: none;
    }

    .radio-toggle {
        padding: 5px 8px;
        gap: 4px;
    }

    .radio-dropdown {
        right: -40px;
        width: 240px;
    }
}

@media (max-width: 480px) {
    .radio-widget {
        gap: 2px;
    }

    .radio-toggle {
        padding: 4px 6px;
    }

    .radio-play-sm {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }

    .radio-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 12px 12px 0 0;
        padding: 1rem;
        max-height: 80vh;
    }
}

/* ── Accessibility ───────────────────────────── */

.radio-toggle:focus-visible,
.radio-play-sm:focus-visible,
.radio-dd-station:focus-visible,
.radio-dd-play:focus-visible,
.radio-submit-btn:focus-visible {
    outline: 2px solid var(--neon-cyan, #00f5ff);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .radio-eq span { animation: none; }
    .radio-dropdown,
    .radio-toggle,
    .radio-play-sm,
    .radio-dd-station,
    .radio-dd-play,
    .radio-submit-btn { transition: none; }
}

/* ============================================
   VIBE BANNER — first-time visitor prompt
   ============================================ */
.vibe-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    background: linear-gradient(135deg, rgba(15,12,30,0.95), rgba(25,15,45,0.95));
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 12px;
    color: #ddd;
    font-family: var(--font-body, 'Rajdhani', sans-serif);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    z-index: 2000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 15px rgba(0, 245, 255, 0.08);
    animation: vibeBannerIn 0.5s ease;
    transition: opacity 0.4s, transform 0.4s;
}
.vibe-banner:hover {
    border-color: rgba(0, 245, 255, 0.4);
    color: #fff;
}
.vibe-banner.hiding {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}
@keyframes vibeBannerIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.vibe-banner-eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}
.vibe-banner-eq span {
    display: block;
    width: 3px;
    background: var(--neon-cyan, #00f5ff);
    border-radius: 1px;
    animation: vibeBannerEq 0.8s ease-in-out infinite alternate;
}
.vibe-banner-eq span:nth-child(1) { height: 6px; animation-delay: 0s; }
.vibe-banner-eq span:nth-child(2) { height: 10px; animation-delay: 0.2s; }
.vibe-banner-eq span:nth-child(3) { height: 4px; animation-delay: 0.4s; }
@keyframes vibeBannerEq {
    to { height: 14px; }
}
