/* iMens Gamification — Level / Streak / Badges + Rater-Leaderboard.
   Additiv, nutzt die hh-theme-Variablen. Eigene nackte Controls selbst gezeichnet
   (globale main.css input-Regel wuerde sie sonst aufblaehen). */

/* ---- Profil-Badge ---- */
.hh-gm-profile { margin-bottom: 18px; }
.hh-gm-profile .hh-gm-row {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
}
.hh-gm-level {
    display: inline-flex; align-items: center; font-weight: 700; color: #fff;
    background: var(--hh-red, #e0163a); border-radius: 999px; padding: 3px 12px;
    font-size: 13px; letter-spacing: .02em;
}
.hh-gm-streak {
    display: inline-flex; align-items: center; gap: 4px; font-weight: 600;
    color: var(--hh-text, #f2f2f3); font-size: 13px;
}
.hh-gm-xp { margin-left: auto; color: var(--hh-muted, rgba(242,242,243,.58)); font-size: 12.5px; }

/* Fortschrittsbalken */
.hh-gm-bar {
    height: 8px; border-radius: 999px; overflow: hidden;
    background: rgba(255,255,255,.08); margin: 4px 0 2px;
}
.hh-gm-bar-fill {
    height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, var(--hh-red, #e0163a), #ff5d7a);
    transition: width .5s ease;
}
.hh-gm-next { font-size: 12px; margin-top: 6px; }

/* Badges */
.hh-gm-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hh-gm-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--hh-surface2, #1a1a1d); border: 1px solid var(--hh-line, rgba(255,255,255,.08));
    color: var(--hh-text, #f2f2f3); border-radius: 999px; padding: 4px 11px;
    font-size: 12.5px; font-weight: 500; white-space: nowrap;
}

/* ---- Eigener Status auf der Leaderboard-Seite ---- */
.hh-gm-me { margin-bottom: 18px; }
.hh-gm-me-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.hh-gm-hint { font-size: 13px; margin-top: 12px; }

/* ---- Leaderboard ---- */
.hh-gm-lb-head h4 { margin-bottom: 4px; }
.hh-gm-lb-head p { font-size: 13px; margin-bottom: 14px; }
.hh-gm-lb-list { list-style: none; margin: 0; padding: 0; }
.hh-gm-lb-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 6px; border-bottom: 1px solid var(--hh-line, rgba(255,255,255,.06));
}
.hh-gm-lb-item:last-child { border-bottom: 0; }
.hh-gm-lb-rank {
    min-width: 34px; text-align: center; font-weight: 700;
    color: var(--hh-muted, rgba(242,242,243,.58)); font-size: 14px;
}
.hh-gm-lb-item:nth-child(1) .hh-gm-lb-rank { color: #ffd23f; }
.hh-gm-lb-item:nth-child(2) .hh-gm-lb-rank { color: #cfd3d8; }
.hh-gm-lb-item:nth-child(3) .hh-gm-lb-rank { color: #d98a52; }
.hh-gm-lb-avatar {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 40px;
    background: var(--hh-surface2, #1a1a1d);
}
.hh-gm-lb-name {
    font-weight: 600; color: var(--hh-text, #f2f2f3) !important; text-decoration: none;
    flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hh-gm-lb-name:hover { color: var(--hh-red, #e0163a) !important; }
.hh-gm-lb-lvl {
    font-size: 11.5px; font-weight: 700; color: #fff;
    background: var(--hh-red, #e0163a); border-radius: 999px; padding: 2px 9px;
}
.hh-gm-lb-streak { font-size: 12.5px; color: var(--hh-text, #f2f2f3); }
.hh-gm-lb-rates, .hh-gm-lb-xp {
    font-size: 12px; color: var(--hh-muted, rgba(242,242,243,.58)); white-space: nowrap;
}
.hh-gm-lb-xp { min-width: 62px; text-align: right; }
.hh-gm-empty { padding: 22px 6px; font-size: 14px; }

@media (max-width: 560px) {
    .hh-gm-lb-rates { display: none; }
    .hh-gm-lb-name { flex-basis: 90px; }
}
