/* CoachLink hero + widget grid primitives.
   Extracted from Pages/Promoter/BoutTimeline.razor.css so any entity-detail
   page can adopt the §12.14 style pattern without duplicating rules.

   Consumers (BoutTimeline.razor, PromoterEventBlastManager.razor,
   EventFightCard.razor, PromoterEventCommissionCompliance.razor, ...) reuse
   these class names as-is; page-specific extras live in each page's own
   .razor.css file. */

/* ─── Cinematic hero ─────────────────────────────────────────────────── */
.cl-etd-hero {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(140% 90% at 100% 0%, rgba(227, 30, 36, 0.20), transparent 55%),
        radial-gradient(120% 90% at 0% 100%, rgba(56, 132, 255, 0.12), transparent 60%),
        linear-gradient(160deg, #0d1520 0%, #182333 55%, #0b1218 100%);
    min-height: 260px;
    isolation: isolate;
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-top: 0.9rem;
}

.cl-etd-hero.is-pending {
    border-color: rgba(239, 68, 68, 0.32);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.06), 0 24px 60px -30px rgba(239, 68, 68, 0.4);
}

.cl-etd-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    z-index: -2;
    filter: saturate(1.05);
}

.cl-etd-hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(9, 11, 14, 0.88) 0%, rgba(9, 11, 14, 0.6) 32%, rgba(9, 11, 14, 0.15) 68%, rgba(9, 11, 14, 0.35) 100%),
        linear-gradient(180deg, rgba(9, 11, 14, 0.15) 0%, rgba(9, 11, 14, 0.55) 100%);
    z-index: -1;
    pointer-events: none;
}

.cl-etd-hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(140% 100% at 50% 110%, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: -1;
    pointer-events: none;
}

.cl-etd-hero-body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    padding: 1.75rem 1.75rem;
    align-items: center;
}

.cl-etd-hero-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.cl-etd-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    color: #f87171;
    text-transform: uppercase;
}

.cl-etd-hero-eyebrow-sep {
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 0;
}

.cl-etd-hero-eyebrow-sub {
    color: rgba(255, 255, 255, 0.7);
}

.cl-etd-hero-title {
    margin: 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 0.95;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.cl-etd-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.cl-etd-hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cl-etd-hero-meta-item .material-icons {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.45);
}

.cl-etd-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

/* ─── KPI Rail (right side of hero) ──────────────────────────────────── */
.cl-etd-hero-kpis {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    min-width: 172px;
}

.cl-etd-kpi {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
    padding: 0.5rem 0.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cl-etd-kpi:first-child { padding-top: 0.25rem; }
.cl-etd-kpi:last-child  { border-bottom: none; padding-bottom: 0.25rem; }

.cl-etd-kpi-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 2.15rem;
    line-height: 1;
    color: #fff;
    letter-spacing: 0.01em;
}

.cl-etd-kpi-lbl {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.15rem;
}

/* ─── Integrated activation strip ───────────────────────────────────── */
.cl-etd-hero-activate {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.18) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-top: 1px solid rgba(239, 68, 68, 0.32);
}

.cl-etd-hero-activate-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.3) inset;
}

.cl-etd-hero-activate-icon .material-icons { font-size: 1.2rem; }

.cl-etd-hero-activate-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.cl-etd-hero-activate-copy strong {
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 1.02rem;
    line-height: 1.1;
}

.cl-etd-hero-activate-copy span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
}

.cl-etd-hero-activate-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.3rem;
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 10px 28px -10px rgba(239, 68, 68, 0.65), 0 0 0 1px rgba(239, 68, 68, 0.35) inset;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    flex-shrink: 0;
}

.cl-etd-hero-activate-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px -10px rgba(239, 68, 68, 0.85), 0 0 0 1px rgba(239, 68, 68, 0.55) inset;
}

.cl-etd-hero-activate-cta .material-icons { font-size: 1.05rem; }

/* ─── Widget grid ────────────────────────────────────────────────────── */
.cl-etd-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.9rem;
    margin-top: 0.9rem;
    align-items: start;
}

.cl-etd-info-grid > section {
    margin-top: 0;
    height: 100%;
}

.cl-etd-widget {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.05rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.cl-etd-widget:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.cl-etd-widget-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.cl-etd-widget-head--flush {
    flex: 1;
    min-width: 0;
}

.cl-etd-widget-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cl-etd-widget-icon .material-icons { font-size: 1.25rem; }

.cl-etd-widget-icon-tickets {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(239, 68, 68, 0.06));
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.22);
}

.cl-etd-widget-icon-mm {
    background: linear-gradient(135deg, rgba(56, 132, 255, 0.18), rgba(56, 132, 255, 0.06));
    color: #93c5fd;
    border-color: rgba(56, 132, 255, 0.22);
}

.cl-etd-widget-icon-good {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(34, 197, 94, 0.06));
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.22);
}

.cl-etd-widget-icon-warn {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.06));
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.22);
}

.cl-etd-widget-title {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cl-etd-widget-title h3 {
    margin: 0;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    line-height: 1;
}

.cl-etd-widget-title p {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.8rem;
    line-height: 1.35;
}

/* ─── Responsive: hero stacks under 780px ────────────────────────────── */
@media (max-width: 780px) {
    .cl-etd-hero-body {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.25rem;
    }
    .cl-etd-hero-kpis {
        flex-direction: row;
        min-width: 0;
        gap: 0;
    }
    .cl-etd-kpi {
        flex: 1;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.06);
        padding: 0.15rem 0.5rem;
        align-items: center;
    }
    .cl-etd-kpi:last-child { border-right: none; }
    .cl-etd-hero-activate {
        flex-wrap: wrap;
    }
    .cl-etd-hero-activate-cta {
        width: 100%;
        justify-content: center;
    }
}
