/* ==========================================================================
   🎙️ PORTAL FEUMN - MULTIMÉDIA & PODCASTS CSS
   ========================================================================== */

.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.podcast-card {
    background: var(--white, #ffffff);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.podcast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.08);
}

/* Área do Reprodutor Híbrido */
.podcast-media-player {
    width: 100%;
    height: 230px;
    background: #0f172a;
    overflow: hidden;
    position: relative;
}

.podcast-media-player video,
.podcast-media-player iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Estado de Link Externo no Player */
.podcast-external-player-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.podcast-external-player-box i {
    font-size: 2.2rem;
    color: #38bdf8;
    margin-bottom: 12px;
}

.podcast-external-player-box p {
    color: #f8fafc;
    font-size: 0.88rem;
    margin: 0 0 16px 0;
    font-weight: 600;
}

.btn-podcast-external-link {
    background: var(--primary-blue, #0026e6);
    color: #ffffff;
    padding: 9px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.btn-podcast-external-link:hover {
    background: #001ec0;
}

/* Corpo do Conteúdo */
.podcast-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.podcast-meta-depto {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: var(--primary-blue, #0026e6);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    align-self: flex-start;
    border: 1px solid #dbeafe;
}

.podcast-card-body h3 {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    color: #0f172a;
    line-height: 1.4;
    font-weight: 700;
}

.podcast-obj-box {
    font-size: 0.88rem;
    color: #475569;
    margin-bottom: 16px;
    line-height: 1.5;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 6px;
    border-left: 3px solid #cbd5e1;
}

/* Informações de Pessoas (Apresentador e Convidados) */
.podcast-people-info {
    background: #ffffff;
    padding: 12px 0;
    margin-bottom: 16px;
    font-size: 0.88rem;
    border-top: 1px dashed #e2e8f0;
    border-bottom: 1px dashed #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.podcast-people-info div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
}

.podcast-people-info i {
    width: 16px;
    text-align: center;
}

.podcast-desc-text {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 20px 0;
    text-align: justify;
}

/* Rodapé do Card */
.podcast-footer-date {
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.podcast-footer-date span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Área de Erro ou Estado Vazio */
.podcast-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
}

.podcast-empty-state i {
    font-size: 3.5rem;
    margin-bottom: 16px;
    color: #cbd5e1;
}

.podcast-empty-state h3 {
    color: #1e293b;
    margin-bottom: 6px;
    font-size: 1.3rem;
}

/* ==========================================================================
   📹 UPGRADE VISUAL: PRE-VISUALIZAÇÃO DE LINKS EXTERNOS E EXPANSORES
   ========================================================================== */

.podcast-external-preview {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

.podcast-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.podcast-preview-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 80%;
}

.btn-podcast-play-local {
    background: #171ab6bd; /* Verde de ação de vídeo */
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(34, 34, 197, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-podcast-play-local:hover {
    background: #1622a3;
    transform: scale(1.04);
}

.btn-podcast-play-local i {
    font-size: 1.2rem;
}

.btn-podcast-platform-link {
    color: #94a3b8 !important;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-podcast-platform-link:hover {
    color: #f1f5f9 !important;
    text-decoration: underline;
}

/* 📝 ESTILOS DO EXPANDIR LEITURA (LER MAIS) */
.podcast-desc-wrapper {
    margin-bottom: 15px;
}

.btn-podcast-toggle-text {
    background: none;
    border: none;
    color: var(--primary-blue, #0026e6);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0;
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.btn-podcast-toggle-text:hover {
    color: #001ec0;
}