/* style.css */
:root {
    --primary-hue: 265;
    --primary: hsl(var(--primary-hue), 72%, 60%);
    --primary-dark: hsl(var(--primary-hue), 72%, 50%);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1470225620780-dba8ba36b745?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    min-height: 100vh;
    padding-bottom: 3rem;
}

.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2.5rem;
    position: relative;
    clip-path: ellipse(100% 100% at center top);
}

.hero-badge {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50rem;
    padding: 0.5rem 1.25rem;
    backdrop-filter: blur(5px);
    font-size: 0.9rem;
}

.podcast-card {
    border: none;
    border-radius: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    background-color: var(--card-bg);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #333;
    position: relative;
    text-align: center;
    padding-top: 30px;
}

.podcast-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.cover-container {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin: 0 auto 20px;
    border: 5px solid white;
    box-shadow: var(--shadow);
    background-color: #f5f5f5;
}

.cover-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.podcast-card:hover .cover-container img {
    transform: scale(1.05);
}

/* BADGES DE TIPO */
.type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    padding: 0.35rem 0.7rem;
    border-radius: 50px;
    font-size: 0.7rem;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.badge-audio {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: white;
}

.badge-video {
    background: linear-gradient(135deg, #dc3545 0%, #bb2d3b 100%);
    color: white;
}

.card-content {
    padding: 0 1.5rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--primary-dark);
}

.card-text {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.meta-info {
    display: flex;
    justify-content: center;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1.5rem;
}

.audio-player-container {
    margin-top: auto;
}

audio {
    width: 100%;
    border-radius: 50px;
    height: 40px;
}

audio::-webkit-media-controls-panel {
    background-color: #f8f9fa;
    border-radius: 50px;
}

.video-play-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-top: auto;
    text-decoration: none;
    font-weight: 500;
}

.video-play-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px dashed var(--bs-border-color);
    color: #333;
}

.podcast-col {
    margin-bottom: 2rem;
}

/* Estilos para o modal de vídeo */
.video-modal .modal-dialog {
    max-width: 600px;
    margin: 1.75rem auto;
}

.video-modal .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
}

.video-modal .modal-header {
    border: none;
    padding: 0;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.video-modal .modal-body {
    padding: 0;
    background: #000;
}

.video-modal .modal-footer {
    border: none;
    background: white;
    padding: 12px 20px;
    display: flex;
    justify-content: flex-end;
}

.video-modal .close-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.video-modal .close-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.video-modal .ratio-16x9 {
    --bs-aspect-ratio: 56.25%;
}

/* Media Queries */
@media (max-width: 768px) {
    .cover-container {
        width: 140px;
        height: 140px;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .card-content {
        padding: 0 1.25rem 1.25rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-text {
        font-size: 0.85rem;
    }
    
    .video-play-btn, audio {
        height: 36px;
        font-size: 0.8rem;
    }
    
    .video-modal .modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }
    
    .video-modal .close-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    /* Ajustes mobile para os badges */
    .type-badge {
        top: 8px;
        right: 8px;
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
    }
    
    .type-badge i {
        font-size: 0.6rem;
        margin-right: 2px;
    }
}

@media (max-width: 576px) {
    /* Ajustes extra para telas pequenas */
    .type-badge {
        top: 6px;
        right: 6px;
        padding: 0.25rem 0.5rem;
        font-size: 0.6rem;
    }
}