/* assets/css/squadre_elenco.css */

.team-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 50px;
    padding: 0 10px;
}

.team-card {
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    width: 130px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.team-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--rosa-elettrico);
    background: rgba(40, 40, 40, 0.7);
    /* L'ombra esterna rosa rimane, ma ora il logo avrà la sua ombra colorata */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 25, 255, 0.1); 
}

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

/* --- NUOVO SISTEMA LOGO CON GLOW --- */
.logo-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
    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(12px) 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 {
    /* Ora usa il font corretto bold */
    font-family: 'HelveticaBold', sans-serif; 
    font-size: 0.65rem;
    color: var(--bianco);
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
    width: 100%;
}

.champion-badge {
    position: absolute;
    top: -15px;
    right: -10px;
    width: 35px;
    height: auto;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.6));
    z-index: 10;
    transform: rotate(5deg);
}

.no-logo {
    height: 70px;
    width: 70px;
    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.7rem;
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    .team-list { gap: 12px; }
    .team-card { width: 100px; padding: 12px 8px; border-radius: 10px; }
    
    .logo-wrapper { width: 55px; height: 55px; margin-bottom: 8px; }
    
    .team-name { font-size: 0.5rem; letter-spacing: 0; }
    .champion-badge { width: 28px; top: -10px; right: -8px; }
}