/* === Radio Senegal Styles === */

/* Category filter */
.radio-category-filter {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}
.cat-tab {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}
.cat-tab:hover { background: #e0e0e0; }
.cat-tab.active { background: var(--color-primary, #ff9900); color: #fff; }
.cat-tab-icon { font-size: 1rem; }

/* Radio grid */
.radio-section { margin: 30px 0; }
.radio-section h2 { font-size: 1.3rem; margin-bottom: 16px; }

.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

/* Radio card */
.radio-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 12px;
    transition: box-shadow 0.2s, transform 0.15s;
}
.radio-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.radio-card-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.radio-card-logo {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.radio-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.radio-card-placeholder {
    font-size: 1.8rem;
    opacity: 0.4;
}

.radio-card-info {
    flex: 1;
    min-width: 0;
}
.radio-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.radio-card-freq {
    font-size: 0.78rem;
    color: var(--color-primary, #ff9900);
    font-weight: 600;
}
.radio-card-city {
    font-size: 0.75rem;
    color: #888;
    margin-left: 6px;
}

/* Play button on card */
.radio-play-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-primary, #ff9900);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
    margin-left: 8px;
}
.radio-play-btn:hover {
    background: #e68a00;
    transform: scale(1.1);
}
.radio-play-btn.playing {
    background: #d32f2f;
    animation: radio-pulse 2s infinite;
}
.radio-play-btn.playing:hover {
    background: #b71c1c;
}
@keyframes radio-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(211,47,47,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(211,47,47,0); }
}

/* Station page main play button playing state */
.station-play-btn.playing {
    background: #d32f2f;
}
.station-play-btn.playing:hover {
    background: #b71c1c;
}

/* Offline state */
.radio-offline {
    background: #ccc !important;
    cursor: default !important;
}
.radio-offline:hover {
    background: #ccc !important;
    transform: none !important;
}
.station-offline-notice {
    padding: 12px 16px;
    background: #fff3e0;
    border-left: 4px solid #e65100;
    border-radius: 6px;
    margin-bottom: 10px;
}
.station-offline-notice span {
    font-weight: 600;
    font-size: 0.95rem;
}
.station-offline-notice p {
    font-size: 0.85rem;
    color: #666;
    margin: 6px 0 0;
}

/* Station page header */
.station-header {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    align-items: flex-start;
}
.station-logo-large {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.station-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.station-logo-placeholder {
    font-size: 3rem;
    opacity: 0.3;
}

.station-header-info h1 { font-size: 1.5rem; margin: 0 0 6px; }
.station-tagline { color: #666; font-style: italic; margin: 0 0 10px; }
.station-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.meta-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #f0f0f0;
}
.meta-freq { background: #fff3e0; color: #e65100; }
.meta-city { background: #e8f5e9; color: #2e7d32; }
.meta-codec { background: #e3f2fd; color: #1565c0; }

/* Main play button */
.station-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--color-primary, #ff9900);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    margin-bottom: 10px;
}
.station-play-btn:hover {
    background: #e68a00;
    transform: translateY(-1px);
}

.station-website-link {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--color-primary, #ff9900);
    text-decoration: none;
    margin-left: 12px;
}
.station-website-link:hover { text-decoration: underline; }

/* Station content (rich SEO text) */
.station-content { margin: 24px 0; line-height: 1.8; }
.station-content p { margin-bottom: 14px; }
.station-content h3 { margin-top: 20px; font-size: 1.1rem; }
.station-content ul { padding-left: 20px; margin: 10px 0; }
.station-content li { margin-bottom: 6px; }

/* Floating audio player */
.radio-floating-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}
.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.player-logo {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.player-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.player-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.player-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.2s;
}
.player-btn:hover { background: rgba(255,255,255,0.1); }
.player-close { opacity: 0.6; }
.player-close:hover { opacity: 1; }

/* Pulsing animation when playing */
.radio-floating-player.playing .player-logo {
    animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,153,0,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(255,153,0,0); }
}

/* FAQ */
.radio-page .faq-section { margin: 30px 0; }
.radio-page .faq-item { border-bottom: 1px solid #eee; }
.radio-page .faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}
.radio-page .faq-toggle { font-size: 1.2rem; color: var(--color-primary, #ff9900); }
.radio-page .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    line-height: 1.6;
    color: #555;
}
.radio-page .faq-item.open .faq-answer { padding-bottom: 14px; }

/* SEO content */
.radio-page .seo-content { margin: 30px 0; line-height: 1.8; }
.radio-page .seo-content p { margin-bottom: 12px; }
.radio-page .seo-content h3 { margin-top: 20px; font-size: 1.1rem; }
.radio-page .seo-content ul { padding-left: 20px; }
.radio-page .seo-content li { margin-bottom: 6px; }

/* Mobile */
@media (max-width: 767px) {
    .radio-grid { grid-template-columns: 1fr; gap: 8px; }
    .station-header { flex-direction: column; align-items: center; text-align: center; }
    .station-logo-large { width: 100px; height: 100px; }
    .station-header-info h1 { font-size: 1.2rem; }
    .station-meta { justify-content: center; }
    .radio-floating-player { padding: 8px 12px; }
    .player-name { font-size: 0.8rem; }
}

/* Add bottom padding to page to not hide content behind player */
.radio-page { padding-bottom: 70px; }
