/* ===== PROGRAMS PAGE STYLES ===== */
/* Using same structure and styling as revistas.html for consistency */

/* Variables CSS - Same as revista.css */
:root {
    /* Colors - Same as revista */
    --revista-primary: #1a365d;
    --revista-primary-light: #2c5282;
    --revista-secondary: #e53e3e;
    --revista-accent: #f7931e;
    --revista-accent-light: #fbb040;

    /* Typography */
    --heading-font: 'Roboto Slab', serif;
    --body-font: 'Inter', sans-serif;

    --revista-bg: linear-gradient(135deg, var(--revista-primary) 0%, var(--revista-primary-light) 100%);
    --revista-card-shadow: 0 10px 30px rgba(26, 54, 93, 0.1);
    --revista-card-hover-shadow: 0 20px 40px rgba(26, 54, 93, 0.15);
    --revista-border-radius: 12px;
}

/* Hero Section - EXACT SAME AS REVISTA */
.hero {
    background: var(--revista-bg);
    color: white;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="4"/></g></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero__text {
    color: white;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: var(--heading-font);
    color: var(--revista-accent);
}

.hero__title i {
    color: var(--revista-accent);
    margin-right: 1rem;
}

.hero__description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--revista-border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat__number,
.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--revista-accent);
    margin-bottom: 0.5rem;
    font-family: var(--heading-font);
}

.stat__label,
.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn--primary {
    background: #f39c12;
    color: white;
}

.btn--primary:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.3);
}

.btn--secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.btn--secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Scroll Indicator */
.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.hero__scroll-link {
    display: inline-block;
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.hero__scroll-link:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Featured Program Card */
.featured-program-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.featured-program__video {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}

.featured-program__thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-program-card:hover .featured-program__thumbnail {
    transform: scale(1.05);
}

.featured-program__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(243, 156, 18, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.featured-program-card:hover .featured-program__play {
    opacity: 1;
}

.featured-program__number {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #f39c12;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 600;
}

.featured-program__info {
    padding: 1.5rem;
}

.featured-program__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.featured-program__description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-program__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
}

/* Section Styles - Same as magazines */
.section {
    padding: 4rem 0;
}

.section__header,
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__title,
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section__subtitle,
.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Controls - Same structure as magazines */
.controls-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

.filter-container {
    display: flex;
    gap: 1rem;
}

.filter-select {
    padding: 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: #f39c12;
}

/* Programs Grid - Similar to magazine grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Program Card - Similar structure to magazine cards */
.program-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.program-card__thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    flex-shrink: 0;
}

.program-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.program-card:hover .program-card__image {
    transform: scale(1.05);
}

.program-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(243, 156, 18, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.program-card:hover .program-card__play {
    opacity: 1;
}

.program-card__duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.program-card__number {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f39c12;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.program-card__content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.program-card__description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.program-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
    margin-top: auto;
}

.program-card__views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.program-card__date {
    color: #999;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

/* YouTube Embed Gallery */
.youtube-embed-gallery {
    width: 100%;
    margin: 2rem 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.youtube-embed-gallery iframe {
    width: 100%;
    height: 600px;
    border: none;
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    text-align: center;
    color: #f39c12;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.loading-spinner p {
    font-size: 1.1rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero__content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero__stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 3rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__description {
        font-size: 1.1rem;
    }

    .hero__stats {
        gap: 1.5rem;
    }

    .hero__buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .controls-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-container {
        justify-content: stretch;
    }

    .filter-select {
        flex: 1;
        min-width: auto;
    }

    .programs-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 0 2rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__stats {
        flex-direction: column;
        gap: 1rem;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .search-container {
        min-width: auto;
    }

    .program-card {
        height: auto;
    }
}