/* assets/css/partite_elenco.css */

/* =========================================
   CONTAINER
   ========================================= */
.matches-container {
    width: 95%;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 40px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   DATE DIVIDER (Nuovo stile minimal)
   ========================================= */
.date-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 25px 0 10px 0; /* Spazio sopra e sotto ridotto */
    opacity: 0.9;
}

.dd-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    flex: 1; /* Occupa tutto lo spazio laterale */
    max-width: 150px; /* Non troppo lunghe su desktop */
}

.dd-text {
    color: var(--bianco);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: bold;
    opacity: 1;
}

/* =========================================
   PHASE TITLE (Nuovo stile compatto)
   ========================================= */
.phase-title {
    text-align: center;
    color: var(--rosa-neon);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: bold;
    margin: 10px 0 5px 0; /* Molto compatto */
    letter-spacing: 0; /* NESSUNA SPAZIATURA EXTRA */
    text-shadow: 0 0 8px rgba(255, 25, 255, 0.25);
}

/* =========================================
   CARD PARTITA (Glassmorphism)
   ========================================= */
.match-card-link {
    text-decoration: none;
    display: block;
    margin-bottom: 8px; /* Riduco spazio tra le card */
    transition: transform 0.2s ease;
}

.match-card-link:hover {
    transform: scale(1.01);
}

.match-row-glass {
    display: flex;
    align-items: center;
    background: var(--nero-transp);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.match-card-link:hover .match-row-glass {
    background: rgba(30, 30, 30, 0.95);
    border-color: var(--rosa-neon);
    box-shadow: 0 0 15px rgba(255, 25, 255, 0.1);
}

/* =========================================
   META INFO (Ora, Live)
   ========================================= */
.match-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    margin-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 15px;
    flex-shrink: 0;
}

.match-time { color: rgba(255, 255, 255, 1); font-size: 0.9rem; font-weight: bold; }

.live-badge {
    background-color: var(--rosso);
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 3px;
    margin-top: 3px;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }

/* =========================================
   SQUADRE & SCORE
   ========================================= */
.match-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 8px;
    overflow: hidden;
}

.team-side {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.team-left { justify-content: flex-end; text-align: right; }
.team-right { justify-content: flex-start; text-align: left; }

/* FIX IMMAGINI */
.team-logo {
    width: 42px !important;
    height: 42px !important;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

/* TESTI SQUADRE */
.team-name-full {
    color: var(--bianco);
    font-size: 0.95rem;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
}

.team-name-short {
    display: none; 
    color: var(--bianco);
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: bold;
}

/* SCORE */
.score-box {
    font-size: 1.6rem;
    color: var(--rosa-neon);
    min-width: 80px;
    text-align: center;
    letter-spacing: 0; /* No tracking */
    text-shadow: 0 0 10px rgba(255, 25, 255, 0.3);
    flex-shrink: 0;
}

.live-text { color: var(--rosso); text-shadow: 0 0 10px rgba(255, 50, 50, 0.5); }


/* =========================================
   RESPONSIVE MOBILE
   ========================================= */
@media (max-width: 700px) {
    .match-row-glass {
        padding: 10px 10px;
        border-radius: 10px;
    }

    .match-meta {
        width: 35px;
        margin-right: 8px;
        padding-right: 8px;
        border-right-color: rgba(255,255,255,0.08);
    }
    .match-time { font-size: 0.75rem; }
    
    .team-logo {
        width: 30px !important;
        height: 30px !important;
    }

    /* Nomi Mobile */
    .team-name-full { display: none !important; }
    .team-name-short { display: block !important; font-size: 0.9rem; }

    .team-side { gap: 6px; }

    .score-box {
        font-size: 1.3rem;
        min-width: 50px;
    }

    /* Data divider più stretto */
    .date-divider { margin: 20px 0 10px 0; }
    .dd-line { max-width: 30px; } /* Linee corte su mobile */
    .dd-text { font-size: 0.8rem; }
}

@media (max-width: 360px) {
    .team-logo { width: 25px !important; height: 25px !important; }
    .score-box { font-size: 1.1rem; min-width: 40px; }
}