/* ============================================================
   FelixChess — use-cases-component.css
   Use cases: 4 outcome-framed tabs. Emotional close section.
   Dark theme — consistent with banner, comparison, features.
   ============================================================ */

/* ── Custom properties ──────────────────────────────────────── */
.fc-uc {
    --fc-uc-bg: #111410;
    --fc-uc-inner-bg: #111410;
    --fc-uc-frame-bg: #161918;
    --fc-uc-frame-inset: #161918;
    --fc-uc-card-bg: #161918;
    --fc-uc-card-border: rgba(255 255 255 / 0.07);
    --fc-uc-accent: #aaff00;
    --fc-uc-accent-glow: rgba(170 255 0 / 0.14);
    --fc-uc-text-dark: #ffffff;
    --fc-uc-text-light: #ffffff;       /* on dark card */
    --fc-uc-muted-dark: rgba(255 255 255 / 0.76);
    --fc-uc-muted-light: rgba(255 255 255 / 0.58); /* on dark card */
    --fc-uc-tab-idle-bg: #161918;
    --fc-uc-tab-idle-border: rgba(255 255 255 / 0.10);
    --fc-uc-tab-idle-text: #ffffff;
    --fc-uc-tab-active-bg: #aaff00;
    --fc-uc-tab-active-text: #111410;
    --fc-uc-tab-active-ring: rgba(170 255 0 / 0.22);
    --fc-uc-kicker: #aaff00;           /* on dark card */
    --fc-uc-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --fc-uc-radius-frame: 28px;
    --fc-uc-radius-card: 22px;
}


/* ── Section shell ──────────────────────────────────────────── */
/* White section creates deliberate visual breathing room
   between the dark sections above and the pricing section below */
.fc-uc {
    background: var(--fc-uc-bg);
    background-color: var(--fc-uc-bg);
    background-image: none;
    padding-block: 88px 96px;
}


/* ── Section header ─────────────────────────────────────────── */
.fc-uc__intro {
    text-align: center;
    max-width: 52rem;
    margin-inline: auto;
    margin-bottom: 40px;
}

.fc-uc__eyebrow {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fc-uc-kicker);
    margin: 0 0 14px;
    padding: 0 8px;
    position: relative;
}

/* Lime highlight bar behind the eyebrow text */
.fc-uc__eyebrow::after {
    content: "";
    position: absolute;
    inset: auto 0 1px;
    height: 8px;
    background: var(--fc-uc-accent);
    opacity: 0.55;
    z-index: -1;
    border-radius: 2px;
}

