/* ==========================================================================
   RADIO AGRO - PUBLIC STREAMING PORTAL
   Aesthetics: Sleek Cyber-Retro Broadcast Dark Mode with Glassmorphism
   ========================================================================== */

:root {
    --bg-primary: #090d16;
    --bg-secondary: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(59, 130, 246, 0.3);
    --primary: #3b82f6;
    --primary-glow: #60a5fa;
    --accent: #10b981;
    --accent-glow: #34d399;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --danger: #ef4444;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* Background Ambient Glow */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

/* Navbar */
.navbar-custom {
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main) !important;
}

/* Hero Broadcast Deck */
.hero-deck {
    position: relative;
    padding: 60px 0 40px;
    z-index: 1;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: var(--border-glow);
}

/* On-Air Live Pulsing Badge */
.live-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 9999px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    margin-right: 8px;
    animation: livePulse 1.2s infinite;
}

@keyframes livePulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.1); opacity: 0.8; box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Vinyl Album Animation */
.vinyl-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto;
}

.vinyl-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #2a2f3a 28%, #11141c 30%, #1c212d 38%, #11141c 45%, #252b39 55%, #0f131a 68%, #090d16 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #1e293b;
    transition: transform 0.5s ease;
}

.vinyl-disc.spinning {
    animation: rotateVinyl 8s linear infinite;
}

@keyframes rotateVinyl {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vinyl-center {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #10b981);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Big Listen Button */
.btn-listen-live {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 36px;
    border-radius: 9999px;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.5);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-listen-live:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.65);
    color: #fff;
}

.btn-listen-live.playing {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.5);
}

/* Visualizer Bars */
.visualizer-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 35px;
    width: 140px;
}

.v-bar {
    width: 5px;
    background: #3b82f6;
    border-radius: 3px;
    height: 6px;
    transition: height 0.1s ease;
}

.v-bar.active {
    animation: barBounce 1s ease-in-out infinite alternate;
}

.v-bar:nth-child(1) { animation-delay: 0.1s; background: #60a5fa; }
.v-bar:nth-child(2) { animation-delay: 0.3s; background: #3b82f6; }
.v-bar:nth-child(3) { animation-delay: 0.5s; background: #10b981; }
.v-bar:nth-child(4) { animation-delay: 0.2s; background: #34d399; }
.v-bar:nth-child(5) { animation-delay: 0.6s; background: #3b82f6; }
.v-bar:nth-child(6) { animation-delay: 0.4s; background: #60a5fa; }
.v-bar:nth-child(7) { animation-delay: 0.15s; background: #10b981; }
.v-bar:nth-child(8) { animation-delay: 0.45s; background: #34d399; }

@keyframes barBounce {
    0% { height: 4px; }
    50% { height: 28px; }
    100% { height: 12px; }
}

/* Chip telemetries */
.telemetry-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.telemetry-chip strong {
    color: var(--text-main);
}

/* Modal styling */
.modal-content {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    border-radius: 20px;
}

.modal-header, .modal-footer {
    border-color: rgba(255, 255, 255, 0.08);
}

.form-control, .form-select {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.form-control:focus, .form-select:focus {
    background: rgba(15, 23, 42, 0.95);
    border-color: #3b82f6;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}
