/* ============================================================
   GMOD4LIFE — THÈME PRO
   Palette : bleu nuit / cyan accent / blanc cassé
   Fonts   : Inter (texte) + Rajdhani (titres/labels)
   ============================================================ */

:root {
    --accent:       #00C2FF;
    --accent-dim:   rgba(0, 194, 255, 0.15);
    --accent-glow:  rgba(0, 194, 255, 0.35);
    --accent2:      #7B61FF;

    --bg:           #0C0E14;
    --bg2:          #111420;
    --bg3:          #181B27;
    --card:         rgba(20, 23, 36, 0.92);
    --card2:        rgba(26, 30, 46, 0.95);

    --text:         #E8EAF0;
    --text-dim:     #6B7080;
    --text-muted:   #3D4155;

    --border:       rgba(255, 255, 255, 0.06);
    --border-h:     rgba(0, 194, 255, 0.3);

    --grad-accent:  linear-gradient(135deg, #00C2FF, #7B61FF);
    --grad-dark:    linear-gradient(180deg, var(--bg2), var(--bg));

    --font-head:    'Rajdhani', sans-serif;
    --font-body:    'Inter', sans-serif;

    --r-sm:  6px;
    --r-md:  10px;
    --r-lg:  16px;
    --r-xl:  20px;
    --r-pill:999px;
}

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

html, body {
    width: 100%; height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
}

/* ── ACCENT LINE TOP ──────────────────────────────────────── */
.accent-line {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad-accent);
    z-index: 100;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ── FOND IMAGE ───────────────────────────────────────────── */
.bg-overlay {
    position: fixed; inset: 0; z-index: 1;
    background-size: cover;
    background-position: center;
    opacity: 0.06;
    pointer-events: none;
}

/* ── NOISE ────────────────────────────────────────────────── */
#noise-canvas {
    position: fixed; inset: 0; z-index: 2;
    pointer-events: none;
    opacity: 0.025;
}

/* ── WRAPPER ──────────────────────────────────────────────── */
.wrapper {
    position: relative; z-index: 10;
    width: 100%; height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 22px 32px 18px;
    gap: 14px;
}

/* ══════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════ */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideDown 0.5s ease both;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.logo-pill {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px; height: 40px;
    border-radius: var(--r-md);
    background: var(--grad-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
    box-shadow: 0 0 16px var(--accent-glow);
}

.logo-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.logo-name {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text);
    line-height: 1;
}

.logo-badge {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
}

/* Liens header */
.header-socials { display: flex; gap: 8px; }

.h-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-dim);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: default;
    text-decoration: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.h-link:hover {
    border-color: var(--border-h);
    color: var(--accent);
    background: var(--accent-dim);
}

/* ══════════════════════════════════════════════════════════
   PLAYER WELCOME
   ══════════════════════════════════════════════════════════ */
.player-welcome {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--card2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--r-lg);
    padding: 16px 22px;
    width: 100%;
    max-width: 860px;
    backdrop-filter: blur(16px);
    animation: fadeIn 0.6s ease 0.1s both;
    box-shadow: 0 0 40px rgba(0, 194, 255, 0.04);
}

.player-avatar-wrap {
    position: relative;
    width: 60px; height: 60px;
    flex-shrink: 0;
}

.player-avatar {
    width: 60px; height: 60px;
    border-radius: var(--r-md);
    object-fit: cover;
    display: block;
    position: relative; z-index: 1;
}

.player-avatar-placeholder {
    position: absolute;
    inset: 0;
    border-radius: var(--r-md);
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-muted);
    z-index: 0;
}

/* Quand l'avatar est chargé → cache le placeholder */
.player-avatar[src]:not([src=""]) + .player-avatar-placeholder {
    display: none;
}

.player-avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: calc(var(--r-md) + 3px);
    border: 1.5px solid var(--accent);
    opacity: 0.5;
    pointer-events: none;
    box-shadow: 0 0 12px var(--accent-glow);
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.player-greeting {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
}

.player-name {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text);
    line-height: 1.1;
}

