﻿/* ============================================
   LISTEN LIVE CTR ENHANCEMENTS
   ============================================ */

/* 1. HEADER LISTEN LIVE BUTTON */
.btn-listen-live {
    background: #FFD700 !important; /* High-contrast yellow */
    color: #000 !important;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.btn-listen-live:hover {
    background: #FFC700 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

.btn-listen-live i {
    font-size: 14px;
}

/* Alternative blue version (swap with yellow if preferred) */
.btn-listen-live-blue {
    background: #0066cc !important;
    color: #fff !important;
}

.btn-listen-live-blue:hover {
    background: #0052a3 !important;
}

/* Header actions layout adjustment for new button */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 2. MOBILE MINI-PLAYER (Scroll-Activated) */
.mini-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    border-top: 3px solid #FFD700;
    padding: 12px 16px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    display: none; /* Hidden by default, shown on mobile */
}

.mini-player.visible {
    transform: translateY(0);
}

.mini-player-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
}

.mini-player-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    min-width: 0; /* Allow text truncation */
}

.mini-player-info i {
    color: #FFD700;
    font-size: 16px;
    flex-shrink: 0;
}

.mini-player-info span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-player-btn {
    background: #FFD700;
    color: #000;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.mini-player-btn:hover {
    background: #FFC700;
    transform: scale(1.1);
}

.mini-player-btn:active {
    transform: scale(0.95);
}

.mini-player-btn i {
    font-size: 16px;
}

/* Show mini-player only on mobile */
@media (max-width: 767px) {
    .mini-player {
        display: block;
    }
}

/* 3. CONTEXTUAL "LISTEN WHILE YOU BROWSE" CTAS */
.listen-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #FFD700;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.listen-cta:hover {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
    cursor: pointer;
}

.listen-cta-icon {
    background: #FFD700;
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.listen-cta-text {
    flex: 1;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
}

.listen-cta-text strong {
    color: #000;
    font-weight: 600;
}

/* Mobile adjustments for CTAs */
@media (max-width: 767px) {
    .listen-cta {
        padding: 14px 16px;
        margin: 16px 0;
    }
    
    .listen-cta-text {
        font-size: 14px;
    }
    
    .listen-cta-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* 4. MOBILE HEADER ADJUSTMENTS */
@media (max-width: 767px) {
    .header-actions {
        display: none; /* Hide desktop buttons on mobile */
    }
    
    /* Show compact Listen Live on mobile header */
    .mobile-listen-live {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        background: #FFD700;
        color: #000;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 600;
        margin-left: 8px;
    }
    
    .header-top {
        position: relative;
        padding-bottom: 12px;
    }
    
    /* Ensure Listen Live button doesn't overlap mobile menu */
    .mobile-menu-toggle {
        margin-left: auto;
    }
}

/* Show mobile Listen Live button */
@media (max-width: 767px) {
    .btn-listen-live {
        display: none; /* Hide full button on mobile */
    }
    
    /* Add compact version for mobile header if needed */
    .header-top::after {
        content: none; /* Remove if causes layout issues */
    }
}

/* Sticky header enhancement (if header has .sticky class) */
header.sticky .btn-listen-live {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(255, 215, 0, 0.6);
    }
}

/* Ensure header remains sticky on scroll */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #000 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 5. PLAYING STATE INDICATORS */
.mini-player-btn.playing i::before {
    content: "\f04c"; /* FontAwesome pause icon */
}

.btn-listen-live.playing {
    background: #4CAF50 !important; /* Green when playing */
}

.btn-listen-live.playing::after {
    content: " • Now Playing";
    font-size: 11px;
    opacity: 0.9;
}

/* Force the header background to black */
header, .header-top {
    background-color: #000 !important;
}

/* Ensure the nav links and text remain white against the black */
.nav-links a, .header-actions a.btn-secondary {
    color: #fff !important;
}

/* FORCE BLACK HEADER BACKGROUND */
.header-top {
    background-color: #000000 !important;
}

/* FORCE BUTTON TO BE YELLOW */
.btn-listen-live {
    background-color: #FFD700 !important; /* Gold/Yellow */
    color: #000000 !important;           /* Black text */
    font-weight: 800 !important;
    text-transform: uppercase;
    padding: 10px 18px !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
}

/* FIX ALIGNMENT: Ensure actions don't stack weirdly */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sticky-audio-bar {
    background: #111;
    color: #fff;
    padding: 12px 0;
    position: sticky;
    top: 0; /* Or bottom: 0; if you prefer it at the bottom */
    z-index: 999;
    border-bottom: 3px solid #FFD700;
}

.bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-dot {
    height: 10px;
    width: 10px;
    background-color: #ff0000;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    animation: blink 1.5s infinite;
}

.play-trigger-btn {
    background: #FFD700;
    color: #000 !important;
    padding: 6px 15px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.bottom-player-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000;
    color: #fff;
    padding: 12px 0;
    z-index: 9999;
    border-top: 3px solid #FFD700;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
}

.player-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.now-playing-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.station-label {
    display: block;
    font-weight: 800;
    font-size: 14px;
    color: #FFD700;
    letter-spacing: 1px;
}

.song-title {
    display: block;
    font-size: 12px;
    color: #bbb;
}

.btn-launch-player {
    background: #FFD700;
    color: #000 !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.btn-launch-player:hover {
    transform: scale(1.05);
}

/* Pulse Animation */
.pulse-dot {
    height: 10px;
    width: 10px;
    background: #ff0000;
    border-radius: 50%;
    display: block;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,0,0,0.7); }
    70% { opacity: 0.5; box-shadow: 0 0 0 10px rgba(255,0,0,0); }
    100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,0,0,0); }
}

/* Mobile Tweak: Hide the song title to prevent overlap */
@media (max-width: 480px) {
    .song-title { display: none; }
    .btn-text { font-size: 12px; }
    .btn-launch-player { padding: 8px 16px; }
}

/* Red/Blinking (Default/Idle) */
.pulse-dot {
    height: 10px;
    width: 10px;
    background: #ff0000;
    border-radius: 50%;
    display: block;
    animation: blink 1.5s infinite;
}

/* Green/Steady (Playing) */
.pulse-dot.is-playing {
    background: #00ff00; /* Bright Radio Green */
    box-shadow: 0 0 10px #00ff00;
    animation: none; /* Stop blinking so it looks "locked in" */
}

@keyframes blink {
    0% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,0,0,0.7); }
    70% { opacity: 0.5; box-shadow: 0 0 0 10px rgba(255,0,0,0); }
    100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,0,0,0); }
}

/* This makes the dot turn solid green and stop blinking when clicked */
.pulse-dot.is-playing {
    background: #00ff00 !important;
    box-shadow: 0 0 12px #00ff00 !important;
    animation: none !important;
}