/**
 * pf-dashboard.css — Pathfinder-Widget auf dem Dashboard
 * ============================================================================
 * Aus css/pathfinder.css geschnitten am 09.09.2026 (#448). Stand dort im
 * Abschnitt "DASHBOARD MINI-VIEW" und ging damit auf alle 14 Seiten, die
 * jenes Blatt laden; gebraucht wird es auf einer. Einziger Erzeuger:
 * js/ui/pathfinder-dashboard.js, geladen nur von dashboard.html.
 * Muster wie css/aos-dashboard.css — ein Blatt je System-Widget.
 *
 * ⚠️ .rank-1/2/3 und .tier-* entstehen ZUSAMMENGESETZT ('pf-recent-tier
 *    tier-' + def.tier). Kein Namensgrep findet sie (§7k). Sie stehen hier
 *    nur im Verbund; .tier-gold allein gehoert auch coin-moment.css und
 *    ach-card.css.
 * ⚠️ @keyframes pfFadeIn stand im selben Zeilenbereich und ist BEWUSST in
 *    pathfinder.css geblieben — es hat drei Leser ausserhalb. Ein fehlender
 *    Animationsname wirft nicht, es fadet nur nichts mehr.
 * ============================================================================ */

/* ===================================================================
   DASHBOARD MINI-VIEW
   =================================================================== */

.pf-dash-mini {
  padding: 0 16px;
}

.pf-dash-header {
  text-align: center;
  padding: 24px 20px 16px;
  margin-bottom: 20px;
}

.pf-dash-header h2 {
  font-family: var(--tc-font-display);
  font-size: 1.4rem;
  color: var(--tc-highlight);
  margin: 0 0 4px;
}

.pf-dash-header p {
  font-size: 0.85rem;
  color: var(--text-muted, var(--tc-text-muted));
  margin: 0;
}

.pf-dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.pf-dash-link {
  text-align: center;
  margin-top: 12px;
  margin-bottom: 24px;
}

.pf-dash-link a {
  color: var(--tc-highlight);
  text-decoration: none;
  font-family: var(--tc-font-display);
  font-size: 0.9rem;
}

.pf-dash-link a:hover {
  text-decoration: underline;
}

/* ===================================================================
   FEAT-PF-GAMIFICATION: Achievement-Sektionen im PF-Dashboard
   =================================================================== */

.pf-dash-ach-section {
  margin-top: 18px;
}

/* --- Top Hunters --- */

.pf-hunters-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pf-hunter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0,0,0,0.20);
  border: 1px solid rgba(255,255,255,0.04);
}

.pf-hunter-rank {
  font-family: var(--tc-font-display);
  font-size: 1.1rem;
  color: var(--tc-highlight);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.pf-hunter-rank.rank-1 { color: var(--tc-warning); text-shadow: 0 0 8px rgba(240,200,80,0.5); }
.pf-hunter-rank.rank-2 { color: var(--tc-text-default); }
.pf-hunter-rank.rank-3 { color: var(--tc-secondary); }

.pf-hunter-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--pf-color-parchment, rgba(201,169,89,0.10));
  border: 1px solid var(--pf-border, rgba(var(--tc-accent-rgb,201,169,89),0.25));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tc-font-display);
  font-size: 0.86rem;
  color: var(--tc-highlight);
  flex-shrink: 0;
}

.pf-hunter-info {
  flex: 1;
  min-width: 0;
}

.pf-hunter-name {
  font-weight: 600;
  color: var(--text-primary, var(--tc-text-strong));
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-hunter-tiers {
  font-size: 0.74rem;
  color: var(--text-muted, var(--tc-text-muted));
  margin-top: 1px;
  display: flex;
  gap: 8px;
}

.pf-hunter-count {
  font-family: var(--tc-font-display);
  font-size: 1.05rem;
  color: var(--tc-highlight);
  flex-shrink: 0;
}

/* --- Recent Unlocks --- */

.pf-recent-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pf-recent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.82rem;
  border: 1px solid transparent;
  transition: background 0.15s ease;
}

.pf-recent-row:hover {
  background: rgba(201,169,89,0.05);
  border-color: var(--tc-deco-ornament-border);
}

.pf-recent-tier {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pf-recent-tier.tier-gold     { background: var(--tc-warning); box-shadow: 0 0 6px rgba(240,200,80,0.6); }
.pf-recent-tier.tier-silver   { background: var(--tc-text-default); box-shadow: 0 0 4px rgba(200,200,208,0.4); }
.pf-recent-tier.tier-bronze   { background: var(--tc-secondary); box-shadow: 0 0 4px rgba(184,118,58,0.4); }
.pf-recent-tier.tier-platinum { background: #b8e8f0; box-shadow: 0 0 8px rgba(184,232,240,0.7); }

.pf-recent-text {
  flex: 1;
  color: var(--text-secondary, var(--tc-text-muted));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-recent-text strong {
  color: var(--text-primary, var(--tc-text-strong));
}

.pf-recent-text .pf-recent-ach {
  color: var(--tc-highlight);
}

.pf-recent-time {
  font-size: 0.72rem;
  color: var(--text-muted, var(--tc-text-muted));
  flex-shrink: 0;
}

.pf-recent-empty {
  padding: 10px;
  text-align: center;
  color: var(--text-muted, var(--tc-text-muted));
  font-size: 0.82rem;
  font-style: italic;
}

@media (max-width: 600px) {
  .pf-hunter-row {
    padding: 6px 8px;
  }
}
