/* =========================================
   HEXA ESPORT — roaster.css
   Styles dédiés à la page Roaster
   ========================================= */

/* ── PAGE WRAPPER ─────────────────────────── */
.roaster-page {
    padding-top: 110px;
    padding-bottom: 120px;
    min-height: 100vh;
    position: relative;
}

/* Fond décoratif subtil */
.roaster-page::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0,210,255,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(157,80,187,0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.roaster-page .container { position: relative; z-index: 1; }

/* ── EN-TÊTE PAGE ─────────────────────────── */
.roaster-page-header {
    text-align: center;
    margin-bottom: 70px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.roaster-page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
}

/* ── CATÉGORIES ───────────────────────────── */
.roaster-category {
    margin-bottom: 90px;
}

.roaster-category:last-child {
    margin-bottom: 0;
}

/* Séparateur de catégorie */
.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 44px;
}

.category-line {
    flex: 1;
    height: 1px;
}

.category-line.left {
    background: linear-gradient(to right, transparent, var(--glass-border));
}

.category-line.right {
    background: linear-gradient(to left, transparent, var(--glass-border));
}

/* Badge de catégorie */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 24px;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 3px;
    white-space: nowrap;
    transition: var(--transition);
}

.category-badge i {
    font-size: 0.9rem;
}

/* Officiel — bleu */
.category-badge.officiel {
    background: linear-gradient(135deg, rgba(0,210,255,0.1), rgba(157,80,187,0.1));
    border: 1px solid rgba(0,210,255,0.35);
    color: var(--hexa-blue);
    box-shadow: 0 0 20px rgba(0,210,255,0.08);
}

/* Académie — violet */
.category-badge.academie {
    background: linear-gradient(135deg, rgba(157,80,187,0.1), rgba(100,60,200,0.1));
    border: 1px solid rgba(157,80,187,0.35);
    color: var(--hexa-purple);
    box-shadow: 0 0 20px rgba(157,80,187,0.08);
}

/* CDF — or */
.category-badge.cdf {
    background: linear-gradient(135deg, rgba(249,201,35,0.1), rgba(255,140,0,0.1));
    border: 1px solid rgba(249,201,35,0.35);
    color: #f9c923;
    box-shadow: 0 0 20px rgba(249,201,35,0.08);
}

/* Compteur de joueurs */
.category-count {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.25);
    margin-left: -8px;
}

/* ── GRILLE JOUEURS ───────────────────────── */
.roaster-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

/* ── CARTE JOUEUR ─────────────────────────── */
.player-card {
    width: 230px;
    flex-shrink: 0;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 28px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
    cursor: default;
}

/* Trait coloré en haut selon la catégorie */
.player-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
}

.player-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0,210,255,0.25);
    box-shadow: 0 24px 60px rgba(0,0,0,0.3), 0 0 30px rgba(0,210,255,0.08);
}

.player-card:hover::before { opacity: 1; }

/* Cartes académie */
.roaster-category:nth-child(2) .player-card:hover {
    border-color: rgba(157,80,187,0.25);
    box-shadow: 0 24px 60px rgba(0,0,0,0.3), 0 0 30px rgba(157,80,187,0.08);
}

.roaster-category:nth-child(2) .player-card::before {
    background: linear-gradient(135deg, #532e7a, #972fa5);
}

/* Cartes CDF */
.roaster-category:nth-child(3) .player-card:hover {
    border-color: rgba(249,201,35,0.25);
    box-shadow: 0 24px 60px rgba(0,0,0,0.3), 0 0 30px rgba(249,201,35,0.08);
}

.roaster-category:nth-child(3) .player-card::before {
    background: linear-gradient(135deg, #7e43e0, #9462e6);
}

/* Rang (#1, #2...) */
.player-rank {
    position: absolute;
    top: 12px;
    left: 14px;
    font-family: var(--font-display);
    font-size: 1rem;
    color: rgba(0,210,255,0.25);
    letter-spacing: 1px;
}

/* Avatar */
.player-avatar-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    margin-top: 6px;
}

.player-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-base), var(--bg-base)) padding-box,
                var(--gradient) border-box;
    transition: var(--transition);
}

