/* ═══════════════════════════════════════════════════════════════════════════
 *  LEW_ShowTeamHero — Hero de ficha de equipo v3
 *  Layout: [Nombre+División] [Datos club] [Escudo+Posiciones]
 *          [Stats strip — dark translucent + team accent]
 * ═══════════════════════════════════════════════════════════════════════════ */

.LEW_THero,
.LEW_THero * { box-sizing: border-box; }

.LEW_THero {
    display: flex;
    flex-direction: column;
    position: relative;
    height: 200px;
    overflow: hidden;
    font-family: 'Roboto Mono', monospace;
    width: 100%;
}

/* ── Fondo: piscina a ancho completo ── */
.LEW_THero_pool {
    position: absolute;
    inset: 0;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 0.45;
    z-index: 0;
}

/* ── Overlay por división ── */
.LEW_THero_overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
 *  FILA PRINCIPAL — 3 columnas
 * ═══════════════════════════════════════════════════════════════════════════ */
.LEW_THero_body {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
    position: relative;
    z-index: 2;
}

/* ── Col izquierda: Escudo + Nombre + División ── */
.LEW_THero_left {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 24px;
    gap: 16px;
    border-right: 1px solid rgba(255,255,255,.07);
}

/* Escudo en la columna izquierda */
.LEW_THero_crestBig {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,.5));
}

/* Texto al lado del escudo */
.LEW_THero_leftText {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/* Breadcrumb */
.LEW_THero_breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    flex-wrap: nowrap;
    margin-bottom: 2px;
}
.LEW_THero_bc_link {
    font-size: 10px;
    color: rgba(255,255,255,.4);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: .03em;
}
.LEW_THero_bc_link:hover { color: rgba(255,255,255,.7); }
.LEW_THero_bc_sep {
    font-size: 10px;
    color: rgba(255,255,255,.2);
    flex-shrink: 0;
}

