/* assets/css/partite_elenco.css - TEMA 2026 */

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

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

/* =========================================
   DATE DIVIDER (Nuovo stile minimal)
   ========================================= */
.date-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 17px 0 7px 0; 
    opacity: 0.9;
}

.dd-line {
    height: 1px;
    background: rgba(255, 25, 255, 0.3); /* Leggero tocco rosa sulla linea */
    flex: 1; 
    max-width: 101px; 
}

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

/* =========================================
   PHASE TITLE (Nuovo stile compatto)
   ========================================= */
.phase-title {
    font-family: 'DrukWide', sans-serif;
    font-style: italic;
    text-align: center;
    color: var(--rosa-neon);
    font-size: 0.64rem;
    text-transform: uppercase;
    font-weight: bold;
    margin: 7px 0 3px 0; 
    letter-spacing: 0; 
    text-shadow: 0 0 5px rgba(255, 25, 255, 0.25);
}

/* =========================================
   CARD PARTITA (Glassmorphism)
   ========================================= */
.match-card-link {
    text-decoration: none;
    display: block;
    margin-bottom: 5px; 
    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); /* Usa rgba(18,0,40,0.6) della root */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 13px;
    position: relative;
    box-shadow: 0 3px 10px rgba(18,0,40,0.4);
    transition: all 0.3s ease;
}

.match-card-link:hover .match-row-glass {
    background: rgba(18, 0, 40, 0.95); /* Vinaccia pieno al passaggio del mouse */
    border-color: var(--rosa-neon);
    box-shadow: 0 0 10px rgba(255, 25, 255, 0.15);
}

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

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

.live-badge {
    background-color: var(--rosso);
    color: white;
    font-size: 0.4rem;
    padding: 1px 3px;
    border-radius: 2px;
    margin-top: 2px;
    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: 5px;
    overflow: hidden;
}

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

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

.team-logo {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

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

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

/* SCORE */
.score-box {
    font-family: 'DrukWide', sans-serif;
    font-style: italic;
    font-size: 1.07rem;
    color: var(--rosa-neon);
    min-width: 54px;
    text-align: center;
    letter-spacing: 0; 
    text-shadow: 0 0 7px rgba(255, 25, 255, 0.3);
    flex-shrink: 0;
}

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


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

    .match-meta {
        width: 23px;
        margin-right: 5px;
        padding-right: 5px;
        border-right-color: rgba(255,255,255,0.08);
    }
    .match-time { font-size: 0.5rem; }
    
    .team-logo {
        width: 20px !important;
        height: 20px !important;
    }

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

    .team-side { gap: 4px; }

    .score-box {
        font-size: 0.87rem;
        min-width: 34px;
    }

    /* Data divider più stretto */
    .date-divider { margin: 13px 0 7px 0; }
    .dd-line { max-width: 20px; } 
    .dd-text { font-size: 0.54rem; }
}

@media (max-width: 241px) {
    .team-logo { width: 17px !important; height: 17px !important; }
    .score-box { font-size: 0.74rem; min-width: 27px; }
}