﻿/* css/films.css - Films Page Styles */

/* =============================
   Films Hero Header
   ============================= */

.films-hero {
    position: relative;
    padding: 150px 0 48px;       /* 150 = navbar height buffer, 48 = tighter bottom */
    text-align: center;
    overflow: hidden;
}

.films-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 168, 106, 0.07) 0%, rgba(201, 168, 106, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    z-index: 0;
}

.films-hero .container {
    position: relative;
    z-index: 1;
}

/* =============================
   Films Client Cards Grid
   ============================= */

/* Override the global section padding — hero already handles top spacing */
.films-grid-section {
    padding: 0 0 80px !important;   /* kill the 100px top that section {} adds */
}

.films-clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px;
    align-items: stretch;           /* all rows same height */
}

/* ───── Client Card ──────────────────────── */
.film-client-card {
    position: relative;
    display: flex;                  /* flex so body can grow to fill */
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.35s,
                box-shadow 0.35s;
}

.film-client-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 168, 106, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55),
                0 0 0 1px rgba(201, 168, 106, 0.1);
}

/* ───── Thumbnail — aspect-ratio keeps cards uniform ─────── */
.film-client-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;         /* consistent across all cards regardless of grid width */
    overflow: hidden;
    background: #0b0b0b;
    flex-shrink: 0;
}

.film-client-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow), filter 0.5s ease;
}

.film-client-card:hover .film-client-thumb img {
    transform: scale(1.07);
    filter: brightness(1.04);
}

/* ───── Play Overlay ──────────────────────── */
.film-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top,
        rgba(5, 5, 5, 0.82) 0%,
        rgba(5, 5, 5, 0.1) 55%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.film-client-card:hover .film-play-overlay {
    opacity: 1;
}

.play-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(201, 168, 106, 0.12);
    border: 2px solid var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.28s, background 0.28s;
    backdrop-filter: blur(8px);
}

.film-client-card:hover .play-icon-circle {
    transform: scale(1.1);
    background: rgba(201, 168, 106, 0.22);
}

.play-icon-circle svg {
    width: 20px;
    height: 20px;
    fill: var(--color-accent);
    margin-left: 3px;              /* optical centre for play triangle */
}

/* ───── Category Tag ──────────────────────── */
.film-category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    background: rgba(5, 5, 5, 0.72);
    border: 1px solid rgba(201, 168, 106, 0.4);
    color: var(--color-accent);
    backdrop-filter: blur(12px);
    line-height: 1.6;
}

/* ───── Card Body ──────────────────────────── */
.film-client-info {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;                        /* stretch to fill remaining card height */
}

.film-client-name {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.film-client-type {
    font-size: 0.75rem;
    color: var(--color-accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 6px;
}

.film-client-meta {
    font-size: 0.7rem;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

/* ───── "Watch Film" CTA ─────────────────── */
.film-view-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;               /* pushes to bottom of card body */
    padding-top: 14px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.28s, transform 0.28s;
}

.film-client-card:hover .film-view-cta {
    opacity: 1;
    transform: translateY(0);
}

.film-view-cta svg {
    width: 11px;
    height: 11px;
    stroke: var(--color-accent);
    fill: none;
    transition: transform 0.28s;
}

.film-client-card:hover .film-view-cta svg {
    transform: translateX(4px);
}

/* =============================
   Film Detail View
   ============================= */

/* The detail view is a full-width div, padding replaces section spacing */
.films-detail-view {
    padding: 110px 0 80px;         /* top = navbar height + breathing room */
}

/* Switching views */
.films-grid-view.hidden,
.films-detail-view.hidden {
    display: none !important;
}

/* Entry animation on the inner container */
.films-detail-view:not(.hidden) .container {
    animation: filmDetailIn 0.45s cubic-bezier(0.25, 1, 0.5, 1) both;
}

@keyframes filmDetailIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ───── Back Button ──────────────────────── */
.film-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-bottom: 40px;
    transition: color 0.25s;
    font-family: var(--font-secondary);
}

.film-back-btn:hover {
    color: var(--color-accent);
}

.film-back-btn svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.25s;
}

.film-back-btn:hover svg {
    transform: translateX(-4px);
}

/* ───── Client Name Header ───────────────── */
.film-detail-event-type {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.film-detail-client-name {
    font-family: var(--font-primary);
    font-size: clamp(2.4rem, 5.5vw, 4.8rem);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
}

/* ───── Accent Divider ───────────────────── */
.film-section-divider {
    width: 36px;
    height: 2px;
    background: var(--color-accent);
    margin: 0 0 36px;
    border-radius: 2px;
}

/* ───── Cinematic Video Embed ────────────── */
.film-video-wrapper {
    position: relative;
    width: 100%;
    /* No max-width here — let it use full container width for consistency with the header */
    margin: 0 0 48px;              /* left-align with header text */
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.72),
                0 0 0 1px rgba(201, 168, 106, 0.06);
    background: #000;
}

.film-video-ratio {
    position: relative;
    padding-bottom: 56.25%;        /* 16:9 letterbox */
    height: 0;
}

.film-video-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ───── Description & Meta ───────────────── */
.film-detail-body {
    /* No max-width — aligns with the full container naturally */
}

.film-detail-title {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.film-description-text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-text-secondary);
    max-width: 680px !important;    /* override global p max-width: 650px */
    margin-bottom: 28px;
}

.film-detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    margin-top: 4px;
}

.film-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 80px;
}

.film-meta-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #555;
}

.film-meta-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    font-family: var(--font-secondary);
}

/* =============================
   Responsive Overrides
   ============================= */

@media (max-width: 992px) {
    .films-clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .films-hero {
        padding: 120px 0 36px;
    }

    .films-grid-section {
        padding-bottom: 60px !important;
    }

    .films-clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .film-detail-client-name {
        font-size: clamp(1.9rem, 7vw, 2.8rem);
    }

    .films-detail-view {
        padding: 95px 0 60px;
    }

    .film-back-btn {
        margin-bottom: 28px;
    }

    .film-video-wrapper {
        border-radius: var(--radius-md);
        margin-bottom: 32px;
    }

    .film-detail-meta-row {
        gap: 18px;
    }

    /* Always show CTA on mobile (no hover state) */
    .film-view-cta {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 540px) {
    .films-clients-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .film-client-thumb {
        aspect-ratio: 16 / 9;      /* slightly taller on single-column to look good */
    }

    .film-detail-meta-row {
        gap: 16px;
    }
}
