/* light-theme: manual
   profil.html "Trophäen-Regal": the badges stand as trophies on glass
   shelves; badges earned since the last visit drop in (.is-drop, set by
   assets/js/profil.js) and carry a "Neu" tag. Overrides profil.css. */

:root .pf-badges {
  column-gap: 0.75rem;
  row-gap: 1.6rem;
  padding: 0.5rem 0 0.25rem;
}

:root .pf-badge {
  position: relative;
  padding: 0.4rem 0.5rem 1.1rem;
  border: 0;
  border-radius: 0;
  background: none;
  opacity: 1;
}

/* the shelf plank under every trophy; neighbours join into one board */
:root .pf-badge::after {
  content: "";
  position: absolute;
  left: -0.4rem;
  right: -0.4rem;
  bottom: 0;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.35), rgba(71, 85, 105, 0.25));
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* locked: dark silhouette */
:root .pf-badge-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px 18px 26px 26px;
  background: rgba(148, 163, 184, 0.1);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}
:root .pf-badge:not(.is-got) b,
:root .pf-badge:not(.is-got) small { opacity: 0.5; }

/* earned: golden trophy with a soft spotlight from above */
:root .pf-badge.is-got { background: radial-gradient(60% 55% at 50% 30%, rgba(251, 191, 36, 0.14), transparent 70%); }
:root .pf-badge.is-got .pf-badge-icon {
  background: linear-gradient(145deg, #fef08a, #f59e0b 55%, #b45309);
  color: #422006;
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.45);
}
:root .pf-badge.is-got:hover .pf-badge-icon { animation: tsShine 0.8s ease; }
@keyframes tsShine { 40% { transform: translateY(-4px) rotate(-4deg); } 70% { transform: translateY(0) rotate(2deg); } }

/* new since last visit: falls onto the shelf */
:root .pf-badge.is-drop .pf-badge-icon { animation: tsDrop 0.75s cubic-bezier(0.34, 1.4, 0.64, 1) var(--drop, 0.3s) both; }
@keyframes tsDrop {
  0% { transform: translateY(-70px) rotate(-12deg); opacity: 0; }
  60% { transform: translateY(4px) rotate(3deg); opacity: 1; }
  80% { transform: translateY(-3px) rotate(-1deg); }
  100% { transform: none; }
}
:root .pf-badge-new {
  position: absolute;
  top: -0.3rem;
  right: 0.6rem;
  z-index: 2;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font: 800 0.62rem Inter, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  :root .pf-badge.is-drop .pf-badge-icon,
  :root .pf-badge.is-got:hover .pf-badge-icon { animation: none; }
}

html[data-theme="light"] .pf-badge,
html[data-theme="light"] .pf-badge.is-got { background: none; border: 0; }
html[data-theme="light"] .pf-badge.is-got { background: radial-gradient(60% 55% at 50% 30%, rgba(251, 191, 36, 0.18), transparent 70%); }
html[data-theme="light"] .pf-badge::after { background: linear-gradient(180deg, #cbd5e1, #94a3b8); box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12); }
html[data-theme="light"] .pf-badge-icon { background: #e2e8f0; }
