/* ──────────────────────────────────────────────────────────────────
   On This Day / We Remember — Homepage Feature Overlay
   Plutonium CMS 6.2 · plutonium6_default
   ────────────────────────────────────────────────────────────────── */

/* Wrapper that gives both slider and feature a shared stacking context */
.homepage-hero {
    position: relative;
}

/* ── Card ─────────────────────────────────────────────────────────── */
.fallen-feature {
    position: fixed;
    top: 0;          /* clears the 125px fixed header + 10px breathing room */
    left: 10%;
    width: 20%;
    z-index: 25;         /* above slider gradient (10) and slideContent (20) */
    padding: 15px;
    background: linear-gradient(to bottom, hsla(var(--ColorBrand), 0.8), hsla(var(--ColorBrandLight), 0.4));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    color: hsla(var(--ColorBrandDark), 1);
    font-family: var(--FontFamilyPrimary, sans-serif);
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.6);
}
@media screen and (max-width: 1700px) {
    .fallen-feature {
        width: 250px;
    }
}
@media screen and (max-width: 1366px) {
    .fallen-feature {
        width: 225px;
        left: 3%
    }
}


/* ── Logo ───────────────────────────────────────────────────────── */
.fallen-feature-logo-wrap {
    display: flex;
    justify-content: center;
    padding: 0.6rem 0.75rem 0.4rem;
}

.fallen-feature-logo-link {
    display: contents;
}

.fallen-feature-logo {
    display: block;
    width: auto;
    height: 200px;
    max-width: 85%;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

/* ── Date ────────────────────────────────────────────────────────── */
.fallen-feature-date {
    font-size: 0.7rem;
    font-family: var(--FontFamilyHeading);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    padding: 0.5rem 0.75rem 0.3rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ── Heading ─────────────────────────────────────────────────────── */
.fallen-feature-heading {
    font-size: 1rem;
    font-family: var(--FontFamilyHeading);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    padding: 0.55rem 0.75rem 0.45rem;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

/* ── Photo ───────────────────────────────────────────────────────── */
.fallen-feature-photo-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111;
}

.fallen-feature-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease;
}

.fallen-feature:hover .fallen-feature-photo {
    transform: scale(1.03);
}

/* ── Name ────────────────────────────────────────────────────────── */
.fallen-feature-name {
    text-align: center;
    font-family: var(--FontFamilyHeading);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.6rem 0.75rem 0.45rem;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Toggle button ───────────────────────────────────────────────── */
.fallen-feature-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    width: 100%;
    background: hsla(var(--ColorBrand2), 0.4);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.65rem;
    font-family: inherit;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.45rem 0.5rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-top: 0.3rem;
}

.fallen-feature-toggle:hover,
.fallen-feature-toggle:focus-visible {
    background: hsla(var(--ColorBrand2), 0.6);
    color: #fff;
    outline: none;
}

.fallen-toggle-icon {
    font-size: 0.95rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

/* ── Slides ──────────────────────────────────────────────────────── */
/* CSS Grid stacking: all slides occupy the same cell; height is
   set by the active (in-flow) slide; others sit on top of it. */
.fallen-slides {
    display: grid;
}

.fallen-feature-slide {
    grid-column: 1;
    grid-row: 1;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.fallen-feature-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* ── Dots ────────────────────────────────────────────────────────── */
.fallen-feature-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.5rem 0.35rem;
}

.fallen-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
    flex-shrink: 0;
}

.fallen-dot.is-active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.3);
}

.fallen-dot:hover {
    background: rgba(255, 255, 255, 0.65);
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media screen and (max-width: 900px) {
    .fallen-feature {
        width: 200px;
        top: 130px;
    }
}

@media screen and (max-width: 768px) {
    /* On mobile the feature drops below the slider, full width */
    .fallen-feature {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(8, 18, 40, 0.96);
    }

    .fallen-feature-photo-wrap {
        aspect-ratio: 16 / 9;
    }

    .fallen-feature-photo {
        object-position: 50% 20%;
    }

}

/* ── Feature widget modal ────────────────────────────────────────── */
.ff-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ff-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.ff-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.ff-modal-panel {
    position: relative;
    background: #fff;
    color: #111;
    width: min(92vw, 860px);
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 4px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    transform: translateY(12px);
    transition: transform 0.3s ease;
}

.ff-modal.is-open .ff-modal-panel {
    transform: translateY(0);
}

.ff-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.07);
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    transition: background 0.2s;
    z-index: 1;
}

.ff-modal-close:hover {
    background: rgba(0, 0, 0, 0.15);
}

.ff-modal-body {
    padding: 2rem;
}

.ff-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem;
    color: #666;
}

@keyframes ff-spin {
    to { transform: rotate(360deg); }
}

.ff-modal-spin {
    animation: ff-spin 1s linear infinite;
    font-size: 2rem;
}

.ff-modal-error {
    padding: 2rem;
    text-align: center;
    color: #555;
}

/* Detail content inside modal */
.ff-detail-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.ff-detail-photo-wrap {
    flex-shrink: 0;
    width: 140px;
}

.ff-detail-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    object-fit: cover;
    object-position: top center;
}

.ff-detail-primary {
    flex: 1;
    min-width: 0;
}

.ff-detail-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.ff-detail-rank {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ff-detail-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.2rem 1rem;
    margin: 0;
    font-size: 0.82rem;
}

.ff-detail-meta dt {
    color: #888;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
    align-self: baseline;
    padding: 0.18rem 0;
}

.ff-detail-meta dd {
    margin: 0;
    color: #222;
    font-weight: 500;
    padding: 0.18rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.ff-panel-badge {
    display: inline-block;
    background: #1a3a6e;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 2px;
}

.ff-detail-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eee;
}

.ff-detail-section-heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin: 0 0 0.6rem;
}

.ff-detail-rich-text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #333;
}

.ff-detail-rich-text p { margin: 0 0 0.75em; }
.ff-detail-rich-text p:last-child { margin-bottom: 0; }

@media screen and (max-width: 600px) {
    .ff-modal-body { padding: 1.25rem; }

    .ff-detail-header {
        flex-direction: column;
    }

    .ff-detail-photo-wrap {
        width: 100%;
        max-width: 200px;
    }
}