.fc-uc__title {
    font-size: clamp(2rem, 3.8vw, 2.9rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.022em;
    color: var(--fc-uc-text-light);
    margin: 0 0 16px;
}

.fc-uc__subtitle {
    font-size: 20px;
    line-height: 1.65;
    color: #ffffff;
    margin: 0;
}

.fc-uc__subtitle p {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
}


/* ── Tab navigation ─────────────────────────────────────────── */
.fc-uc__tablist {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.fc-uc__tab {
    border: 1.5px solid var(--fc-uc-tab-idle-border);
    background: var(--fc-uc-tab-idle-bg);
    color: var(--fc-uc-tab-idle-text);
    border-radius: 100px;
    padding: 11px 22px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
    white-space: nowrap;
}

.fc-uc__tab:hover {
    border-color: var(--fc-uc-accent);
    transform: translateY(-1px);
}

.fc-uc__tab.is-active {
    background: var(--fc-uc-tab-active-bg);
    color: var(--fc-uc-tab-active-text);
    border-color: var(--fc-uc-tab-active-bg);
    box-shadow: 0 0 0 4px var(--fc-uc-tab-active-ring);
}

.fc-uc__tab:focus-visible {
    outline: 2px solid var(--fc-uc-text-dark);
    outline-offset: 3px;
}


/* ── Stage: two-column grid ─────────────────────────────────── */
.fc-uc__stage {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: start;
}


/* ── Visual frame (left) ────────────────────────────────────── */
.fc-uc__visuals {
    position: relative;
    min-height: 540px;
    background: var(--fc-uc-frame-bg);
    border-radius: var(--fc-uc-radius-frame);
    padding: 14px;
    box-shadow:
        0 24px 64px rgba(0 0 0 / 0.16),
        0 0 0 1px rgba(0 0 0 / 0.06);
}

/* Individual visual panels — all stacked, transition in/out */
.fc-uc__visual {
    position: absolute;
    inset: 14px;
    border-radius: calc(var(--fc-uc-radius-frame) - 6px);
    overflow: hidden;
    background: var(--fc-uc-frame-inset);
    opacity: 0;
    transform: translateY(12px) scale(0.99);
    pointer-events: none;
    transition:
        opacity 0.32s var(--fc-uc-ease),
        transform 0.32s var(--fc-uc-ease);
}

.fc-uc__visual.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.fc-uc__media-button {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: inherit;
    cursor: zoom-in;
    font: inherit;
    overflow: hidden;
    padding: 0;
    position: relative;
    text-align: inherit;
}

.fc-uc__media-button:focus-visible {
    outline: 2px solid var(--fc-uc-accent);
    outline-offset: -4px;
}

.fc-uc__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Override global img resets */
    max-width: none;
    max-height: none;
}

.fc-uc__media-zoom-label {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 2;
    border: 1px solid rgba(170 255 0 / 0.28);
    border-radius: 999px;
    background: rgba(0 0 0 / 0.68);
    color: var(--fc-uc-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    opacity: 0;
    padding: 7px 11px;
    pointer-events: none;
    text-transform: uppercase;
    transform: translateY(-4px);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.fc-uc__media-button:hover .fc-uc__media-zoom-label,
.fc-uc__media-button:focus-visible .fc-uc__media-zoom-label {
    opacity: 1;
    transform: translateY(0);
}

/* Decorative FelixChess label pinned bottom-left of the frame */
.fc-uc__visual-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(0 0 0 / 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255 255 255 / 0.10);
    border-radius: 100px;
    padding: 5px 12px 5px 8px;
    pointer-events: none;
}

.fc-uc__visual-label-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--fc-uc-accent);
    flex-shrink: 0;
    /* Subtle pulse to suggest "live" */
    animation: fc-uc-pulse 2.4s ease-in-out infinite;
}

@keyframes fc-uc-pulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

.fc-uc__visual-label-text {
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255 255 255 / 0.80);
    text-transform: uppercase;
}


/* ── Detail cards (right) ───────────────────────────────────── */
.fc-uc__details {
    position: relative;
}

/* All panels use the `hidden` HTML attribute for hide/show.
   Only the active panel removes `hidden` and gains `.is-active`. */
.fc-uc__detail {
    background: var(--fc-uc-card-bg);
    border: 1px solid var(--fc-uc-card-border);
    border-radius: var(--fc-uc-radius-card);
    padding: 36px 32px 32px;
    box-shadow:
        0 0 0 1px var(--fc-uc-card-border),
        0 20px 48px rgba(0 0 0 / 0.18);
    position: relative;
    overflow: hidden;
}

/* Lime accent bar across the top of the card */
.fc-uc__detail::before {
    content: "";
    position: absolute;
    top: 0;
    left: 32px;
    right: 32px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--fc-uc-accent) 30%,
        var(--fc-uc-accent) 70%,
        transparent 100%
    );
    opacity: 0.60;
}

.fc-uc__detail.is-active {
    animation: fc-uc-slidein 0.30s var(--fc-uc-ease) both;
}

@keyframes fc-uc-slidein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fc-uc__kicker {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fc-uc-kicker);
    margin: 0 0 10px;
}

.fc-uc__detail-title {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.018em;
    color: var(--fc-uc-text-light);
    margin: 0 0 16px;
}

/* Body area: authors can write plain <p> or <p>+<ul> markup
   in the useCaseSubtitle field. Both are styled here. */
.fc-uc__detail-body {
    margin-bottom: 24px;
}

.fc-uc__detail-body p {
    font-size: 18px;
    line-height: 1.70;
    color: var(--fc-uc-muted-light);
    margin: 0 0 14px;
}

