/* PSG Effectif Football - Styles Frontend */

.psg-effectif-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Filtres */
.psg-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #004170 0%, #001e3c 100%);
    border-radius: 12px;
    color: white;
}

.psg-filter-group {
    flex: 1;
    min-width: 200px;
}

.psg-filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.psg-filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.psg-filter-select:focus {
    outline: none;
    border-color: #DA291C;
    background: rgba(255, 255, 255, 0.15);
}

.psg-filter-select option {
    color: #333;
    background: white;
}

.psg-filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.psg-filter-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: #DA291C;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.psg-filter-button:hover {
    background: #b82217;
    transform: translateY(-2px);
}

.psg-button-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.psg-button-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Résultats */
.psg-results-info {
    margin-bottom: 30px;
    text-align: center;
}

.psg-results-count {
    font-size: 18px;
    color: #004170;
    font-weight: 600;
}

/* Grille des joueurs */
.psg-position-group {
    margin-bottom: 40px;
}

.psg-position-title {
    font-size: 24px;
    color: #004170;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #DA291C;
    display: inline-block;
}

.psg-position-players {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.psg-player-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.psg-player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.psg-player-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.psg-player-photo {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.psg-player-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.psg-player-card:hover .psg-player-photo img {
    transform: scale(1.05);
}

.psg-player-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #004170 0%, #001e3c 100%);
}

.psg-player-initials {
    font-size: 48px;
    font-weight: bold;
    color: white;
    opacity: 0.7;
}

.psg-player-number {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #DA291C;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.psg-player-info {
    padding: 20px;
    text-align: center;
}

.psg-player-name {
    margin: 0 0 8px 0;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.psg-player-firstname {
    font-weight: 300;
    color: #666;
    font-size: 16px;
}

.psg-player-lastname {
    font-weight: 700;
    color: #004170;
    font-size: 20px;
}

.psg-player-position {
    margin: 0;
    color: #DA291C;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loading */
.psg-loading {
    text-align: center;
    padding: 40px;
}

.psg-loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #DA291C;
    border-radius: 50%;
    animation: psg-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes psg-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .psg-filters {
        flex-direction: column;
    }
    
    .psg-filter-group {
        min-width: 100%;
    }
    
    .psg-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .psg-position-players {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 480px) {
    .psg-position-players {
        grid-template-columns: 1fr;
    }
    
    .psg-player-photo {
        height: 200px;
    }
}