/* ═══════════════════════════════════════════════════════════
   PGH GAMER SCORE
═══════════════════════════════════════════════════════════ */

/* ── Score badge (used everywhere) ────────────────────── */
.pghs-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    border: 1px solid currentColor;
}

.pghs-badge-rookie  { color: #cd7f32; background: rgba(205,127,50,.1); }
.pghs-badge-player  { color: #9e9e9e; background: rgba(158,158,158,.1); }
.pghs-badge-veteran { color: #ffd700; background: rgba(255,215,0,.1); }
.pghs-badge-elite   { color: #00bcd4; background: rgba(0,188,212,.1); }
.pghs-badge-legend  { color: #c0392b; background: rgba(192,57,43,.1); }

/* ── Score widget (shown on profile) ──────────────────── */
.pghs-score-wrap {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 16px 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
}

.pghs-score-num {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
}

.pghs-score-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 2px;
}

.pghs-rank-name {
    font-size: 13px;
    font-weight: 700;
    margin-top: 4px;
}

/* Next rank progress */
.pghs-progress-wrap { margin-top: 8px; }
.pghs-progress-label { font-size: 11px; color: #888; margin-bottom: 4px; }
.pghs-progress-bar {
    background: rgba(255,255,255,.1);
    border-radius: 20px;
    height: 5px;
    overflow: hidden;
}
.pghs-progress-fill {
    background: linear-gradient(90deg, #c0392b, #e74c3c);
    height: 100%;
    border-radius: 20px;
    transition: width .4s ease;
}

/* ── Score log ────────────────────────────────────────── */
.pghs-log {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.pghs-log-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    font-size: 13px;
}

.pghs-log-label { color: #374151; }
.pghs-log-pts {
    font-weight: 700;
    color: #16a34a;
    white-space: nowrap;
    margin-left: 8px;
}
.pghs-log-time { font-size: 11px; color: #9ca3af; margin-left: 8px; }

/* ── Leaderboard widget ───────────────────────────────── */
.pghs-leaderboard {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.pghs-lb-header {
    background: #1a1a1a;
    padding: 12px 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.pghs-lb-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}

.pghs-lb-row:hover { background: #fafafa; }
.pghs-lb-row:last-child { border-bottom: none; }

.pghs-lb-pos {
    font-size: 13px;
    font-weight: 700;
    color: #9ca3af;
    width: 20px;
    flex-shrink: 0;
    text-align: center;
}

.pghs-lb-pos.pghs-lb-gold   { color: #ffd700; }
.pghs-lb-pos.pghs-lb-silver { color: #9e9e9e; }
.pghs-lb-pos.pghs-lb-bronze { color: #cd7f32; }

.pghs-lb-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pghs-lb-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pghs-lb-score {
    font-size: 13px;
    font-weight: 700;
    color: #c0392b;
    white-space: nowrap;
}
