/* Filtri */
.vf-roster-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.vf-filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #00c1d7;
    background: transparent;
    color: #00c1d7;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.vf-filter-btn:hover,
.vf-filter-btn.active {
    background: #00c1d7;
    color: white;
}

/* Grid Layout */
.vf-roster-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 1rem;
    transition: opacity 0.3s ease;
}

.vf-roster-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Card Atleta */
.vf-athlete-card {
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vf-athlete-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.vf-athlete-image-container {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.vf-athlete-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.vf-athlete-image.front {
    opacity: 1;
}

.vf-athlete-image.side {
    opacity: 0;
}

.vf-athlete-card:hover .vf-athlete-image.front {
    opacity: 0;
}

.vf-athlete-card:hover .vf-athlete-image.side {
    opacity: 1;
}

/* Label U23 */
.u23-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #00c1d7;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 2;
}

/* Info Atleta */
.vf-athlete-info {
    padding: 5px;
    text-align: center;
    background: #00c1d7;
}

.vf-athlete-info h3 {
    margin-top: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.8;
    color: #ffffff;
    text-transform: uppercase;
}

/* Animazioni */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.fade-out {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Responsive */
@media (max-width: 1200px) {
    .vf-roster-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .vf-roster-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .vf-roster-filters {
        flex-wrap: wrap;
    }

    .vf-filter-btn {
        width: calc(50% - 0.5rem);
    }
}

@media (max-width: 480px) {
    .vf-roster-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .vf-filter-btn {
        width: 100%;
    }
}