/**
 * Estilos modernos para el módulo de Resultados del Día de Partidos (Parley) y Widget de Index
 * FiebreParley.com (server01) - Prefijo .fppr-
 */

/* ==========================================================================
   Contenedor Principal y Layout Base
   ========================================================================== */
.fppr-contenedor {
    width: 100%;
    max-width: 1280px;
    margin: 16px auto 0;
    padding: 18px 14px 44px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #e2e8f0;
    line-height: 1.5;
}

/* ==========================================================================
   Hero Header
   ========================================================================== */
.fppr-hero {
    background: linear-gradient(135deg, #0b1a30 0%, #112d52 60%, #0d223f 100%);
    border: 1px solid #1e3f68;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px -5px rgba(3, 10, 20, 0.45), 0 4px 6px -2px rgba(3, 10, 20, 0.25);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.fppr-hero__info {
    flex: 1 1 320px;
}

.fppr-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3cbae3;
    background: rgba(60, 186, 227, 0.12);
    border: 1px solid rgba(60, 186, 227, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.fppr-hero__title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
    color: #ffffff;
    background: linear-gradient(90deg, #ffffff 30%, #3cbae3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fppr-hero__desc {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

.fppr-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.fppr-stat-pill {
    background: rgba(15, 36, 64, 0.75);
    border: 1px solid #234873;
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.fppr-stat-pill__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.fppr-stat-pill__val {
    font-size: 20px;
    font-weight: 800;
    color: #38bdf8;
}

.fppr-stat-pill__val--green {
    color: #34d399;
}

/* ==========================================================================
   Barra de Filtros y Búsqueda
   ========================================================================== */
.fppr-filtros-card {
    background: #0f2038;
    border: 1px solid #1e3f68;
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 22px;
    box-shadow: 0 4px 12px rgba(2, 6, 23, 0.3);
}

.fppr-filtros-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
}

.fppr-filtro-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fppr-filtro-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #cbd5e1;
}

.fppr-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.fppr-input-date {
    background: #0a1628;
    border: 1px solid #294c7a;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 12px;
    min-width: 135px;
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.fppr-input-date:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.fppr-input-search {
    background: #0a1628;
    border: 1px solid #294c7a;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    padding: 9px 12px;
    min-width: 220px;
    outline: none;
    transition: all 0.2s ease;
}

.fppr-input-search:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.fppr-btn-buscar {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border: 1px solid #38bdf8;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
}

.fppr-btn-buscar:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.5);
}

.fppr-btn-preset {
    background: rgba(30, 63, 104, 0.45);
    border: 1px solid #294c7a;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fppr-btn-preset:hover, .fppr-btn-preset--active {
    background: #1e3f68;
    border-color: #38bdf8;
    color: #38bdf8;
}

/* ==========================================================================
   Pestañas / Chips de Filtro por Deporte
   ========================================================================== */
.fppr-sport-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #1a3354;
}