.player-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ══════════════════════════════════════════════════════════
   MAIN
   ══════════════════════════════════════════════════════════ */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    animation: fadeIn 0.6s ease 0.2s both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── SECTION HEADER ───────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section-title {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ── TEAM ─────────────────────────────────────────────────── */
.team-section { width: 100%; max-width: 860px; }

.team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 16px 18px 13px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    min-width: 130px;
    backdrop-filter: blur(14px);
    cursor: default;
    transition: all 0.2s ease;
    animation: cardPop 0.4s ease both;
    position: relative;
    overflow: hidden;
}

.team-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad-accent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.team-card:hover {
    border-color: var(--border-h);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-h);
}

.team-card:hover::after { opacity: 1; }

@keyframes cardPop {
    from { opacity: 0; transform: scale(0.9) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.team-avatar-wrap {
    position: relative;
    width: 60px; height: 60px;
}

.team-avatar, .team-avatar-placeholder {
    width: 60px; height: 60px;
    border-radius: var(--r-md);
    display: block;
    object-fit: cover;
    background: var(--bg3);
}

.team-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-muted);
}

.team-avatar-border {
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--r-md) + 2px);
    border: 1.5px solid var(--accent);
    opacity: 0.4;
    pointer-events: none;
}

.team-online {
    position: absolute;
    bottom: -2px; right: -2px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #06D6A0;
    border: 2px solid var(--bg);
    box-shadow: 0 0 6px rgba(6,214,160,0.6);
}

.team-name {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
}

.team-role-chip {
    padding: 2px 10px;
    border-radius: var(--r-pill);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── STATUS CARD ──────────────────────────────────────────── */
.status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 14px 20px;
    width: 100%;
    max-width: 860px;
    backdrop-filter: blur(14px);
    gap: 16px;
}

.status-left { display: flex; align-items: center; gap: 14px; }

.status-anim {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.status-bounce {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: bounce 1.4s ease-in-out infinite;
}

.status-bounce.b2 { animation-delay: 0.15s; background: var(--accent2); }
.status-bounce.b3 { animation-delay: 0.30s; background: var(--accent); opacity: 0.6; }

.status-done .status-bounce { animation: none; background: #06D6A0; }

@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40%           { transform: translateY(-8px); }
}

.status-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.status-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 2px;
}

.connecting-chip {
    background: var(--accent-dim);
    border: 1px solid var(--border-h);
    color: var(--accent);
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: var(--r-pill);
    animation: chipPulse 2s ease-in-out infinite;
}

@keyframes chipPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
    50%       { opacity: 0.8; box-shadow: 0 0 12px var(--accent-glow); }
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: slideUp 0.5s ease 0.1s both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Tip box */
.tip-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 8px 14px;
}

.tip-icon {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

.tip-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.35s ease;
}

.tip-text.fade-out { opacity: 0; }

/* Progress card */
.progress-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 14px 20px;
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.progress-label-text {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.progress-pct {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 44px;
    text-align: right;
}

.progress-track {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--r-pill);
    overflow: visible;
    border: 1px solid var(--border);
}

.progress-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    border-radius: var(--r-pill);
    background: var(--grad-accent);
    transition: width 0.5s cubic-bezier(.25,.46,.45,.94);
    overflow: hidden;
    box-shadow: 0 0 10px var(--accent-glow);
}

.progress-shimmer {
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.8s ease-in-out infinite;
}

@keyframes shimmer {
    0%   { left: -80%; }
    100% { left: 120%; }
}

.progress-ball {
    position: absolute;
    top: 50%; left: 0%;
    transform: translate(-50%, -50%);
    width: 14px; height: 14px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 0 2px var(--accent), 0 0 10px var(--accent-glow);
    transition: left 0.5s cubic-bezier(.25,.46,.45,.94);
    pointer-events: none;
    z-index: 2;
}

.progress-file {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Courier New', monospace;
}

/* Footer chips */
.footer-chips {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.f-chip {
    padding: 4px 12px;
    border-radius: var(--r-pill);
    background: transparent;
    border: 1px solid var(--border);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: default;
    transition: all 0.2s ease;
    text-decoration: none;
}

.f-chip:hover {
    background: var(--accent-dim);
    border-color: var(--border-h);
    color: var(--accent);
}