/* ============================================
   PROGRAMAS.CSS - Seção Programas (Tabs)
   Central de Notícias Brasil
   Desenvolvido por: Joceilton Gomes
   ============================================ */

/* ====== SEÇÃO PROGRAMAS (TABS) ====== */
.programas-section {
    background: #fff;
    padding: 40px 0;
}

.programas-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.programas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.programas-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f97316;
    position: relative;
    padding-bottom: 8px;
}

.programas-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #f97316;
    border-radius: 2px;
}

.programas-ver-todos {
    background: #2563eb;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.programas-ver-todos:hover {
    background: #1d4ed8;
}

/* Tabs */
.programas-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--tab-color);
    color: white;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.tab-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.tab-btn.active {
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Conteúdo das Tabs */
.tabs-content {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Card do Programa */
.programa-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.programa-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.programa-thumb img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.programa-details h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.programa-data {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

/* Aviso */
.programa-aviso {
    background: #fce7f3;
    border-left: 4px solid #ec4899;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #1a1a1a;
}

.programa-aviso strong {
    color: #db2777;
}

/* Áudio Completo */
.programa-audio-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.programa-audio-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.programa-audio-full {
    width: 100%;
    height: 45px;
    margin-bottom: 16px;
}

.programa-audio-actions {
    display: flex;
    gap: 12px;
}

.btn-baixar-completo {
    background: #22c55e;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-baixar-completo:hover {
    background: #16a34a;
}

.btn-compartilhar-outline {
    background: transparent;
    color: #2563eb;
    padding: 10px 20px;
    border: 2px solid #2563eb;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-compartilhar-outline:hover {
    background: #2563eb;
    color: white;
}

/* Blocos */
.programa-blocos h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.blocos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.bloco-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
}

.bloco-titulo {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.bloco-audio {
    width: 100%;
    height: 40px;
    margin-bottom: 12px;
}

.bloco-actions {
    display: flex;
    gap: 8px;
}

.btn-bloco {
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-bloco.baixar {
    background: #6b7280;
    color: white;
}

.btn-bloco.baixar:hover {
    background: #4b5563;
}

.btn-bloco.comp {
    background: #fff;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.btn-bloco.comp:hover {
    background: #f3f4f6;
}

/* Footer Programa */
.programa-footer {
    margin-top: 24px;
}

.btn-compartilhar-todos {
    display: inline-block;
    background: #f97316;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-compartilhar-todos:hover {
    background: #ea580c;
}

/* ====== RESPONSIVO ====== */
@media (max-width: 1200px) {
    .blocos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .programas-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .programas-tabs {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .tab-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.9rem;
        text-align: center;
        border-radius: 10px;
    }

    .tabs-content {
        padding: 16px;
    }

    .programa-card {
        padding: 16px;
    }

    .programa-info {
        flex-direction: column;
        text-align: center;
    }

    .programa-audio-actions {
        flex-direction: column;
    }

    .btn-baixar-completo,
    .btn-compartilhar-outline {
        width: 100%;
        text-align: center;
    }
}

