/* Page-owned styles for Behind-the-Scenes Facts */

/* Hero section */
.bts-hero {
    position: relative;
    margin-bottom: var(--space-64);
}

.bts-hero__image {
    position: relative;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    height: 60vh;
    min-height: 320px;
    overflow: hidden;
}

.bts-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bts-hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 24, 28, 0.7) 0%, rgba(20, 24, 28, 0) 70%);
    pointer-events: none;
}

.bts-hero__content {
    position: relative;
    z-index: 1;
    margin-top: -160px;
    padding-bottom: var(--space-48);
    color: var(--ink-inverse);
}

.bts-hero__content .eyebrow {
    color: var(--terracotta);
}

.bts-hero__content h1 {
    color: var(--ink-inverse);
    font-size: clamp(32px, 5vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    max-width: 8ch;
    margin-bottom: var(--space-16);
}

.bts-hero__content .standfirst {
    color: var(--ink-inverse);
    max-width: 68ch;
    margin-bottom: 0;
}

/* Featured story */
.bts-featured {
    margin-bottom: var(--space-64);
}

.bts-featured__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-32);
    align-items: start;
}

.bts-featured__text {
    min-width: 0;
}

.bts-featured__text p {
    max-width: 68ch;
}

.bts-featured__text .pull-quote {
    max-width: 45ch;
    margin-top: var(--space-24);
}

.bts-featured__image {
    width: 100%;
    min-width: 0;
}

.bts-featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fact index */
.bts-index {
    margin-bottom: var(--space-64);
}

.bts-index__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-12);
}

.bts-index__list li {
    min-width: 0;
}

.bts-index__list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: var(--space-8) var(--space-12);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate-soft);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.bts-index__list a:hover {
    color: var(--mint-deep);
    text-decoration: underline;
    text-decoration-color: var(--mint);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* Fact entries grid */
.bts-facts {
    margin-bottom: var(--space-64);
}

.bts-facts__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-32);
}

.bts-fact-card {
    display: flex;
    flex-direction: column;
    background-color: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 0;
    min-width: 0;
    overflow: hidden;
}

.bts-fact-card__image {
    width: 100%;
    border-bottom: 1px solid var(--rule);
}

.bts-fact-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bts-fact-card__body {
    padding: var(--space-24);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.bts-fact-card__body h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.3;
}

.bts-fact-card__body p {
    margin: 0;
    max-width: 60ch;
    font-size: 17px;
    line-height: 1.7;
}

/* Thematic categories */
.bts-categories {
    margin-bottom: var(--space-64);
}

.bts-categories__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-32);
}

.bts-category-card {
    background-color: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 0;
    padding: var(--space-24);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.bts-category-card h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.3;
}

.bts-category-card p {
    margin: 0;
    max-width: 50ch;
    font-size: 17px;
    line-height: 1.7;
}

/* Interactive spoiler fact */
.bts-spoiler {
    margin-bottom: var(--space-64);
}

.bts-spoiler__wrapper {
    max-width: 720px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    align-items: flex-start;
}

.bts-spoiler__toggle {
    min-width: 200px;
}

.bts-spoiler__panel {
    width: 100%;
    background-color: var(--paper);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--terracotta);
    border-radius: 0;
    padding: var(--space-24);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 200ms ease-out, opacity 200ms ease-out;
    visibility: hidden;
}

.bts-spoiler__panel.is-open {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
}

.bts-spoiler__panel h3 {
    margin: 0 0 var(--space-12) 0;
    font-size: 21px;
    line-height: 1.3;
}

.bts-spoiler__panel p {
    margin: 0;
    max-width: 68ch;
    font-size: 17px;
    line-height: 1.7;
}

/* Production trivia quick list */
.bts-quick-facts {
    margin-bottom: var(--space-64);
}

.bts-quick-facts__content {
    max-width: 720px;
    margin-inline: auto;
}

.bts-quick-facts__content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bts-quick-facts__content li {
    position: relative;
    padding-left: var(--space-24);
    margin-bottom: var(--space-12);
    font-size: 17px;
    line-height: 1.7;
    max-width: 68ch;
}

.bts-quick-facts__content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background-color: var(--terracotta);
    border-radius: 0;
}

.bts-quick-facts__content li:last-child {
    margin-bottom: 0;
}

/* Related editorial content */
.bts-related {
    margin-bottom: var(--space-64);
}

.bts-related__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-32);
}

.bts-related-card {
    background-color: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 0;
    padding: var(--space-24);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    align-items: flex-start;
}

.bts-related-card h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.3;
}

.bts-related-card p {
    margin: 0;
    max-width: 50ch;
    font-size: 17px;
    line-height: 1.7;
    flex-grow: 1;
}

.bts-related-card .btn {
    margin-top: auto;
}

/* Closing CTA */
.bts-cta {
    margin-bottom: var(--space-64);
}

.bts-cta__content {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-24);
}

.bts-cta__content h2 {
    margin: 0;
    font-size: clamp(23px, 3.5vw, 28px);
    line-height: 1.25;
    letter-spacing: -0.01em;
    max-width: 60ch;
}

.bts-cta__content .btn {
    min-width: 280px;
}

.bts-cta__content .small-text {
    margin: 0;
    max-width: 50ch;
}

/* Tablet and desktop breakpoints */
@media (min-width: 481px) {
    .bts-hero__image {
        height: 70vh;
    }

    .bts-hero__content {
        margin-top: -220px;
        padding-bottom: var(--space-64);
    }

    .bts-hero__content h1 {
        max-width: 8ch;
    }

    .bts-facts__grid,
    .bts-categories__grid,
    .bts-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1025px) {
    .bts-hero__image {
        height: 70vh;
    }

    .bts-hero__content {
        margin-top: -260px;
        padding-bottom: var(--space-64);
    }

    .bts-hero__content h1 {
        max-width: 8ch;
    }

    .bts-featured__grid {
        grid-template-columns: 5fr 7fr;
        gap: var(--space-32);
    }

    .bts-facts__grid,
    .bts-categories__grid,
    .bts-related__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bts-index__list {
        gap: var(--space-24);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bts-spoiler__panel {
        transition: none;
    }

    .bts-index__list a,
    .bts-related-card .btn,
    .bts-cta__content .btn {
        transition: none;
    }
}
