/* --- TEAM HERO --- */
.team-hero {
    text-align: center;
    padding: 120px 20px 40px;
    background: linear-gradient(180deg, #05000a 0%, #1a002e 100%);
    border-bottom: 1px solid #bc13fe;
}

.team-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.team-hero p {
    font-family: 'AquireLight', sans-serif;
    color: #ccc;
    font-size: 1.2rem;
}

/* --- CONTROLLI (Container Principale Sticky) --- */
.roster-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 2%;
    background-color: #05000a;
    /*position: sticky;*/
    top: 120px; /* Assicurati che corrisponda all'altezza della tua navbar */
    z-index: 1000; /* Aumentato per evitare che venga tagliato */
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
    height: auto;
    min-height: 80px;
}

/* --- BARRA DI RICERCA --- */
.search-container {
    position: relative;
    width: 100%;
}

.search-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #bc13fe;
}

.search-container input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #bc13fe;
    border-radius: 25px;
    color: white;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
    box-sizing: border-box;
}

.search-container input:focus {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* --- GRUPPO FILTRI --- */
.filter-group {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* MENU A TENDINA */
.filter-select {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #bc13fe;
    border-radius: 25px;
    color: white;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    flex: 1;
    min-width: 100px;
    max-width: 160px;
    transition: 0.3s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23bc13fe%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 8px auto;
}

.filter-select:focus,
.filter-select:hover {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
}

.filter-select option {
    background-color: #05000a;
    color: white;
}

/* --- NAVIGAZIONE RAPIDA (JUMP TO) --- */
.quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    width: 100%;
}

.nav-label {
    display: none;
}

.nav-tag {
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: 'AquireLight', sans-serif;
    background: rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    border: 1px solid transparent;
    text-align: center;
    white-space: nowrap;
}

/* COLORI BOTTONI NAV (Aggiornati scuri) */
.nav-tag.purple {
    color: #bc13fe;
    border-color: #bc13fe;
}

.nav-tag.orange {
    color: #ff9900;
    border-color: #ff9900;
}

.nav-tag.red {
    color: #cc0000; /* Rosso più scuro */
    border-color: #cc0000;
}

.nav-tag.cyan {
    color: #00ffff;
    border-color: #00ffff;
}

.nav-tag.green {
    color: #00cc00; /* Verde più scuro */
    border-color: #00cc00;
}

.nav-tag.white {
    color: #ffffff;
    border-color: #ffffff;
}

.nav-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 0 10px currentColor;
}

/* --- MEDIA QUERY DESKTOP (Schermi larghi) --- */
@media (min-width: 1200px) {
    .roster-controls {
        flex-direction: row;
        justify-content: center; /* Tutto centrato */
        align-items: center;
        padding: 15px 20px;
        gap: 10px; /* Molto vicini tra loro */
        flex-wrap: nowrap;
    }

    /* 1. RICERCA */
    .search-container {
        width: 320px;
        min-width: 280px;
        flex: 0 0 auto;
    }

    /* 2. FILTRI */
    .filter-group {
        flex: 0 1 auto;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 5px; /* Vicinissimi */
        margin: 0 10px;
    }

    .filter-select {
        min-width: 100px;
        width: 120px;
    }

    /* 3. JUMP TO */
    .quick-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
        width: auto;
        min-width: 320px;
    }

    .nav-tag {
        width: 100%;
        height: 100%;
        padding: 6px 4px;
        font-size: 0.7rem;
    }
}

