/* public/assets/css/programmes.css */

.programmes-page {
    padding: 2rem 0 4rem;
    background: var(--color-bg);
}

/* === HERO === */
.programmes-hero {
    position: relative;
    min-height: 280px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)),
                url('https://images.unsplash.com/photo-1598488035139-bdbb2231ce04?w=1200&h=300&fit=crop');
    background-size: cover;
    background-position: center;
    border-radius: 1.5rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.95), rgba(30, 58, 138, 0.95));
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    z-index: 1;
    padding: 2rem;
}

.hero-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    stroke-width: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* === SCHEDULE GRID === */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.day-column {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.day-column:hover {
    box-shadow: var(--shadow-lg);
}

.day-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    padding: 1.25rem 1rem;
    text-align: center;
}

.day-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.day-count {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
}

.day-schedule {
    padding: 1rem;
    min-height: 400px;
}

/* === SCHEDULE ITEM === */
.schedule-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--color-gray-50);
    border-left: 4px solid var(--color-primary);
    border-radius: 0.5rem;
    transition: var(--transition);
}

.schedule-item:hover {
    background: var(--color-gray-100);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.schedule-item:last-child {
    margin-bottom: 0;
}

.schedule-time {
    font-weight: 800;
    color: var(--color-primary);
    font-size: 0.875rem;
    min-width: 3rem;
    line-height: 1.6;
}

.schedule-content {
    flex: 1;
}

.schedule-title {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-gray-900);
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    line-height: 1.4;
}

.schedule-title:hover {
    color: var(--color-primary);
}

.schedule-category {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    color: white;
    border-radius: 0.375rem;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.schedule-host,
.schedule-duration {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--color-gray-600);
    margin-top: 0.375rem;
}

.icon-small {
    width: 0.875rem;
    height: 0.875rem;
    stroke-width: 2;
    flex-shrink: 0;
}

/* === NO EMISSION === */
.no-emission {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--color-gray-400);
}

.icon-empty {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    stroke-width: 2;
    opacity: 0.5;
}

.no-emission p {
    font-size: 0.875rem;
    font-style: italic;
}

/* === CATEGORIES LEGEND === */
.categories-legend {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.legend-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-title::before {
    content: '';
    width: 0.25rem;
    height: 1.5rem;
    background: var(--color-primary);
    border-radius: 0.125rem;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.375rem;
    display: block;
}

.legend-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-700);
}

/* === RESPONSIVE === */

@media (max-width: 1440px) {
    .schedule-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1280px) {
    .schedule-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .schedule-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .programmes-page {
        padding: 1.5rem 0 3rem;
    }
    
    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .day-schedule {
        min-height: 300px;
    }
    
    .categories-legend {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-icon {
        width: 3rem;
        height: 3rem;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .day-header {
        padding: 1rem;
    }
    
    .day-name {
        font-size: 1rem;
    }
    
    .schedule-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .schedule-time {
        min-width: auto;
    }
    
    .categories-legend {
        padding: 1.25rem;
    }
    
    .legend-items {
        gap: 1rem;
    }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.day-column {
    animation: fadeIn 0.5s ease forwards;
}

.day-column:nth-child(1) { animation-delay: 0.05s; }
.day-column:nth-child(2) { animation-delay: 0.1s; }
.day-column:nth-child(3) { animation-delay: 0.15s; }
.day-column:nth-child(4) { animation-delay: 0.2s; }
.day-column:nth-child(5) { animation-delay: 0.25s; }
.day-column:nth-child(6) { animation-delay: 0.3s; }
.day-column:nth-child(7) { animation-delay: 0.35s; }

/* === PRINT STYLES === */
@media print {
    .programmes-hero {
        background: var(--color-primary);
        min-height: auto;
        padding: 2rem;
    }
    
    .schedule-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 0.5rem;
    }
    
    .schedule-item {
        page-break-inside: avoid;
    }
}