/* ===== PÁGINA DE PROGRAMAS ===== */

.programs-page {
    margin-top: 80px;
    padding: 2rem 0 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 80px);
}

/* Header da Seção */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 15px 35px rgba(39, 153, 153, 0.3);
    position: relative;
    overflow: hidden;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.section-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.section-header p {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Grid de Programas */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Card de Programa */
.program-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.program-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(39, 153, 153, 0.3);
    border-color: var(--primary-color);
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #667eea);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.program-card:hover::before {
    transform: scaleX(1);
}

/* Imagem do Programa */
.program-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%);
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.program-card:hover .program-image img {
    transform: scale(1.1);
}

.program-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.program-card:hover .program-image::after {
    transform: translateX(100%);
}

/* Conteúdo do Programa */
.program-content {
    padding: 2rem;
    position: relative;
}

.program-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.3;
    position: relative;
}

.program-content h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #667eea);
    border-radius: 2px;
}

.program-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Informações do Programa */
.program-schedule,
.program-presenter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    background: rgba(39, 153, 153, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

.schedule-icon,
.presenter-icon {
    font-size: 1.1rem;
    opacity: 0.8;
}

.schedule-text,
.presenter-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Botão Ver Detalhes */
.program-content .btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(39, 153, 153, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.program-content .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.program-content .btn:hover::before {
    left: 100%;
}

.program-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 153, 153, 0.4);
    background: linear-gradient(135deg, #667eea 0%, var(--primary-color) 100%);
}

.program-content .btn:hover .btn-arrow {
    transform: translateX(3px);
}

.program-content .btn:active {
    transform: translateY(0);
}

/* Estado sem imagem */
.program-card:not(:has(.program-image)) .program-content {
    padding-top: 2.5rem;
}

.program-card:not(:has(.program-image)) .program-content h3::before {
    content: '🎵';
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Mensagem sem conteúdo */
.no-content {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px dashed rgba(39, 153, 153, 0.2);
}

.no-content-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.no-content h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.no-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Breadcrumb personalizado */
.breadcrumb {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 1rem 0 2rem 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.breadcrumb .separator {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.program-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.program-card:nth-child(1) { animation-delay: 0.1s; }
.program-card:nth-child(2) { animation-delay: 0.2s; }
.program-card:nth-child(3) { animation-delay: 0.3s; }
.program-card:nth-child(4) { animation-delay: 0.4s; }
.program-card:nth-child(5) { animation-delay: 0.5s; }
.program-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsividade */
@media (max-width: 768px) {
    .programs-page {
        margin-top: 70px;
        padding: 1rem 0 2rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
        padding: 2rem 1rem;
        border-radius: 15px;
    }
    
    .section-header h1 {
        font-size: 2.5rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .program-card {
        border-radius: 15px;
    }
    
    .program-content {
        padding: 1.5rem;
    }
    
    .program-content h3 {
        font-size: 1.3rem;
    }
    
    .breadcrumb {
        margin: 0.5rem 1rem 1.5rem 1rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .section-header h1 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .program-content {
        padding: 1rem;
    }
    
    .program-content .btn {
        width: 100%;
        justify-content: center;
    }
}
