/* ═══════════════════════════════════════════════════════════════════════════
 *  LEW_ShowPlayerHero — Hero de ficha de jugador/a
 *  Layout: [Nombre+Club] [Datos personales] [Foto]
 *          [Stats strip — full width]
 * ═══════════════════════════════════════════════════════════════════════════ */

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

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

/* ── Fondo: piscina ── */
.LEW_PHero_pool {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 0;
}

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

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

/* ── Col izquierda: Nombre + Club ── */
.LEW_PHero_left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 28px;
    gap: 6px;
    border-right: 1px solid rgba(255,255,255,.07);
}

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

/* Nombre */
.LEW_PHero_name {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.1;
}
.LEW_PHero_firstname {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,.6);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.2;
}
.LEW_PHero_lastname {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
    text-transform: uppercase;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Club */
.LEW_PHero_club {
    display: flex;
    align-items: center;
    gap: 7px;
}
.LEW_PHero_crest {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(255,255,255,.08);
}
.LEW_PHero_clubName {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.LEW_PHero_clubName:hover { color: #fff; }

.LEW_PHero_divBadge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}
.LEW_PHero_divBadge--dhm {
    background: rgba(16,56,101,.5);
    color: rgba(255,255,255,.7);
    border: 1px solid rgba(255,255,255,.12);
}
.LEW_PHero_divBadge--dhf {
    background: rgba(43,120,193,.4);
    color: rgba(255,255,255,.7);
    border: 1px solid rgba(255,255,255,.12);
}

/* ── Col central: datos personales en horizontal ── */
.LEW_PHero_center {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    gap: 0;
    border-right: 1px solid rgba(255,255,255,.07);
}

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

.LEW_PHero_dataLabel {
    font-size: 10px;
    color: rgba(255,255,255,.35);
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1;
}
.LEW_PHero_dataValue {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    font-family: 'Roboto Mono', monospace;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 4px;
}
.LEW_PHero_flag {
    width: 14px;
    height: 10px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
 *  COL DERECHA — Foto
 * ═══════════════════════════════════════════════════════════════════════════ */
.LEW_PHero_right {
    flex: 0 0 240px;
    position: static;
    z-index: 10;
}
.LEW_PHero_photo {
    position: absolute;
    top: 0;
    right: 0;
    width: 240px;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    z-index: 10;
}

/* Degradado izquierdo de fusión */
.LEW_PHero_photoGradient {
    position: absolute;
    top: 0;
    right: 240px;
    bottom: 0;
    width: 80px;
    background: linear-gradient(to right, var(--phero-base), transparent);
    z-index: 11;
    pointer-events: none;
}

/* VAL badge */
.LEW_PHero_val {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 12;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(27,153,210,.4);
    border-radius: 10px;
    padding: 7px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.LEW_PHero_valNum {
    font-size: 24px;
    font-weight: 800;
    color: #1B99D2;
    font-family: 'Roboto Mono', monospace;
    line-height: 1;
}
.LEW_PHero_valLabel {
    font-size: 8px;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
 *  FRANJA STATS — full width
 * ═══════════════════════════════════════════════════════════════════════════ */
.LEW_PHero_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_PHero_stats::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 240px;
    height: 2px;
    background: linear-gradient(to right, var(--phero-team, #1B99D2) 0%, var(--phero-team, #1B99D2) 60%, transparent 100%);
    z-index: 1;
}
.LEW_PHero_statItem {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 17px 32px;
    border-right: 1px solid rgba(255,255,255,.1);
    gap: 5px;
    text-align: center;
    flex-shrink: 0;
}
.LEW_PHero_statItem:last-child { border-right: none; }

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

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

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

@media (max-width: 1199px) {
    .LEW_PHero_lastname { font-size: 24px; }
    .LEW_PHero_left     { padding: 14px 20px; }
    .LEW_PHero_center   { padding: 0 12px; }
    .LEW_PHero_dataRow  { padding: 0 14px; }
    .LEW_PHero_right    { flex: 0 0 200px; }
    .LEW_PHero_stats::before { right: 200px; }
    .LEW_PHero_statItem { padding: 13px 20px; }
    .LEW_PHero_statValue { font-size: 18px; }
}

@media (max-width: 1023px) {
    .LEW_PHero          { height: auto; min-height: 160px; }
    .LEW_PHero_center   { padding: 0 8px; }
    .LEW_PHero_dataRow  { padding: 0 10px; }
    .LEW_PHero_dataLabel { font-size: 7px; }
    .LEW_PHero_dataValue { font-size: 10px; }
    .LEW_PHero_right    { flex: 0 0 170px; }
    .LEW_PHero_statItem { padding: 10px 16px; }
    .LEW_PHero_statValue { font-size: 16px; }
    .LEW_PHero_statLabel { font-size: 8px; }
    .LEW_PHero_stats::before { right: 170px; }
}

@media (max-width: 767px) {
    .LEW_PHero          { height: auto; }

    /* Body: columna normal (nombre arriba, datos debajo); foto absolute dcha */
    .LEW_PHero_body     { flex-direction: column; min-height: 180px; }

    /* Foto — absolute derecha, sin fondo propio, altura completa del body */
    .LEW_PHero_right    { position: absolute; top: 0; right: 0; bottom: 0; flex: none; width: 50%; height: auto; background: none; }
    .LEW_PHero_photo    { position: absolute; top: 0; right: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: 1; }
    .LEW_PHero_photoGradient { display: none; }
    .LEW_PHero_val      { top: 8px; right: 8px; }

    /* Nombre + club — arriba izquierda */
    .LEW_PHero_left     { padding: 12px 16px 4px; gap: 4px; border-right: none; position: relative; z-index: 5; max-width: 60%; }
    .LEW_PHero_lastname { font-size: 20px; white-space: normal; }
    .LEW_PHero_firstname { font-size: 11px; }

    /* Datos personales — debajo, apilados verticalmente */
    .LEW_PHero_center   { flex-direction: column; align-items: flex-start; padding: 4px 16px 12px; border-right: none; gap: 2px; position: relative; z-index: 5; max-width: 60%; }
    .LEW_PHero_dataRow  { flex-direction: row; align-items: center; padding: 2px 0; gap: 6px; border-right: none; }
    .LEW_PHero_dataLabel { font-size: 9px; }
    .LEW_PHero_dataValue { font-size: 12px; }

    /* Stats — visibles, distribuidos en ancho completo */
    .LEW_PHero_stats    { display: flex; }
    .LEW_PHero_stats::before { right: 0; }
    .LEW_PHero_statItem { padding: 10px 0; flex: 1; min-width: 0; }
    .LEW_PHero_statValue { font-size: 16px; }
    .LEW_PHero_statLabel { font-size: 8px; letter-spacing: .03em; }
}