.player-card:hover .player-avatar {
    transform: scale(1.05);
}

/* Point de statut (online/offline) */
.player-status {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid var(--bg-base);
}

.player-status.online  { background: #2ecc71; box-shadow: 0 0 8px #2ecc71; }
.player-status.offline { background: #555; }

/* Pseudo */
.player-name {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

/* Tag de rôle */
.player-role-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.player-role-tag.officiel {
    background: linear-gradient(135deg, var(--hexa-blue), var(--hexa-purple));
    color: white;
}

.player-role-tag.academie {
    background: linear-gradient(135deg, #532e7a, #972fa5);
    color: white;
}

.player-role-tag.cdf {
    background: linear-gradient(135deg, #7e43e0, #9462e6);
    color: #ffffff;
    font-weight: 800;
}

/* Stats du joueur */
.player-stats {
    font-size: 0.75rem;
    color: var(--hexa-dim);
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.player-stats span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.player-stats i { color: var(--hexa-blue); font-size: 0.7rem; }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 768px) {
    .roaster-page { padding-top: 90px; }
    .player-card  { width: 200px; }
    .category-badge { font-size: 0.85rem; padding: 9px 18px; letter-spacing: 2px; }
}

@media (max-width: 480px) {
    .player-card { width: 160px; padding: 20px 14px; }
    .player-avatar-wrap { width: 76px; height: 76px; }
    .player-name { font-size: 1rem; }
    .category-header { gap: 12px; }
}

/* ── TRACKER HINT ─────────────────────────── */
.tracker-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255,255,255,0);
    text-transform: uppercase;
    transition: color 0.3s ease;
    margin-top: -4px;
}

.tracker-hint i { font-size: 0.65rem; }

/* Apparaît au hover */
.player-card[data-tracker]:hover .tracker-hint {
    color: rgba(0,210,255,0.7);
}

/* Curseur pointer sur les cartes cliquables */
.player-card[data-tracker] { cursor: pointer; }

/* ── AGRANDISSEMENT GLOBAL POLICE ─────────── */
.player-name        { font-size: 1.5rem; }
.player-role-tag    { font-size: 0.85rem; padding: 6px 16px; }
.player-stats       { font-size: 0.9rem; }
.player-rank        { font-size: 1.3rem; }
.player-avatar-wrap { width: 120px; height: 120px; }
.player-card        { width: 260px; padding: 32px 24px; }
.category-badge     { font-size: 1.2rem; padding: 13px 28px; letter-spacing: 3px; }
.section-title      { font-size: clamp(3rem, 5vw, 4.5rem); }
.section-sub        { font-size: 1.1rem; }

/* ── BOUTONS SOCIAUX ──────────────────────── */
.player-socials {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 10px 16px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: auto;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.25s;
    border: 1px solid rgba(255,255,255,0.1);
}

.tracker-btn { background: rgba(0,210,255,0.1); color: var(--hexa-blue); }
.tracker-btn:hover { background: rgba(0,210,255,0.25); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,210,255,0.3); }

.twitter-btn { background: rgba(29,161,242,0.1); color: #1da1f2; }
.twitter-btn:hover { background: rgba(29,161,242,0.25); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(29,161,242,0.3); }

.tiktok-btn { background: rgba(255,0,80,0.1); color: #ff0050; }
.tiktok-btn:hover { background: rgba(255,0,80,0.2); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255,0,80,0.25); }

/* ── BADGE GRINDER ────────────────────────── */
.category-badge.grinder { 
    background: linear-gradient(135deg, #0f3180, #638ceb); 
    border-color: rgba(0,120,255,0.5); 
    color: #ffffff; 
}
.player-role-tag.grinder { 
    background: rgba(0,100,255,0.12); 
    color: #ffffff; 
    border-color: rgba(0,120,255,0.3); 
}
.player-card[data-category="grinder"]:hover,
.roaster-category:last-child .player-card:hover { 
    border-color: rgba(0,120,255,0.4); 
    box-shadow: 0 20px 50px rgba(0,80,255,0.2); 
}