/* ============================================
   SISTEMA DE RÁDIO ONLINE - CSS PÚBLICO
   ============================================ */

:root {
    --cor-primaria: #ff0000;
    --cor-secundaria: #000000;
    --cor-texto: #333333;
    --cor-texto-claro: #666666;
    --cor-fundo: #ffffff;
    --cor-fundo-secundario: #f5f5f5;
    --cor-borda: #e0e0e0;
    --sombra: 0 2px 10px rgba(0, 0, 0, 0.1);
    --sombra-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--cor-texto);
    background-color: var(--cor-fundo);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
    color: white;
    padding: 30px 0;
    box-shadow: var(--sombra);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    max-height: 80px;
    width: auto;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ============================================
   MAIN
   ============================================ */

.main {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

.radio-info {
    text-align: center;
    margin-bottom: 40px;
}

.radio-info h2 {
    font-size: 2rem;
    color: var(--cor-primaria);
    margin-bottom: 15px;
}

.radio-info .descricao {
    font-size: 1.1rem;
    color: var(--cor-texto-claro);
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   PLAYER SECTION
   ============================================ */

.player-section {
    background: var(--cor-fundo-secundario);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: var(--sombra);
    text-align: center;
}

.ao-vivo-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--cor-primaria);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.pulse {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.programa-atual {
    margin-bottom: 30px;
}

.programa-atual h3 {
    font-size: 1.5rem;
    color: var(--cor-primaria);
    margin-bottom: 5px;
}

.programa-atual .locutor {
    color: var(--cor-texto-claro);
    font-size: 1rem;
}

.audio-player-wrapper {
    margin-top: 30px;
}

#radioPlayer {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
    border-radius: 10px;
    background: white;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn-play-pause {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--cor-primaria);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: var(--sombra);
}

.btn-play-pause:hover {
    transform: scale(1.1);
    box-shadow: var(--sombra-hover);
}

.btn-play-pause:active {
    transform: scale(0.95);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: var(--sombra);
}

.volume-control span:first-child {
    font-size: 1.2rem;
}

#volumeSlider {
    width: 150px;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--cor-borda);
    border-radius: 5px;
    outline: none;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--cor-primaria);
    border-radius: 50%;
    cursor: pointer;
}

#volumeSlider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--cor-primaria);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#volumeValue {
    font-weight: bold;
    min-width: 45px;
    text-align: right;
}

/* ============================================
   PROGRAMAÇÃO
   ============================================ */

.programacao-section {
    margin-top: 50px;
}

.programacao-section h2 {
    font-size: 2rem;
    color: var(--cor-primaria);
    margin-bottom: 30px;
    text-align: center;
}

.programacao-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.programa-item {
    background: white;
    border: 2px solid var(--cor-borda);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s;
    box-shadow: var(--sombra);
}

.programa-item:hover {
    box-shadow: var(--sombra-hover);
    transform: translateY(-2px);
}

.programa-item.ao-vivo {
    border-color: var(--cor-primaria);
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.05), rgba(0, 0, 0, 0.05));
}

.programa-horario {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cor-borda);
}

.hora {
    font-weight: bold;
    color: var(--cor-primaria);
    font-size: 1.1rem;
}

.badge-live {
    background: var(--cor-primaria);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.programa-info h3 {
    font-size: 1.3rem;
    color: var(--cor-texto);
    margin-bottom: 8px;
}

.programa-info .locutor {
    color: var(--cor-primaria);
    font-weight: 500;
    margin-bottom: 8px;
}

.programa-info .descricao {
    color: var(--cor-texto-claro);
    line-height: 1.6;
}

.sem-programacao {
    text-align: center;
    color: var(--cor-texto-claro);
    font-size: 1.1rem;
    padding: 40px;
    background: var(--cor-fundo-secundario);
    border-radius: 10px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--cor-secundaria);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
    .logo-text {
        font-size: 1.8rem;
    }
    
    .radio-info h2 {
        font-size: 1.5rem;
    }
    
    .player-section {
        padding: 25px 20px;
    }
    
    .programa-item {
        padding: 15px;
    }
    
    .programa-horario {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .player-controls {
        flex-direction: column;
    }
    
    .volume-control {
        width: 100%;
        justify-content: space-between;
    }
    
    #volumeSlider {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .player-section {
        padding: 20px 15px;
    }
    
    .ao-vivo-badge {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}

