* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    min-height: 100vh;

    /* Fond animé subtil */
    background: linear-gradient(270deg, #1a1a2e, #16213e, #1a1a2e);
    background-size: 600% 600%;
    animation: gradientMove 30s ease infinite;
}

/* Animation du gradient */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* CONTAINER */
.roster-container {
    max-width: 1200px;
    margin: auto;
    padding: 60px 20px;
}

/* TITLE */
.roster-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #ff006e;
}

/* GRID */
.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* PLAYER CARD */
.playerCard {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #ff006e;
    padding: 25px;
    border-radius: 14px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.playerCard:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 0, 110, 0.3);
}

.pfp {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #222;
    margin-bottom: 15px;
}

.name {
    font-size: 1.2rem;
    color: #ff006e;
}

.role {
    font-weight: 600;
    margin: 8px 0;
    color: #cccccc;
}

.description {
    font-size: 0.9rem;
    color: #aaaaaa;
}

/* BADGES DES JOUEURS */
.badges {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Badges selon rôle */
.badge.duel { background: #ff3d6b; }       /* Duelist */
.badge.controller { background: #ff9f00; } /* Controller */
.badge.initiator { background: #00d4ff; }  /* Initiator */
.badge.flex { background: #9b59b6; }       /* Flex */
.badge.tryout { background: #7f8c8d; }     /* Joueur Try Out */

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

/* Glow & bordure au hover */
.playerCard:hover .pfp {
    box-shadow: 0 0 20px 5px rgba(255,0,110,0.7); /* default pink glow */
    transform: scale(1.05);
    border-color: #ff006e;
}

/* Glow par roster */

/* Lunar - bleu clair */
.playerCard.Lunar:hover .pfp {
    box-shadow: 0 0 25px 6px rgba(0, 200, 255, 0.7);
    border-color: #00c8ff;
}

/* Solar - jaune/orange */
.playerCard.Solar:hover .pfp {
    box-shadow: 0 0 25px 6px rgba(255, 200, 0, 0.7);
    border-color: #ffc800;
}

/* Nova - violet */
.playerCard.Nova:hover .pfp {
    box-shadow: 0 0 25px 6px rgba(155, 89, 182, 0.7);
    border-color: #9b59b6;
}

/* MODE CLAIR */

body.light-mode {
    background: linear-gradient(270deg, #f0f0f0, #e0e0e0, #f0f0f0);
    background-size: 600% 600%;
    animation: gradientMoveLight 30s ease infinite;
    color: #000;
}

@keyframes gradientMoveLight {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body.light-mode .playerCard {
    background: #ffffff;
    border: 2px solid #ff006e;
    color: #1a1a2e;
}

body.light-mode .role {
    color: #333333;
}

body.light-mode .description {
    color: #555555;
}

body.light-mode .badge.duel { background: #ff3d6b; }
body.light-mode .badge.controller { background: #ff9f00; }
body.light-mode .badge.initiator { background: #00d4ff; }
body.light-mode .badge.flex { background: #9b59b6; }
body.light-mode .badge.tryout { background: #7f8c8d; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .roster-title {
        font-size: 1.6rem;
    }
}