/* Nombre de equipo */
.LEW_THero_name {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.3px;
    text-transform: uppercase;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

/* Club (when different from team) */
.LEW_THero_clubName {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.75);
    font-family: system-ui, -apple-system, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* División */
.LEW_THero_divName {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════════════════════
 *  COL CENTRAL — Datos del club (horizontal, label arriba / value abajo)
 * ═══════════════════════════════════════════════════════════════════════════ */
.LEW_THero_center {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    gap: 0;
    border-right: 1px solid rgba(255,255,255,.07);
}

.LEW_THero_dataRow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 14px;
    border-right: 1px solid rgba(255,255,255,.08);
    text-align: center;
    min-width: 0;
}
.LEW_THero_dataRow:last-child { border-right: none; }

.LEW_THero_dataLabel {
    font-size: 10px;
    color: rgba(255,255,255,.35);
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1;
    white-space: nowrap;
}
.LEW_THero_dataValue {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* ═══════════════════════════════════════════════════════════════════════════
 *  COL DERECHA — Solo posiciones
 * ═══════════════════════════════════════════════════════════════════════════ */
.LEW_THero_right {
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
}

/* Degradado izquierdo de fusión */
.LEW_THero_rightGradient {
    position: absolute;
    top: 0; left: -30px; bottom: 0;
    width: 30px;
    z-index: 1;
    pointer-events: none;
}

/* Posiciones */
.LEW_THero_positions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

/* Liga regular: número grande + label */
.LEW_THero_pos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.LEW_THero_posNum {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    font-family: 'Roboto Mono', monospace;
    line-height: 1;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.LEW_THero_posLabel {
    font-size: 9px;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: 1;
    white-space: nowrap;
}

/* Playoff — pill compacta */
.LEW_THero_pos--playoff {
    align-items: flex-start;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    padding: 5px 10px;
    gap: 3px;
}
.LEW_THero_posLabel--title {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255,255,255,.6);
    letter-spacing: .03em;
}
.LEW_THero_poRecord {
    display: flex;
    align-items: center;
    gap: 4px;
}
.LEW_THero_poStat {
    font-size: 12px;
    font-weight: 700;
    font-family: 'Roboto Mono', monospace;
    line-height: 1;
}
.LEW_THero_poStat--w   { color: #4caf50; }
.LEW_THero_poStat--l   { color: rgba(255,255,255,.5); }
.LEW_THero_poStat--pts { color: #1B99D2; }
.LEW_THero_poSep {
    font-size: 9px;
    color: rgba(255,255,255,.25);
}

/* ═══════════════════════════════════════════════════════════════════════════
 *  FRANJA STATS — dark translucent + team color top accent
 * ═══════════════════════════════════════════════════════════════════════════ */
.LEW_THero_stats {
    display: flex;
    align-items: stretch;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.55) 45%);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.LEW_THero_stats::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--thero-team, #1B99D2) 0%, var(--thero-team, #1B99D2) 55%, transparent 100%);
    z-index: 1;
}
.LEW_THero_statItem {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 17px 24px;
    border-right: 1px solid rgba(255,255,255,.1);
    gap: 5px;
    text-align: center;
    flex: 1 1 0;
    min-width: 0;
}
.LEW_THero_statItem:last-child { border-right: none; }

.LEW_THero_statValue {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    font-family: 'Roboto Mono', monospace;
    line-height: 1;
}
.LEW_THero_statItem--accent .LEW_THero_statValue { color: #1B99D2; }

.LEW_THero_statLabel {
    font-size: 10px;
    color: rgba(255,255,255,.6);
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
 *  RESPONSIVE
 * ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1199px) {
    .LEW_THero_name     { font-size: 22px; }
    .LEW_THero_left     { padding: 10px 18px; gap: 12px; }
    .LEW_THero_crestBig { width: 68px; height: 68px; }
    .LEW_THero_center   { padding: 0 8px; }
    .LEW_THero_dataRow  { padding: 0 10px; }
    .LEW_THero_dataValue { font-size: 12px; max-width: 120px; }
    .LEW_THero_statItem { padding: 10px 16px; }
    .LEW_THero_statValue { font-size: 19px; }
    .LEW_THero_statLabel { font-size: 9px; letter-spacing: .04em; }
    .LEW_THero_right    { padding: 8px 16px; }
    .LEW_THero_posNum   { font-size: 28px; }
}

@media (max-width: 1023px) {
    .LEW_THero          { height: auto; min-height: 160px; }
    .LEW_THero_left     { padding: 8px 14px; gap: 10px; }
    .LEW_THero_crestBig { width: 56px; height: 56px; }
    .LEW_THero_center   { padding: 0 6px; }
    .LEW_THero_dataRow  { padding: 0 8px; }
    .LEW_THero_dataLabel { font-size: 7px; }
    .LEW_THero_dataValue { font-size: 10px; max-width: 90px; }
    .LEW_THero_statItem--optional { display: none; }
    .LEW_THero_statItem { padding: 8px 12px; }
    .LEW_THero_statValue { font-size: 17px; }
    .LEW_THero_statLabel { font-size: 8px; letter-spacing: .03em; }
    .LEW_THero_right    { padding: 6px 14px; }
    .LEW_THero_posNum   { font-size: 22px; }
}

@media (max-width: 767px) {
    .LEW_THero          { height: auto; }
    .LEW_THero_body     { flex-direction: column; }

    /* Left: crest + text, keep row but smaller */
    .LEW_THero_left     { padding: 10px 16px; gap: 10px; border-right: none; }
    .LEW_THero_crestBig { width: 44px; height: 44px; }
    .LEW_THero_name     { font-size: 18px; }
    .LEW_THero_clubName { font-size: 11px; }

    /* Center: vertical stack */
    .LEW_THero_center   {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 16px 10px;
        border-right: none;
        gap: 4px;
    }
    .LEW_THero_dataRow  {
        flex-direction: row;
        align-items: center;
        border-right: none;
        padding: 0;
        gap: 6px;
    }
    .LEW_THero_dataValue { max-width: none; }

    /* Right (positions): horizontal strip at top */
    .LEW_THero_right {
        width: 100%;
        flex: none;
        flex-direction: row;
        justify-content: center;
        padding: 8px 16px;
        background: rgba(0,0,0,.25);
        border-bottom: 1px solid rgba(255,255,255,.06);
        gap: 16px;
        order: -1;
    }
    .LEW_THero_rightGradient { display: none; }
    .LEW_THero_positions { flex-direction: row; gap: 12px; }
    .LEW_THero_pos       { flex-direction: row; align-items: baseline; gap: 4px; }
    .LEW_THero_pos--playoff { flex-direction: row; align-items: baseline; padding: 3px 6px; }
    .LEW_THero_posNum    { font-size: 16px; }

    /* Stats strip — 4 items (GF/GC hidden from 1023px) */
    .LEW_THero_statItem  { padding: 6px 8px; }
    .LEW_THero_statValue { font-size: 15px; }
    .LEW_THero_statLabel { font-size: 7px; letter-spacing: .02em; }
}
