/* titles.html — הישגים ותארים (core/titles.py). כרטיסי ההישגים (.ach) — אותו עיצוב כמו בפרופיל */

.ttl-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; margin-bottom: 18px;
  border-radius: var(--radius-lg, 18px); border: 1px solid rgba(168, 85, 247, .35);
  background: radial-gradient(circle at 12% 50%, rgba(168, 85, 247, .26), transparent 45%),
              linear-gradient(135deg, #1b2440, #121a30);
}
.ttl-hero h1 { margin: 0 0 6px; font-size: 1.7rem; }
.ttl-hero p { margin: 0; max-width: 720px; color: var(--text-secondary); line-height: 1.6; font-size: .92rem; }
.ttl-hero p b { color: var(--text-primary); }
.ttl-hero-art { font-size: 4rem; line-height: 1; }

.ttl-block { padding: 18px 20px; margin-bottom: 16px; }
.ttl-block h2 { margin: 0 0 12px; font-size: 1.2rem; }
.ttl-note { margin: -4px 0 12px; font-size: .88rem; }

/* הסטטים */
.ttl-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ttl-stat { padding: 14px; border-radius: 14px; background: var(--bg-tertiary); border: 1px solid var(--glass-border); }
.ttl-stat.up { border-color: rgba(250, 204, 21, .55); }
.ttl-stat-ic { font-size: 1.6rem; }
.ttl-stat-nm { font-weight: 700; margin-top: 4px; }
.ttl-stat-val { font-family: var(--font-num); font-size: 2rem; font-weight: 800; margin: 2px 0; }
.ttl-stat.up .ttl-stat-val { color: #facc15; }
.ttl-stat-ds { font-size: .82rem; line-height: 1.5; }

/* התארים */
.ttl-count { margin-bottom: 10px; color: var(--text-secondary); }
.ttl-grid { display: grid; gap: 10px; }
.ttl-card {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; padding: 12px 14px;
  border-radius: 14px; background: var(--bg-tertiary); border: 1px solid var(--glass-border);
}
.ttl-card.locked { opacity: .72; }
.ttl-card.got { border-color: rgba(168, 85, 247, .45); }
.ttl-card.worn { border-color: #facc15; background: rgba(250, 204, 21, .08); }
.ttl-ic { font-size: 2rem; text-align: center; }
.ttl-nm { font-weight: 800; font-size: 1.05rem; }
.ttl-req { font-size: .86rem; margin-top: 2px; }
.ttl-bonus { font-size: .88rem; margin-top: 4px; color: #facc15; }
.ttl-when { font-size: .78rem; margin-top: 4px; }
.ttl-worn { color: #facc15; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.ttl-pbar { height: 6px; border-radius: 999px; background: var(--surface); overflow: hidden; margin-top: 6px; }
.ttl-pbar i { display: block; height: 100%; background: #a855f7; }

/* ההישגים */
.ttl-ach { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.ach {
  display: flex; gap: 12px; align-items: center; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--glass-border); border-radius: var(--radius-md);
}
.ach .medal {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.35rem; border: 3px solid #0b1122; background: var(--bg-tertiary); filter: grayscale(1); opacity: .6;
}
.ach.t1 .medal { background: #b45309; filter: none; opacity: 1; }
.ach.t2 .medal { background: #94a3b8; filter: none; opacity: 1; }
.ach.t3 .medal { background: #facc15; filter: none; opacity: 1; box-shadow: 0 0 0 3px rgba(250,204,21,.3); }
.ach .nm { font-weight: 800; }
.ach .ds { font-size: .78rem; color: var(--text-secondary); margin: 2px 0 5px; }
.ach .pbar { height: 6px; border-radius: 999px; background: var(--bg-tertiary); overflow: hidden; }
.ach .pbar i { display: block; height: 100%; background: var(--accent-secondary); }

@media (max-width: 640px) {
  .ttl-hero { padding: 16px; }
  .ttl-hero-art { display: none; }
  .ttl-card { grid-template-columns: 40px 1fr; }
  .ttl-act { grid-column: 1 / -1; }
}
