/* ===== PÁGINA DE PROGRAMA INDIVIDUAL ===== */

.program-detail-page {
    margin-top: 80px;
    padding: 1.5rem 0;
}

/* Botão Voltar */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 153, 153, 0.3);
}

.back-button:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 153, 153, 0.4);
}

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

.program-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;
}

.program-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.program-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.program-description {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

/* Imagem do Programa */
.program-image-container {
    margin: 2rem 0;
    text-align: center;
}

.program-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.program-image:hover {
    transform: scale(1.02);
}

/* Conteúdo do Programa */
.program-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-color);
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.program-content p {
    margin-bottom: 1.2rem;
}

.program-content h2, .program-content h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
    font-weight: 700;
}

.program-content ul, .program-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.program-content li {
    margin-bottom: 0.5rem;
}

.program-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0 10px 10px 0;
}

/* Informações do Locutor */
.locutor-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 20px;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(39, 153, 153, 0.1);
    transition: all 0.3s ease;
}

.locutor-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(39, 153, 153, 0.15);
}

.locutor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(39, 153, 153, 0.3);
    transition: transform 0.3s ease;
}

.locutor-info:hover .locutor-avatar {
    transform: scale(1.05);
}

.locutor-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.locutor-details p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}

/* Programas Relacionados */
.related-programs {
    margin-top: 3rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.related-programs h3 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-weight: 700;
}

.related-programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.related-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);
}

.related-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);
}

.related-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;
}

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

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

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

.related-program-content {
    padding: 1.5rem;
}

.related-program-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.related-program-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.related-program-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.related-program-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* Estado sem imagem */
.program-header:not(:has(.program-image)) {
    padding: 3rem 2rem;
}

/* 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-header,
.program-content,
.locutor-info,
.related-program-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.program-header { animation-delay: 0.1s; }
.program-content { animation-delay: 0.2s; }
.locutor-info { animation-delay: 0.3s; }
.related-program-card:nth-child(1) { animation-delay: 0.4s; }
.related-program-card:nth-child(2) { animation-delay: 0.5s; }
.related-program-card:nth-child(3) { animation-delay: 0.6s; }

/* Responsividade */
@media (max-width: 768px) {
    .program-detail-page {
        margin-top: 70px;
        padding: 1rem 0;
    }
    
    .program-header {
        margin-bottom: 2rem;
        padding: 2rem 1rem;
        border-radius: 15px;
    }
    
    .program-title {
        font-size: 2.5rem;
    }
    
    .program-subtitle {
        font-size: 1.1rem;
        max-width: 100%;
    }
    
    .program-content {
        padding: 1.5rem;
        margin: 0 1rem 1.5rem 1rem;
    }
    
    .locutor-info {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .related-programs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .related-programs h3 {
        font-size: 2rem;
    }
    
    .breadcrumb {
        margin: 0.5rem 1rem 1.5rem 1rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .program-title {
        font-size: 2rem;
    }
    
    .program-subtitle {
        font-size: 1rem;
    }
    
    .program-content {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .locutor-avatar {
        width: 80px;
        height: 80px;
    }
    
    .related-programs h3 {
        font-size: 1.8rem;
    }
    
    .back-button {
        width: 100%;
        justify-content: center;
    }
}

/* ===== SEÇÃO DE HORÁRIOS DA GRADE ===== */
.program-schedule-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2.5rem 0;
    box-shadow: 0 10px 40px rgba(39, 153, 153, 0.15);
    border: none;
    position: relative;
    overflow: hidden;
}

.program-schedule-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #667eea 50%, var(--primary-color) 100%);
}

.program-schedule-section h3 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-shadow: 0 2px 4px rgba(39, 153, 153, 0.1);
}

.program-schedule-section h3::before {
    content: '📅';
    font-size: 1.8rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.schedule-day {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.schedule-day:hover {
    border-color: var(--primary-color);
    background: linear-gradient(145deg, #e8f5e8 0%, #f0f8f0 100%);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(39, 153, 153, 0.25);
}

.schedule-day:hover::before {
    transform: scaleX(1);
}

.day-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(39, 153, 153, 0.2);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.time-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.time-slot::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.time-slot:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(39, 153, 153, 0.2);
}

.time-slot:hover::before {
    transform: scaleY(1);
}

.time-range {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-range::before {
    content: '🕐';
    font-size: 1rem;
}

.duration {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(39, 153, 153, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(39, 153, 153, 0.2);
}

.schedule-note {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 2px solid #d4edda;
    position: relative;
    overflow: hidden;
}

.schedule-note::before {
    content: '💡';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 2rem;
    opacity: 0.3;
}

.schedule-note p {
    color: #155724;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.6;
}

/* Mensagem quando não há horários */
.no-schedule-message {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 2px dashed #dee2e6;
    margin: 1rem 0;
}

.no-schedule-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.no-schedule-message h4 {
    color: #6c757d;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-schedule-message p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsividade para Grade de Horários */
@media (max-width: 768px) {
    .program-schedule-section {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem;
        border-radius: 16px;
    }
    
    .program-schedule-section h3 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .schedule-day {
        padding: 1.5rem;
        border-radius: 14px;
    }
    
    .schedule-day:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .time-slot {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 1rem;
    }
    
    .time-slot:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .time-range {
        justify-content: center;
    }
    
    .schedule-note {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .program-schedule-section {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0.5rem;
    }
    
    .program-schedule-section h3 {
        font-size: 1.6rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .program-schedule-section h3::before {
        font-size: 1.5rem;
    }
    
    .schedule-grid {
        gap: 1rem;
    }
    
    .schedule-day {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .day-title {
        font-size: 1.1rem;
        letter-spacing: 0.3px;
    }
    
    .day-title::after {
        width: 50px;
    }
    
    .time-slot {
        padding: 0.875rem;
        border-radius: 10px;
    }
    
    .time-range {
        font-size: 1rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .time-range::before {
        font-size: 0.9rem;
    }
    
    .duration {
        font-size: 0.85rem;
        padding: 0.2rem 0.6rem;
    }
    
    .schedule-note {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .schedule-note p {
        font-size: 1rem;
    }
    
    .schedule-note::before {
        font-size: 1.5rem;
        top: -8px;
        left: 15px;
    }
    
    .no-schedule-message {
        padding: 2rem 1rem;
    }
    
    .no-schedule-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .no-schedule-message h4 {
        font-size: 1.3rem;
    }
    
    .no-schedule-message p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}