.fc-uc__detail-body p:last-child {
    margin-bottom: 0;
}

.fc-uc__detail-body ul {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.fc-uc__detail-body ul li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 18px;
    line-height: 1.55;
    color: rgba(255 255 255 / 0.72);
}

/* Lime bullet dot for list items */
.fc-uc__detail-body ul li::before {
    content: "";
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--fc-uc-accent);
    flex-shrink: 0;
    margin-top: 6px;
}

/* CTA button — lime green fill on dark card */
.fc-uc__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 100px;
    background: var(--fc-uc-accent);
    color: #0a0c0a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.fc-uc__cta:hover {
    background: #c8ff4d;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px var(--fc-uc-accent-glow);
}

.fc-uc__cta:focus-visible {
    outline: 2px solid var(--fc-uc-accent);
    outline-offset: 3px;
}

body.fc-usecases-lightbox-open {
    overflow: hidden;
}

.fc-uc__lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vw, 48px);
}

.fc-uc__lightbox[hidden] {
    display: none;
}

.fc-uc__lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0 0 0 / 0.82);
}

.fc-uc__lightbox-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    max-width: min(90vw, 1280px);
    max-height: 88vh;
    border: 1px solid rgba(170 255 0 / 0.25);
    border-radius: var(--fc-uc-radius-card);
    background: #202020;
    box-shadow:
        0 28px 90px rgba(0 0 0 / 0.55),
        0 0 0 1px rgba(255 255 255 / 0.06);
    padding: clamp(14px, 2vw, 22px);
}

.fc-uc__lightbox-close {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(170 255 0 / 0.35);
    border-radius: 999px;
    background: rgba(0 0 0 / 0.72);
    color: var(--fc-uc-accent);
    cursor: pointer;
    font: inherit;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.fc-uc__lightbox-close:hover,
.fc-uc__lightbox-close:focus-visible {
    background: rgba(170 255 0 / 0.12);
    outline: 2px solid rgba(170 255 0 / 0.55);
    outline-offset: 2px;
}

.fc-uc__lightbox-title {
    color: #ffffff;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    padding-right: 54px;
}

.fc-uc__lightbox-image {
    display: block;
    max-width: calc(90vw - 44px);
    max-height: calc(88vh - 96px);
    object-fit: contain;
    width: auto;
    height: auto;
    border-radius: calc(var(--fc-uc-radius-card) - 8px);
}


/* ── Responsive: tablet ─────────────────────────────────────── */
@media (min-width: 48em) and (max-width: 72em) {
    .fc-uc__stage {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .fc-uc__visuals {
        min-height: 460px;
    }

    .fc-uc__detail {
        padding: 28px 24px 28px;
    }
}


/* ── Responsive: mobile ─────────────────────────────────────── */
@media (max-width: 47.99em) {
    .fc-uc {
        padding-block: 64px 72px;
    }

    .fc-uc__tablist {
        gap: 8px;
        margin-bottom: 28px;
    }

    .fc-uc__tab {
        width: 100%;
        justify-content: center;
    }

    /* Stack: detail card on top, visual below on mobile.
       The emotional text gets priority before the screenshot. */
    .fc-uc__stage {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .fc-uc__details {
        order: -1;
    }

    .fc-uc__visuals {
        min-height: 280px;
        border-radius: 20px;
        padding: 10px;
    }

    .fc-uc__visual {
        inset: 10px;
        border-radius: 14px;
    }

    .fc-uc__visual-label {
        bottom: 14px;
        left: 14px;
    }

    .fc-uc__detail {
        padding: 28px 22px 26px;
        border-radius: 18px;
    }

    .fc-uc__detail::before {
        left: 22px;
        right: 22px;
    }
}


/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .fc-uc__visual {
        transition: opacity 0.2s ease;
        transform: none;
    }

    .fc-uc__visual.is-active {
        transform: none;
    }

    .fc-uc__detail.is-active {
        animation: none;
    }

    .fc-uc__visual-label-dot {
        animation: none;
    }

    .fc-uc__tab,
    .fc-uc__cta {
        transition: none;
    }
}