.fppr-chip {
    background: rgba(13, 29, 52, 0.7);
    border: 1px solid #214066;
    border-radius: 20px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.fppr-chip:hover {
    background: #1a365d;
    border-color: #38bdf8;
    color: #ffffff;
}

.fppr-chip--active {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

.fppr-chip__count {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 11px;
}

/* ==========================================================================
   Contenedor de Grupos Deportivos (Fecha -> Deporte -> Liga)
   ========================================================================== */
.fppr-grupo-fecha {
    margin-bottom: 30px;
}

.fppr-fecha-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1e3f68;
}

.fppr-fecha-header__badge {
    background: #0284c7;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.fppr-fecha-header__text {
    font-size: 18px;
    font-weight: 800;
    color: #f8fafc;
    margin: 0;
}

/* Encabezado de Deporte */
.fppr-deporte-block {
    background: #0b172a;
    border: 1px solid #1a3458;
    border-radius: 14px;
    margin-bottom: 22px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(3, 10, 20, 0.35);
}

.fppr-deporte-header {
    background: linear-gradient(90deg, #112845 0%, #0f2038 100%);
    border-bottom: 1px solid #20416b;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fppr-deporte-header__left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fppr-deporte-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-size: 14px;
}

.fppr-deporte-titulo {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.2px;
}

.fppr-deporte-count {
    font-size: 12px;
    color: #94a3b8;
    background: rgba(15, 32, 56, 0.8);
    border: 1px solid #1e3f68;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Sección de Liga */
.fppr-liga-block {
    border-bottom: 1px solid #162a47;
}

.fppr-liga-block:last-child {
    border-bottom: none;
}

.fppr-liga-header {
    background: rgba(18, 38, 66, 0.4);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #182e4e;
}

.fppr-liga-pill {
    background: #1e3a5f;
    color: #93c5fd;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.fppr-liga-nombre {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
}

/* ==========================================================================
   Grilla de Partidos (Tarjetas Modernas)
   ========================================================================== */
.fppr-partidos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 14px;
    padding: 16px;
}

.fppr-partido-card {
    background: #0f2038;
    border: 1px solid #1e3f68;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
}

.fppr-partido-card:hover {
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.fppr-partido-top {
    background: rgba(10, 22, 40, 0.8);
    border-bottom: 1px solid #172f50;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.fppr-partido-hora {
    font-weight: 700;
    color: #38bdf8;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.fppr-partido-status {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.fppr-partido-status--suspendido {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Cuerpo del Partido: Filas de Equipos */
.fppr-partido-body {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fppr-equipo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(13, 26, 46, 0.45);
    transition: background 0.15s ease;
}

.fppr-equipo-row--ganador {
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid #10b981;
}

.fppr-equipo-row--perdedor {
    opacity: 0.85;
}

.fppr-equipo-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.fppr-equipo-ref {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    background: #091322;
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 38px;
    text-align: center;
}

.fppr-equipo-nombre {
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fppr-equipo-row--ganador .fppr-equipo-nombre {
    font-weight: 800;
    color: #ffffff;
}

/* Marcadores: Columna de Medio Tiempo + Columna de Final */
.fppr-equipo-scores {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 10px;
}

.fppr-score-mt-box {
    text-align: center;
    min-width: 32px;
}

.fppr-score-mt {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
}

.fppr-score-final-box {
    text-align: center;
    min-width: 34px;
}

.fppr-score-final {
    font-size: 16px;
    font-weight: 800;
    color: #e2e8f0;
    background: #071220;
    border: 1px solid #1b3558;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
    min-width: 20px;
}

.fppr-equipo-row--ganador .fppr-score-final {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.4);
    background: rgba(6, 78, 59, 0.35);
}

/* Pie del Partido: Etiquetas Informativas de Medio Tiempo y Marcadores */
.fppr-partido-footer {
    background: #0a1628;
    border-top: 1px solid #162c4b;
    padding: 7px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
}

.fppr-mt-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(30, 63, 104, 0.4);
    border: 1px solid #234873;
    padding: 2px 8px;
    border-radius: 12px;
    color: #7dd3fc;
    font-weight: 700;
}

.fppr-mt-badge__label {
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
}

.fppr-mt-badge__score {
    color: #38bdf8;
    font-weight: 800;
}

/* ==========================================================================
   Estado Vacío
   ========================================================================== */
.fppr-empty {
    text-align: center;
    padding: 60px 20px;
    background: #0f2038;
    border: 1px dashed #234873;
    border-radius: 16px;
    margin: 20px 0;
}

.fppr-empty__icon {
    font-size: 48px;
    color: #475569;
    margin-bottom: 12px;
}

.fppr-empty__title {
    font-size: 18px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 6px;
}

.fppr-empty__desc {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

/* ==========================================================================
   Widget de Partidos para el Home Público (index / inicio_publico)
   ========================================================================== */
.fppr-widget {
    background: linear-gradient(145deg, #0d1e34 0%, #091526 100%);
    border: 1px solid #1e3f68;
    border-radius: 16px;
    padding: 22px 24px;
    margin: 24px auto;
    max-width: 1280px;
    box-shadow: 0 10px 25px -5px rgba(2, 6, 23, 0.5);
    box-sizing: border-box;
}

.fppr-widget__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #1a365d;
}

.fppr-widget__title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fppr-widget__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 8px;
    color: #38bdf8;
    font-size: 16px;
}

.fppr-widget__title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.fppr-widget__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #38bdf8;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}

.fppr-widget__link:hover {
    color: #7dd3fc;
    transform: translateX(2px);
    text-decoration: underline;
}

.fppr-widget__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
}

.fppr-widget-card {
    background: #0b182b;
    border: 1px solid #1d395e;
    border-radius: 10px;
    padding: 12px 14px;
    transition: all 0.2s ease;
}

.fppr-widget-card:hover {
    border-color: #38bdf8;
    box-shadow: 0 4px 12px rgba(2, 6, 23, 0.4);
}

.fppr-widget-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.fppr-widget-card__sport {
    color: #38bdf8;
    font-weight: 700;
    text-transform: uppercase;
}

.fppr-widget-card__league {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
    .fppr-contenedor {
        padding: 12px 8px 30px;
    }

    .fppr-hero {
        padding: 18px 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .fppr-hero__title {
        font-size: 22px;
    }

    .fppr-hero__stats {
        width: 100%;
    }

    .fppr-stat-pill {
        flex: 1 1 45%;
        min-width: 0;
    }

    .fppr-filtros-card {
        padding: 14px 14px;
    }

    .fppr-filtros-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .fppr-filtro-item {
        width: 100%;
    }

    .fppr-input-date, .fppr-input-search {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .fppr-btn-buscar {
        width: 100%;
        justify-content: center;
    }

    .fppr-partidos-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .fppr-widget__grid {
        grid-template-columns: 1fr;
    }
}
