/* ===== GRADE DE PROGRAMAÇÃO ===== */

.schedule-page {
    padding: 2rem 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.schedule-page::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="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.schedule-page .container {
    position: relative;
    z-index: 2;
}

/* Header da Seção */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.section-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Container da Grade */
.schedule-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Dia da Semana */
.schedule-day {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.schedule-day:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

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

.schedule-day h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.schedule-day h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Programas do Dia */
.schedule-programs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.schedule-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea, #764ba2);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.schedule-item:hover {
    transform: translateX(5px);
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.schedule-item:hover::before {
    transform: scaleY(1);
}

.program-time {
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.program-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.program-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
    font-style: italic;
}

.duration {
    font-size: 0.8rem;
    color: #28a745;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* Sem Programas */
.no-programs {
    text-align: center;
    color: #6c757d;
    padding: 2rem;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 15px;
    border: 2px dashed rgba(108, 117, 125, 0.3);
    transition: all 0.3s ease;
}

.no-programs:hover {
    background: rgba(108, 117, 125, 0.15);
    border-color: rgba(108, 117, 125, 0.5);
}

.no-programs-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.no-programs p {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.no-programs small {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Sem Conteúdo */
.no-content {
    text-align: center;
    color: white;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

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

.no-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.no-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.no-content .btn {
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.no-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Breadcrumb */
.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 1rem 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #f0f0f0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0.5rem;
}

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

.schedule-day {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Responsividade */
@media (max-width: 1200px) {
    .schedule-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .section-header h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .schedule-page {
        padding: 1rem 0;
    }
    
    .section-header h1 {
        font-size: 2.5rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .schedule-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .schedule-day {
        padding: 1.5rem;
    }
    
    .schedule-day h3 {
        font-size: 1.5rem;
    }
    
    .schedule-item {
        padding: 1rem;
    }
    
    .breadcrumb {
        margin: 1rem;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .section-header h1 {
        font-size: 2rem;
    }
    
    .schedule-day {
        padding: 1rem;
    }
    
    .schedule-day h3 {
        font-size: 1.3rem;
    }
    
    .schedule-item {
        padding: 0.8rem;
    }
    
    .program-name {
        font-size: 1rem;
    }
    
    .program-time {
        font-size: 0.8rem;
    }
}

/* Estados Especiais */
.schedule-day.today {
    border-color: #28a745;
    box-shadow: 0 20px 40px rgba(40, 167, 69, 0.2);
}

.schedule-day.today h3::after {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.schedule-day.today::before {
    background: linear-gradient(90deg, #28a745, #20c997);
}

/* Hover Effects Avançados */
.schedule-day:hover .schedule-item {
    transform: translateX(0);
}

.schedule-day:hover .schedule-item:hover {
    transform: translateX(8px);
}

/* Loading State */
.schedule-page.loading .schedule-container {
    opacity: 0.6;
    pointer-events: none;
}

.schedule-page.loading::after {
    content: 'Carregando...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    z-index: 10;
}
