/* world_classification.css — platform-wide 18+ badge + content tags.
   Premium, clean, brand-consistent. Content signalling only — not a gate.
   Link once per page; render markup via the Jinja macro or world_classification.py.
   Themeable via CSS vars; add .pw-class--dark (or set vars) on dark surfaces. */

:root {
  --pw-accent: #e85d1f;          /* Persistent Worlds orange */
  --pw-ink: #141414;
  --pw-tag-fg: #5a5a5a;
  --pw-tag-bg: rgba(20, 20, 20, 0.04);
  --pw-tag-border: rgba(20, 20, 20, 0.12);
  --pw-desc: #6a6a6a;
}

/* ── The 18+ badge — the standard platform designation ───────────────── */
.pw-rating {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5px;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #fff;
  background: var(--pw-ink);
  border: 1.5px solid var(--pw-accent);
  border-radius: 8px;
  padding: 0.2em 0.5em;
  line-height: 1;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
  user-select: none;
}
.pw-rating__plus { color: var(--pw-accent); margin-left: 0.5px; }
.pw-rating--sm { font-size: 0.72rem; border-radius: 6px; }
.pw-rating--md { font-size: 0.95rem; }
.pw-rating--lg { font-size: 1.45rem; border-radius: 10px; padding: 0.22em 0.55em; }

/* ── Content classification tags ─────────────────────────────────────── */
.pw-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  vertical-align: middle;
}
.pw-tag {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pw-tag-fg);
  background: var(--pw-tag-bg);
  border: 1px solid var(--pw-tag-border);
  border-radius: 999px;
  padding: 0.3em 0.72em;
  white-space: nowrap;
  line-height: 1.2;
}

/* ── The composed block (badge + tags [+ description]) ────────────────── */
.pw-class { display: flex; flex-direction: column; gap: 8px; }
.pw-class__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pw-class__desc { font-size: 0.85rem; color: var(--pw-desc); line-height: 1.45; max-width: 46ch; }

/* ── Dark-surface variant (landing/hero/world tiles on dark) ──────────── */
.pw-class--dark {
  --pw-tag-fg: #cdd3dc;
  --pw-tag-bg: rgba(255, 255, 255, 0.06);
  --pw-tag-border: rgba(255, 255, 255, 0.16);
  --pw-desc: #9aa3af;
}
.pw-class--dark .pw-rating { background: #0d0d0d; }

/* ── Compact inline form (e.g. a world tile corner) ──────────────────── */
.pw-class--inline { flex-direction: row; align-items: center; gap: 10px; }

@media (max-width: 480px) {
  .pw-rating--lg { font-size: 1.2rem; }
  .pw-tag { font-size: 0.62rem; padding: 0.26em 0.6em; }
}
