/* public/css/styles.css */
/* Clean, Bright, Modern Aesthetic with Vibrant Royal Blue for RadioWave Kenya */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-glow: rgba(37, 99, 235, 0.15);
    --canvas: #f8fafc;
    --surface: #ffffff;
    --surface-muted: #f1f5f9;
    --border-color: #e2e8f0;
    --border-hover: rgba(37, 99, 235, 0.4);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;
    --player-bg: rgba(255, 255, 255, 0.92);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--canvas);
    color: var(--text-main);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Frosted Glass Panels */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-player {
    background: var(--player-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.1), 0 0 1px 1px rgba(226, 232, 240, 0.8);
}

/* Station Directory Cards */
.station-card {
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.station-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 14px 28px -6px rgba(37, 99, 235, 0.15), 0 2px 4px -2px rgba(37, 99, 235, 0.05);
}

/* Live Badge with Mint Pulse */
.live-badge {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.live-pulse {
    animation: pulseMint 1.8s infinite;
}

@keyframes pulseMint {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Miniature 4-Bar Audio Visualizer Equalizer */
.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
}

.equalizer-bar {
    width: 3px;
    background: #2563eb;
    border-radius: 2px;
    height: 3px;
    transition: height 0.15s ease;
}

.equalizer.playing .equalizer-bar:nth-child(1) { animation: bounce 0.8s ease infinite alternate; }
.equalizer.playing .equalizer-bar:nth-child(2) { animation: bounce 1.1s ease infinite alternate 0.15s; }
.equalizer.playing .equalizer-bar:nth-child(3) { animation: bounce 0.6s ease infinite alternate 0.25s; }
.equalizer.playing .equalizer-bar:nth-child(4) { animation: bounce 1.2s ease infinite alternate 0.1s; }

@keyframes bounce {
    0% { height: 3px; }
    100% { height: 16px; }
}

/* Soft Glow Elements */
.glow-primary {
    box-shadow: 0 10px 25px -5px var(--primary-glow);
}

/* Smooth Fade In */
.animate-fadeIn {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    animation: slideIn 0.3s ease forwards;
    border-radius: 14px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
