/* ==========================================================================
   NACS Show 2026 - Small Text Box Card
   Card with title, subtitle and angled arrow link.
   Six variants:
     .stbc--blue          Default - Blue (PMS 2945)
     .stbc--indigo-wide   Variant A - Indigo→Purple gradient, wide (4:3)
     .stbc--magenta-wide  Variant B - Purple→Magenta gradient, wide (4:3)
     .stbc--indigo-tall   Variant C - Indigo→Purple gradient, tall (5:8)
     .stbc--purple-tall   Variant D - Purple gradient, tall (5:8)
     .stbc--magenta-tall  Variant E - Magenta gradient, tall (5:8)
                          Pairs with .stbc--has-secondary for an inline
                          secondary link above the arrow.
   Tokens: NACSShow2026Tokens.css
   ========================================================================== */

.stbc {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 220px;
    padding: 32px 24px 24px;
    border-radius: 4px;
    background-color: var(--nacs-color-blue, #004C97);
    color: var(--nacs-color-white, #FFFFFF);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.stbc:hover,
.stbc:focus-visible,
.stbc--has-secondary:hover,
.stbc--has-secondary:focus-within {
    text-decoration: none;
    color: var(--nacs-color-white, #FFFFFF);
    box-shadow: 0 6px 18px rgba(0, 32, 91, 0.18);
    transform: translateY(-2px);
}

.stbc:focus-visible,
.stbc--has-secondary:focus-within {
    outline: 2px solid var(--nacs-color-yellow, #FAE100);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Text Content
   -------------------------------------------------------------------------- */
.stbc__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.stbc__title {
    margin: 0;
    font-family: var(--nacs-font-gotham);
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0;
    text-transform: capitalize;
    color: var(--nacs-color-white, #FFFFFF);
}

.stbc__subtitle {
    margin: 0;
    font-family: var(--nacs-font-gotham);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    color: var(--nacs-color-white, #FFFFFF);
}

/* --------------------------------------------------------------------------
   Arrow (bottom-left)
   -------------------------------------------------------------------------- */
.stbc__arrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-top: 24px;
    flex-shrink: 0;
}

.stbc__arrow-circle {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: var(--nacs-color-white, #FFFFFF);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.stbc__arrow-icon {
    position: relative;
    width: 17px;
    height: 17px;
    color: var(--nacs-color-white, #FFFFFF);
    transition: color 0.2s ease;
}

.stbc:hover .stbc__arrow-circle,
.stbc:focus-visible .stbc__arrow-circle,
.stbc--has-secondary:hover .stbc__arrow-circle,
.stbc--has-secondary:focus-within .stbc__arrow-circle {
    transform: scale(1);
    opacity: 1;
}

.stbc:hover .stbc__arrow-icon,
.stbc:focus-visible .stbc__arrow-icon,
.stbc--has-secondary:hover .stbc__arrow-icon,
.stbc--has-secondary:focus-within .stbc__arrow-icon {
    color: var(--nacs-color-black, #000000);
}

/* ==========================================================================
   Gradient variants
   Color stops are derived from the Figma design system. Stored locally
   (rather than as global tokens) because these gradient pairs are unique
   to this card family.
   ========================================================================== */

.stbc.stbc--indigo-wide {
    min-height: 322px;
    background: linear-gradient(125deg, #1A1864 0%, #5B2A8A 100%);
    background-color: #1A1864;
}

.stbc.stbc--magenta-wide {
    min-height: 322px;
    background: linear-gradient(125deg, #5B2A8A 0%, #D6048F 100%);
    background-color: #5B2A8A;
}

.stbc.stbc--indigo-tall {
    min-height: 376px;
    background: linear-gradient(135deg, #1A1864 0%, #5B2A8A 100%);
    background-color: #1A1864;
}

.stbc.stbc--purple-tall {
    min-height: 376px;
    background: linear-gradient(135deg, #3D1A6E 0%, #6E2A99 100%);
    background-color: #3D1A6E;
}

.stbc.stbc--magenta-tall {
    min-height: 376px;
    background: linear-gradient(135deg, #8E0064 0%, #D6048F 100%);
    background-color: #8E0064;
}

/* Hover shadow tint nudged toward the dominant hue per family */
.stbc.stbc--indigo-wide:hover,
.stbc.stbc--indigo-wide:focus-visible,
.stbc.stbc--indigo-tall:hover,
.stbc.stbc--indigo-tall:focus-visible {
    box-shadow: 0 6px 18px rgba(26, 24, 100, 0.30);
}

.stbc.stbc--magenta-wide:hover,
.stbc.stbc--magenta-wide:focus-visible,
.stbc.stbc--magenta-tall:hover,
.stbc.stbc--magenta-tall:focus-visible,
.stbc.stbc--magenta-tall.stbc--has-secondary:hover,
.stbc.stbc--magenta-tall.stbc--has-secondary:focus-within {
    box-shadow: 0 6px 18px rgba(214, 4, 143, 0.28);
}

.stbc.stbc--purple-tall:hover,
.stbc.stbc--purple-tall:focus-visible {
    box-shadow: 0 6px 18px rgba(61, 26, 110, 0.30);
}

/* ==========================================================================
   Variant E — secondary link (card-link pattern)
   When .stbc--has-secondary is present the root is a <div>, the primary <a>
   covers the entire card via a ::before overlay, and the secondary <a> sits
   above the overlay so it remains independently clickable.
   ========================================================================== */
.stbc--has-secondary {
    cursor: default;
}

.stbc__bottom {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 24px;
}

.stbc__secondary-link {
    position: relative;
    z-index: 2;
    font-family: var(--nacs-font-gotham);
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: var(--nacs-color-green-light, #78BE20);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.stbc__secondary-link:hover,
.stbc__secondary-link:focus-visible {
    color: var(--nacs-color-lime, #C4D600);
    border-bottom-color: currentColor;
    text-decoration: none;
    outline: none;
}

.stbc__secondary-link:focus-visible {
    outline: 2px solid var(--nacs-color-yellow, #FAE100);
    outline-offset: 2px;
    border-bottom-color: transparent;
}

.stbc__primary-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.stbc__primary-link:focus {
    outline: none;
}

/* Card-wide hit area: ::before resolves against the .stbc root because .stbc
   has position: relative. */
.stbc--has-secondary .stbc__primary-link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Mobile (max-width: 768px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    .stbc {
        min-height: 200px;
        padding: 24px 20px 20px;
    }

    .stbc.stbc--indigo-wide,
    .stbc.stbc--magenta-wide {
        min-height: 260px;
    }

    .stbc.stbc--indigo-tall,
    .stbc.stbc--purple-tall,
    .stbc.stbc--magenta-tall {
        min-height: 320px;
    }

    .stbc__content {
        gap: 20px;
    }

    .stbc__title {
        font-size: 22px;
        line-height: 30px;
    }

    .stbc__bottom {
        margin-top: 20px;
    }
}
