/* =========================
   GRIGLIA LEGHE
========================= */
.fhl-leagues-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding: 10px 40px 28px;
    box-sizing: border-box;
}

/* =========================
   CARD
========================= */
.league-card {
    display: flex;
    flex-direction: column;
    background: #0b0b0b;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.25s ease;
}

.league-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

/* IMMAGINE CARD */
/* IMMAGINE CARD */
/* IMMAGINE CARD */
.league-image {

    width:100%;

    height:180px;

    padding:10px;

    box-sizing:border-box;

    overflow:hidden;

}


.league-image img {

    width:100%;

    height:100%;

    object-fit:contain;

    display:block;

    border-radius:8px;

}


.league-card.is-entry {
    border: 2px solid #f7b500;
    box-shadow: 0 0 18px rgba(247,181,0,.32);
}

/* CONTENUTO CARD */
.league-content {
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
}

.league-caption {
    margin: 0 0 10px;
    color: #d8d8d8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    text-align: center;
}

.league-card.is-entry .league-caption {
    color: #f7b500;
}

.league-card.is-entry .league-button {
    background: #f7b500;
    color: #111;
}

/* TOP MANAGER */
.league-top-manager {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.manager-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.manager-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.manager-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.manager-label {
    font-size: 14px;
    color: #f7b500;
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* MANAGER, TEAM, PUNTI */
.league-manager {
    font-size: 16px;
    color: #fff;
    margin-bottom: 4px;
    font-weight: 700;
}

.league-team {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 4px;
}

.league-points {
    font-size: 14px;
    color: #f7b500;
    font-weight: 900;
    margin-bottom: 0;
}

/* BOTTONE SCOPRI DI PIÙ */
.league-button {

    display:block;

    text-align:center;

    background:#f7b500;

    color:#111;

    font-weight:700;

    text-transform:uppercase;

    padding:10px 0;

    border-radius:6px;

    text-decoration:none;

    transition:all .2s ease;

}

/* BUTTON COLORI LEGA */

.gold .league-button {

    background:#f7b500;
    color:#111;

}


.silver .league-button {

    background:#b8b8b8;
    color:#111;

}


.bronze .league-button {

    background:#cd7f32;
    color:#fff;

}


.red .league-button {

    background:#ff2d2d;
    color:#fff;

}


.blue .league-button {

    background:#2d7dff;
    color:#fff;

}

.league-button:hover {
    opacity: 0.9;
}

/* COLORI CARD */
.gold { border-color: #f7b500; }
.silver { border-color: #b8b8b8; }
.bronze { border-color: #cd7f32; }
.red { border-color: #ff2d2d; }
.blue { border-color: #2d7dff; }

/* =========================
   WIDGET CALENDARIO
========================= */
.league-calendar-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 12px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
}

.league-calendar-widget {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    background-color: #1a1a1a;
    border: 1px solid #ff2d2d;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    min-width: 110px;
    flex: 1 1 auto;
    transition: all 0.2s ease;
}

.league-calendar-widget .calendar-icon {
    font-size: 16px;
    margin-right: 6px;
}

.league-calendar-widget .calendar-info span {
    display: block;
    line-height: 1.2;
}

.league-calendar-widget .calendar-next {
    font-size: 11px;
    font-weight: bold;
    color: #ff2d2d;
}

.league-calendar-widget .calendar-matchday {
    font-size: 12px;
    font-weight: bold;
}

.league-calendar-widget .calendar-date {
    font-size: 11px;
    opacity: 0.8;
}

.league-calendar-widget:hover {
    box-shadow: 0 4px 10px rgba(255,45,45,0.5);
}

/* =========================
   WIDGET EXTRA AFFIANCATI SOTTO
========================= */
.league-extra-widgets-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    width: 100%;
    padding: 0 40px 8px; /* spazio ridotto tra leghe e widget */
    box-sizing: border-box;
}

/* ogni widget occupa 2 colonne */
.league-extra-widget {
    grid-column: span 2;
    background-color: #1a1a1a;
    border: 1px solid #ff2d2d;
    border-radius: 8px;
    padding: 16px;
    box-sizing: border-box;
    color: #fff;
    min-height: 120px;
}

.league-extra-widget:hover {
    box-shadow: 0 4px 12px rgba(255,45,45,0.5);
}

.league-extra-widget .widget-header {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ff2d2d;
}

.league-extra-widget .widget-body {
    font-size: 13px;
    color: #fff;
    line-height: 1.4;
}

/* =========================
   BOX FINALE ALLINEATO
========================= */
.league-final-box-wrapper {
    width: 100%;
    padding: 0 40px 40px;
    box-sizing: border-box;
}

.league-final-box {

    margin: 8px 40px 0 40px;

    padding: 16px;

    background-color: #1a1a1a;

    border: 1px solid #f7b500;

    border-radius: 8px;

    box-sizing: border-box;

    color: #fff;
}

/* ======================================
   LIVE INFO FHL PRO + MANAGER
   ====================================== */

.fh-live-wrapper{
    display:flex;
    align-items:center;
    gap:15px;
    padding:12px 15px;
}

/* MANAGER */

.fh-live-manager{
    width:90px;
    flex-shrink:0;
}

.fh-live-manager img{
    display:block;
    width:100%;
    height:auto;
    border-radius:6px;
}

/* STATISTICHE */

.fh-live-info{
    flex:1;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.fh-live-row{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:6px;
    min-height:26px;
}

.fh-live-row:last-child{
    margin-bottom:0;
}

/* ICONE */

.fh-live-icon{
    width:24px;
    min-width:24px;
    text-align:center;
    font-size:18px;
    line-height:1;
}

/* SEPARATORE */

.fh-live-separator{
    width:1px;
    height:18px;
    background:rgba(255,255,255,.15);
    flex-shrink:0;
}

/* LABEL */

.fh-live-label{
    width:125px;
    color:#ffffff;
    font-size:13px;
    font-weight:600;
    line-height:1;
}

/* VALORI */

.fh-live-value{
    min-width:40px;
    font-size:18px;
    font-weight:800;
    line-height:1;
}

/* COLORI */

.fh-live-value.users{
    color:#4da3ff;
    text-shadow:0 0 6px rgba(77,163,255,.4);
}

.fh-live-value.teams{
    color:#4dff73;
    text-shadow:0 0 6px rgba(77,255,115,.4);
}

/* DATA CHIUSURA */

.fh-live-value.date{
    color:#ffcc00;
    font-size:14px;
    font-weight:700;
    text-shadow:0 0 6px rgba(255,204,0,.35);
}

/* ORARIO CHIUSURA */

.fh-live-value.time{
    color:#ffcc00;
    font-size:18px;
    font-weight:800;
    text-shadow:0 0 6px rgba(255,204,0,.35);
}

/* ==========================
   TABLET
   ========================== */

@media(max-width:768px){

    .fh-live-wrapper{
        flex-direction:column;
        gap:10px;
        text-align:center;
    }

    .fh-live-manager{
        width:90px;
    }

    .fh-live-info{
        width:100%;
        padding-right:0;
    }

    .fh-live-label{
        width:120px;
        font-size:12px;
    }

    .fh-live-value.date{
        font-size:13px;
    }

}

/* ==========================
   MOBILE
   ========================== */

@media(max-width:480px){

    .fh-live-manager{
        width:75px;
    }

    .fh-live-icon{
        font-size:16px;
        width:20px;
        min-width:20px;
    }

    .fh-live-label{
        width:100px;
        font-size:11px;
    }

    .fh-live-value{
        font-size:16px;
    }

    .fh-live-value.date{
        font-size:11px;
    }

}





/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .fhl-leagues-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 10px 20px 20px;
    }

    .league-extra-widgets-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .league-image {
        height: 140px;
    }
}

@media (max-width: 768px) {
    .fhl-leagues-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .league-image {
        height: 120px;
    }

    .league-calendar-widget {
        min-width: 100px;
        font-size: 12px;
    }

    .league-extra-widgets-row {
        grid-template-columns: 1fr;
    }

    .league-extra-widget {
        grid-column: auto;
        padding: 12px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .fhl-leagues-grid {
        grid-template-columns: 1fr;
    }

    .league-calendar-widget {
        width: 90%;
        min-width: auto;
        font-size: 12px;
    }

    .league-extra-widget {
        grid-column: span 6;
        min-width: auto;
        padding: 10px;
    }

    .league-final-box-wrapper {
        padding: 0 10px 20px;
    }

    .league-final-box {
        padding: 12px;
    }
}

