/* ============================================================
   ARCHIVE / CATEGORY - Scene Locations Theme
   Hero section for movies (subcategories) and archive grid.
   ============================================================ */

/* ---- Category Hero (Full View) ---- */
.archive-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
    border-radius: var(--sl-radius-lg);
}

.archive-hero__overlay {
    position: absolute;
    inset: 0;
    background-color: #020617;
    opacity: 0.7;
    z-index: 1;
}

.archive-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    padding: 0 64px;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: center;
}

/* Poster Column */
.archive-hero__poster {
    width: 100%;
}

.archive-hero__poster img {
    width: 100%;
    height: auto;
    border-radius: var(--sl-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    display: block;
}

/* Content Column */
.archive-hero__content {
    color: #ffffff;
}

.archive-hero__item-meta {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.9;
}

.archive-hero__title {
    font-size: 52px;
    font-weight: 300;
    margin: 0 0 16px;
    line-height: 1.1;
    text-transform: uppercase;
    color: #ffffff;
    text-transform: uppercase;
}

.archive-hero__stats {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.archive-hero__logo {
    width: 24px;
    height: 24px;
}

.archive-hero__stats-text {
    font-size: 18px;
    font-weight: 500;
}

.archive-hero__sep {
    border: none;
    border-top: 3px solid var(--sl-color-primary);
    margin: 24px 0;
    width: 60px;
}

/* If the user wants a full line separator: */
.archive-hero__sep--full {
    width: 100%;
    opacity: 0.2;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.archive-hero__overview-label {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
    color: #ffffff;
}

.archive-hero__description {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 800px;
}

/* ---- Map Section ---- */
.archive-map-section {
    margin-top: 16px;
    margin-bottom: 16px;
}

/* ---- Content Container ---- */
.archive-content-container {
    max-width: 100%;
    margin: 16px auto;
}

/* Grids */
.subcategories-grid,
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* Load More Button */
.sl-archive-load-more {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 40px auto;
    padding: 14px;
    background: var(--sl-color-secondary);
    border: 1px solid var(--sl-color-border);
    border-radius: var(--sl-radius-md);
    color: var(--sl-color-text);
    font-family: var(--sl-font-family);
    font-size: var(--sl-font-size-sm);
    font-weight: var(--sl-font-weight-medium);
    cursor: pointer;
    transition: all var(--sl-transition-fast);
}

.sl-archive-load-more:hover {
    border-color: var(--sl-color-primary);
    color: var(--sl-color-white);
    background-color: var(--sl-color-accent);
}

.sl-archive-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .archive-hero {
        height: auto;
        min-height: 80vh;
        padding: 100px 0 60px;
    }

    .archive-hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        gap: 30px;
        padding: 0 40px;
    }

    .archive-hero__poster {
        max-width: 300px;
        margin: 0 auto 24px;
    }

    .archive-hero__title {
        font-size: 42px;
    }

    .archive-hero__stats {
        justify-content: center;
    }

    .archive-hero__sep {
        margin: 24px auto;
    }

    .archive-hero__description {
        margin: 0 auto;
    }

    .subcategories-grid,
    .locations-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .archive-hero__inner {
        padding: 0 32px;
    }
}

@media (max-width: 480px) {
    .archive-hero__inner {
        padding: 0 20px;
    }
    .archive-hero__inner {
        padding: 20px;
    }

    .archive-hero__title {
        font-size: 32px;
    }

    .archive-hero__poster {
        max-width: 200px;
    }
}