/* --- SEZIONI ROSTER --- */
.roster-section {
    padding: 60px 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    scroll-margin-top: 180px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'AquireBold', sans-serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

/* LINEE COLORATE (Aggiornate) */
.line-purple {
    height: 2px;
    width: 100px;
    background: #bc13fe;
    margin: 0 auto;
    box-shadow: 0 0 10px #bc13fe;
}

.line-orange {
    height: 2px;
    width: 100px;
    background: #ff9900;
    margin: 0 auto;
    box-shadow: 0 0 10px #ff9900;
}

.line-red {
    height: 2px;
    width: 100px;
    background: #cc0000; /* Rosso Scuro */
    margin: 0 auto;
    box-shadow: 0 0 15px #cc0000;
}

.line-cyan {
    height: 2px;
    width: 100px;
    background: #00ffff;
    margin: 0 auto;
    box-shadow: 0 0 10px #00ffff;
}

.line-green {
    height: 2px;
    width: 100px;
    background: #00cc00; /* Verde Scuro */
    margin: 0 auto;
    box-shadow: 0 0 10px #00cc00;
}

.line-white {
    height: 2px;
    width: 100px;
    background: #ffffff;
    margin: 0 auto;
    box-shadow: 0 0 10px #ffffff;
}

/* GRIGLIA */
.roster-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

/* CARD STYLES */
.team-card {
    background: rgba(15, 10, 25, 0.6);
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    flex: 0 1 calc(33.333% - 20px);
    min-width: 300px;
    max-width: 400px;
    min-height: 500px;
    justify-content: flex-start;
}

/* VARIANTI COLORI CARD (Aggiornati Scuri) */
.card-purple {
    border: 1px solid #bc13fe;
}

.card-purple:hover {
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.4);
    transform: translateY(-5px);
}

.card-purple .img-box {
    border-color: #bc13fe;
}

.card-purple .role {
    color: #bc13fe;
}

.card-orange {
    border: 1px solid #ff9900;
}

.card-orange:hover {
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.4);
    transform: translateY(-5px);
}

.card-orange .img-box {
    border-color: #ff9900;
}

.card-orange .role {
    color: #ff9900;
}

.card-red {
    border: 1px solid #cc0000; /* Rosso Scuro */
}

.card-red:hover {
    box-shadow: 0 0 20px rgba(204, 0, 0, 0.4);
    transform: translateY(-5px);
}

.card-red .img-box {
    border-color: #cc0000;
}

.card-red .role {
    color: #cc0000;
}

.card-cyan {
    border: 1px solid #00ffff;
}

.card-cyan:hover {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    transform: translateY(-5px);
}

.card-cyan .img-box {
    border-color: #00ffff;
}

.card-cyan .role {
    color: #00ffff;
}

.card-green {
    border: 1px solid #00cc00; /* Verde Scuro */
}

.card-green:hover {
    box-shadow: 0 0 20px rgba(0, 204, 0, 0.4);
    transform: translateY(-5px);
}

.card-green .img-box {
    border-color: #00cc00;
}

.card-green .role {
    color: #00cc00;
}

.card-white {
    border: 1px solid #ffffff;
}

.card-white:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
}

.card-white .img-box {
    border-color: #ffffff;
}

.card-white .role {
    color: #aaaaaa;
}

/* Contenuti Card */
.img-box {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin-bottom: 25px;
    overflow: hidden;
    border: 3px solid transparent;
    flex-shrink: 0;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name {
    font-family: 'AquireBold', sans-serif;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 10px;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.role {
    font-family: 'AquireBold', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 25px;
    display: block;
    letter-spacing: 1px;
}

.desc {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.7;
    flex-grow: 1;
    padding-bottom: 20px;
}

.social-mini {
    margin-top: auto;
    padding-top: 15px;
}

.social-mini a {
    color: #fff;
    margin: 0 8px;
    font-size: 1.3rem;
    transition: 0.2s;
}

.social-mini a:hover {
    color: #bc13fe;
}

/* Badge Info */
.player-info-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
    margin-bottom: 15px;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #00ffff;
    background: rgba(0, 255, 255, 0.05);
    font-weight: bold;
    font-family: 'Segoe UI', sans-serif;
}

.player-info-badge .fi {
    font-size: 1.1em;
    border-radius: 2px;
}

@media (max-width: 1024px) {
    .team-card {
        flex: 0 1 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .team-hero h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .team-card {
        flex: 0 1 100%;
        min-height: auto;
    }

    .roster-controls {
        top: 60px;
    }
}