/* 
    CSS BOX PRONTO 213 
    Slider - Focus su elemento centrale
*/

.boxSquadraAll {
    border: none !important
}

    .boxSquadraAll .center-slider {
        padding: 4rem 0;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        overflow: hidden;
    }


    .boxSquadraAll .container-fluid {
    }

    .boxSquadraAll > .container-fluid {
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        padding: 30px;
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: 20px;
    }

    .boxSquadraAll h1 {
        color: #333;
        font-weight: 700;
        margin-bottom: 30px;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    }

    .boxSquadraAll .dropdown button {
        padding: 10px 20px;
        font-weight: 500;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }

        .boxSquadraAll .dropdown button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        }

    .boxSquadraAll .dropdown-menu {
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .boxSquadraAll .dropdown-item {
        padding: 10px 20px;
        transition: all 0.2s ease;
    }

        .boxSquadraAll .dropdown-item:hover {
            background-color: #667eea;
            color: white;
        }

    .boxSquadraAll .card {
        border: none;
        border-radius: 15px;
        overflow: hidden;
        transition: all 0.3s ease;
        cursor: pointer;
    }

        .boxSquadraAll .card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.2) !important;
        }

    .boxSquadraAll .card-img-top {
        height: 300px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .boxSquadraAll .card:hover .card-img-top {
        transform: scale(1.05);
    }

    .boxSquadraAll .card-body {
        padding: 20px;
    }

    .boxSquadraAll .card-title {
        font-weight: 600;
        color: #333;
        margin-bottom: 10px;
    }

    .boxSquadraAll .card-text {
        font-size: 0.9rem;
    }

    .boxSquadraAll .badge {
        padding: 8px 15px;
        font-size: 0.85rem;
        border-radius: 20px;
    }

    .boxSquadraAll .team-card {
        opacity: 1;
        animation: fadeIn 0.5s ease;
    }

        .boxSquadraAll .team-card.hidden {
            display: none !important;
        }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.boxSquadraAll .no-team-message {
    animation: fadeIn 0.5s ease;
}

.boxSquadraAll .alert-info {
    background-color: #e3f2fd;
    border: 2px solid #2196f3;
    color: #1565c0;
    border-radius: 10px;
    padding: 20px;
    font-weight: 500;
}

/* Modal styles */
.boxSquadraAll .modal-content {
    border-radius: 15px;
    border: none;
}

.boxSquadraAll .modal-header {
    border-radius: 15px 15px 0 0;
}

.boxSquadraAll .modal-title {
    font-weight: 600;
}

.boxSquadraAll .modal-header .btn-close {
    color: black
}

.boxSquadraAll .nav-tabs .nav-link {
    color: #666;
    font-weight: 500;
    border-radius: 10px 10px 0 0;
    transition: all 0.3s ease;
}

    .boxSquadraAll .nav-tabs .nav-link:hover {
        background-color: #f8f9fa;
        transform: translateY(-2px);
    }

    .boxSquadraAll .nav-tabs .nav-link.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
    }

    .boxSquadraAll .nav-tabs .nav-link i {
        margin-right: 5px;
    }

.boxSquadraAll .tab-content {
    min-height: 400px;
}

/* Tab pane loading animation */
.boxSquadraAll .tab-pane {
    position: relative;
}

    .boxSquadraAll .tab-pane.fade {
        transition: opacity 0.25s ease-out;
    }

        .boxSquadraAll .tab-pane.fade.show {
            animation: tabContentLoad 0.3s ease-out;
        }

@keyframes tabContentLoad {
    from {
        opacity: 0;
        transform: scale(0.98) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.boxSquadraAll .athletes-containers .card {
    transition: transform 0.3s ease;
}

    .boxSquadraAll .athletes-containers .card:hover {
        transform: translateY(-5px);
    }

/* Mini cards style */
.boxSquadraAll .mini-card-view .athlete-card {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .boxSquadraAll .mini-card-view .athlete-card:hover {
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        transform: translateX(5px);
    }

.boxSquadraAll .mini-card-view .athlete-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    margin-right: 15px;
}

.boxSquadraAll .mini-card-view .athlete-info {
    flex: 1;
}

.boxSquadraAll .mini-card-view .athlete-name {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 1rem;
}

.boxSquadraAll .mini-card-view .athlete-role {
    color: #6c757d;
    font-size: 0.9rem;
}



.boxSquadraAll .card-img-top {
    min-height: 400px;
    transition: transform 0.3s ease;
}

    .boxSquadraAll .card-img-top:hover {
        transform: scale(1.02);
    }

.boxSquadraAll .table-responsive {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.boxSquadraAll .list-group-item {
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

    .boxSquadraAll .list-group-item:hover {
        border-left-color: #667eea;
        background-color: #f8f9fa;
    }

@media (max-width: 768px) {
    .boxSquadraAll .container {
        padding: 20px;
        border-radius: 15px;
    }

    .boxSquadraAll h1 {
        font-size: 1.8rem;
    }

    .boxSquadraAll .card-img-top {
        height: 200px;
    }

    .boxSquadraAll .nav-tabs .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

        .boxSquadraAll .nav-tabs .nav-link i {
            display: block;
            margin-right: 0;
            margin-bottom: 5px;
        }

    .boxSquadraAll .card-img-top {
        min-height: auto !important;
        height: auto !important;
    }
}


.cronache-container h5 {
    color: white !important;
}

.cronaca-modal .modal-title {
    color: white !important;
}

.cronache-filters {
    display: flex;
    flex-wrap: wrap;
}

/* Badge numero maglia sopra immagine atleta */
.numero-maglia-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #0d6efd;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Badge numero maglia per mini-cards - più piccolo e in basso a destra */
.numero-maglia-badge-mini {
    padding: 3px 8px;
    font-size: 0.75rem;
    top: auto;
    bottom: 5px;
    right: 5px;
}

/* Miglioramenti mobile per cronache */
@media (max-width: 768px) {
    /* Font più piccolo nell'header delle card cronache */
    .cronache-container .card-header h5 {
        font-size: 1rem;
    }

    .cronache-container .card-header .badge {
        font-size: 0.75rem;
    }

    /* Titolo e punteggio centrati in mobile */
    .cronache-container .card-body h6,
    .cronache-container .card-body .badge {
        text-align: center;
    }

    .cronache-container .card-body > div {
        text-align: center;
    }

    /* Badge numero maglia più piccolo su mobile */
    .numero-maglia-badge {
        padding: 4px 8px;
        font-size: 0.85rem;
    }

    .numero-maglia-badge-mini {
        padding: 2px 6px;
        font-size: 0.7rem;
    }
}

.impianti-container h5 {
    color: white !important;
}

.staff-tecnico-container h5 {
    color: white !important;
}


.boxSquadraAll .dropdown-toggle {
    white-space: normal !important
}