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

.team-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 13px;
    margin-top: 7px;
    margin-bottom: 34px;
    padding: 0 7px;
}

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

/* Titoli stagione: animazione gestita dal delay inline nel PHP */
.season-title {
    opacity: 0;
    animation: cardAppear 0.25s ease-out forwards;
}

.team-card {
    position: relative;
    background: rgba(18, 0, 40, 0.5); /* Vinaccia semitrasparente */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    width: 87px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 3px 10px rgba(18, 0, 40, 0.3); /* Ombra in tinta vinaccia */

    /* Animazione comparsa */
    opacity: 0;
    animation: cardAppear 0.25s ease-out forwards;
}

.team-card:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--rosa-neon);
    background: rgba(18, 0, 40, 0.85); /* Si scurisce in Vinaccia profondo all'hover */
    /* L'ombra esterna rosa si unisce a un'ombra profonda di base */
    box-shadow: 0 5px 17px rgba(18, 0, 40, 0.6), 0 0 10px rgba(255, 25, 255, 0.15); 
}

.team-link {
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: space-between;
}

/* --- SISTEMA LOGO CON GLOW --- */
.logo-wrapper {
    position: relative;
    width: 47px;
    height: 47px;
    margin-bottom: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Il logo vero (davanti) */
.team-logo {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2; /* Sta sopra */
    transition: transform 0.3s;
}

/* L'ombra colorata (dietro) */
.team-logo-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    transform: translate(-50%, -50%) scale(0.9);
    object-fit: contain;
    z-index: 1; /* Sta sotto */
    
    /* EFFETTO MAGIC */
    filter: blur(8px) saturate(200%); /* Sfuoca e aumenta colore */
    opacity: 0.6; /* Trasparenza per non essere troppo invadente */
    transition: opacity 0.3s, transform 0.3s;
}

/* Effetto Hover sulla card aumenta il glow */
.team-card:hover .team-logo-glow {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.1); /* Si espande leggermente */
}

.team-card:hover .team-logo {
    transform: scale(1.05);
}

/* ---------------------------------- */

.team-name {
    /* Manteniamo HelveticaBold per la leggibilità dei nomi lunghi essendo molto piccoli */
    font-family: 'HelveticaBold', sans-serif; 
    font-size: 0.44rem;
    color: var(--bianco);
    line-height: 1.3;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin: 0;
    width: 100%;
}

.champion-badge {
    position: absolute;
    top: -10px;
    right: -7px;
    width: 23px;
    height: auto;
    filter: drop-shadow(0 1px 3px rgba(18, 0, 40, 0.6));
    z-index: 10;
    transform: rotate(5deg);
}

.no-logo {
    height: 47px;
    width: 47px;
    border: 1px dashed rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #aaa;
    font-size: 0.47rem;
    margin-bottom: 7px;
}

@media (max-width: 402px) {
    .team-list { gap: 8px; }
    .team-card { width: 67px; padding: 8px 5px; border-radius: 7px; }
    
    .logo-wrapper { width: 37px; height: 37px; margin-bottom: 5px; }
    
    .team-name { font-size: 0.34rem; letter-spacing: 0; }
    .champion-badge { width: 19px; top: -7px; right: -5px; }
}