/**
 * Supported Films (Restauration) Styles
 * Single page card layout + archive overrides
 *
 * @package Jocelyne_Saab_Theme
 */

/* ============================================================
   CSS Variables
   ============================================================ */
.supported-film-page {
    --sf-color-title: #4A5568;
    --sf-color-accent: #708090;
    --sf-color-text: #333333;
    --sf-color-text-muted: #6B7785;
    --sf-color-label: #4A5568;
    --sf-color-border: #E1E5E9;
    --sf-color-bg: #FAFBFC;
    --sf-color-card: #FFFFFF;
    --sf-font-heading: 'Epilogue', sans-serif;
    --sf-font-body: 'Epilogue', sans-serif;
}

/* ============================================================
   SINGLE PAGE — Card Layout
   ============================================================ */
.supported-film-page {
    background-color: var(--sf-color-bg);
    padding: 3rem 1.5rem;
    min-height: 60vh;
}

.supported-film-container {
    max-width: 860px;
    margin: 0 auto;
}

.supported-film-card {
    background: var(--sf-color-card);
    border: 1px solid var(--sf-color-border);
    border-radius: 4px;
    padding: 3rem 3.5rem;
}

/* Title */
.supported-film-title {
    font-family: var(--sf-font-heading);
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 600;
    color: var(--sf-color-title);
    line-height: 1.3;
    margin: 0 0 1.25rem;
}

/* Blue accent divider */
.supported-film-divider {
    width: 60px;
    height: 3px;
    background-color: var(--sf-color-accent);
    margin-bottom: 1.75rem;
}

/* Resolution info (smaller muted text) */
.supported-film-resolution {
    font-family: var(--sf-font-body);
    font-size: 0.95rem;
    color: var(--sf-color-text-muted);
    line-height: 1.5;
    margin: 0 0 0.25rem;
}

/* Language / color type subtitle */
.supported-film-subtitle {
    font-family: var(--sf-font-body);
    font-size: 0.95rem;
    color: var(--sf-color-text-muted);
    margin: 0 0 1.25rem;
}

/* Country */
.supported-film-country {
    font-family: var(--sf-font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sf-color-text);
    margin: 0 0 2rem;
}

/* ============================================================
   Metadata Table
   ============================================================ */
.supported-film-meta-table {
    margin-bottom: 2.5rem;
}

.supported-film-meta-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--sf-color-border);
    align-items: baseline;
}

.supported-film-meta-row:first-child {
    border-top: 1px solid var(--sf-color-border);
}

.supported-film-meta-label {
    font-family: var(--sf-font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sf-color-label);
}

.supported-film-meta-value {
    font-family: var(--sf-font-body);
    font-size: 0.95rem;
    color: var(--sf-color-text);
    line-height: 1.6;
}

/* ============================================================
   Synopsis
   ============================================================ */
.supported-film-synopsis {
    font-family: var(--sf-font-body);
    font-size: 1rem;
    font-style: italic;
    color: var(--sf-color-text);
    line-height: 1.7;
}

.supported-film-synopsis p {
    margin: 0 0 1rem;
}

.supported-film-synopsis p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   ARCHIVE PAGE — Program Introduction Section
   ============================================================ */
.sf-intro-section {
    background: #FFFFFF;
    padding: 4rem 0 3rem;
    border-bottom: 1px solid #E1E5E9;
}

.sf-intro-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sf-intro-text {
    font-family: 'Epilogue', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #4A5568;
}

.sf-intro-text p {
    margin: 0 0 1.5rem;
}

.sf-intro-contact {
    margin-top: 1rem;
    font-weight: 500;
}

.sf-intro-contact a {
    color: #708090;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.sf-intro-contact a:hover {
    color: #4A5568;
}

/* ============================================================
   Intro Box Containers
   ============================================================ */
.sf-intro-box {
    background-color: #FFFFFF;
    border: 1px solid #E1E5E9;
    border-radius: 8px;
    padding: 2.5rem;
    margin-bottom: 0;
}

.sf-intro-box p {
    margin: 0 0 1.25rem;
}

.sf-intro-box p:last-child {
    margin-bottom: 0;
}

.sf-intro-box .sf-intro-contact {
    margin-top: 1.75rem;
}

/* ============================================================
   Video Section — Standalone, Centered
   ============================================================ */
.sf-video-section {
    background: #FFFFFF;
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid #E1E5E9;
}

.sf-intro-vimeo {
    max-width: 720px;
    margin: 0 auto;
}

.sf-intro-vimeo-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.sf-intro-vimeo-wrap iframe,
.sf-intro-vimeo-wrap .video-player-container iframe,
.sf-intro-vimeo-wrap .video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sf-intro-vimeo-wrap .video-player-container,
.sf-intro-vimeo-wrap .video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================================
   ARCHIVE PAGE — Hero overrides for Supported Films
   ============================================================ */
.supported-films-archive .work-archive-hero {
    position: relative;
    height: auto;
    min-height: unset;
    max-height: unset;
    padding: calc(80px + 5rem) 0 4rem; /* 80px clears fixed header */
    background-color: var(--sf-color-bg, #FAFBFC);
}

.supported-films-archive .work-archive-hero-overlay {
    background: none;
}

.supported-films-archive .work-archive-hero-content {
    padding: 0 1.5rem;
    max-width: 900px;
}

.supported-films-archive .work-archive-hero-title {
    color: #000000;
    font-family: 'Epilogue', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.05;
    margin: 0 auto;
    position: relative;
    padding-bottom: 1.25rem;
}

.supported-films-archive .work-archive-hero-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: var(--brand-slate, #708090);
    margin: 1.25rem auto 0;
}

.supported-films-archive .work-archive-hero-description {
    color: var(--sf-color-text-muted, #6B7785);
}

/* ============================================================
   Section Headings
   ============================================================ */
.sf-section-heading {
    font-family: 'Epilogue', sans-serif;
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    font-weight: 600;
    color: #5A6B7D;
    margin: 0 0 2rem;
    position: relative;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(112, 128, 144, 0.2);
    display: inline-block;
}

.sf-section-heading::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #708090;
}

.sf-section-heading--centered {
    display: block;
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
}

.sf-section-heading--centered::after {
    left: 50%;
    transform: translateX(-50%);
}

.sf-grid-title-section {
    background: #FFFFFF;
    padding: 2.5rem 0 0;
}

/* ============================================================
   Fade-up Scroll Animation (for archive page)
   ============================================================ */
.supported-films-archive .fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.supported-films-archive .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .supported-film-card {
        padding: 2rem 1.5rem;
    }

    .supported-film-meta-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        padding: 1rem 0;
    }

    .supported-film-title {
        font-size: 1.4rem;
    }

    .sf-intro-box {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .supported-film-page {
        padding: 1.5rem 1rem;
    }

    .supported-film-card {
        padding: 1.5rem 1rem;
    }

    .sf-intro-box {
        padding: 1.25rem;
    }
}
