/* assets/css/radio.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
    --radio-primary: #e63946; /* Vermelho/Cardeal como padrão (será injetado dinamicamente via PHP) */
    --bg-dark: #0f172a; /* Slate 900 */
    --bg-card: #1e293b; /* Slate 800 */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --player-height: 90px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    padding-bottom: var(--player-height); /* Espaço fixo para o player no rodapé */
}

a {
    text-decoration: none;
    color: var(--radio-primary);
    transition: var(--transition);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Rádio */
.radio-header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.radio-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 800;
}

.radio-logo img {
    height: 50px;
    border-radius: 8px;
}

.header-nav {
    display: flex;
    gap: 25px;
    list-style: none;
}

.header-nav a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.header-nav a:hover, .header-nav a.active {
    color: var(--radio-primary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text-main);
    font-size: 1.2rem;
    background: rgba(255,255,255,0.1);
    width: 35px; height: 35px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}

.social-links a:hover {
    background: var(--radio-primary);
    color: white;
}

/* Seções Padrão */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 5px;
    background-color: var(--radio-primary);
    border-radius: 5px;
}

/* Card Grid Generico (Notícias, Videos, Eventos) */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.1);
}

.news-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-body {
    padding: 20px;
}

.news-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: block;
}

.news-title {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Banner Interativo / Mural */
.interaction-banner {
    background: linear-gradient(135deg, var(--bg-card), rgba(0,0,0,0.8));
    border-radius: 20px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 3px solid var(--radio-primary);
}

.interaction-text h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.interaction-text p {
    color: var(--text-muted);
}

.btn-radio {
    background: var(--radio-primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.btn-radio:hover {
    opacity: 0.9;
    color: white;
}

/* Player Fixo Bottom */
.fixed-player {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--player-height);
    background: #0f172a;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

.player-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 300px;
}

.album-art {
    width: 60px; height: 60px;
    border-radius: 8px;
    background: #1e293b;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--text-muted);
}

.track-info {
    overflow: hidden;
}

.track-name {
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.artist-name {
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--radio-primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.4);
}

.play-btn:hover {
    transform: scale(1.05);
}

/* Loader Equalizador da Live */
.equalizer {
    display: flex;
    gap: 3px;
    height: 20px;
    align-items: flex-end;
}
.equalizer .bar {
    width: 4px;
    background: var(--radio-primary);
    animation: bounce 1.5s ease-in-out infinite;
}
.equalizer .bar:nth-child(2) { animation-duration: 0.8s; }
.equalizer .bar:nth-child(3) { animation-duration: 1.2s; }
.equalizer .bar:nth-child(4) { animation-duration: 1.0s; }

@keyframes bounce {
    0%, 100% { height: 5px; }
    50% { height: 20px; }
}

.player-volume {
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.vol-slider {
    width: 100px;
    accent-color: var(--radio-primary);
}

/* Responsividade */
@media(max-width: 768px) {
    .header-nav { display: none; }
    .player-volume { display: none; }
    .now-playing { width: auto; max-width: 200px; }
    .interaction-banner { flex-direction: column; text-align: center; gap: 20px; }
}
