/* VAULT-MOCKUP-V2 */
/* VAULT-REDESIGN-V1 — service.php (Diensteinzelansicht) structural rebuild
   -------------------------------------------------------------------------
   Additive only. Everything here is scoped under .vault-shell and reuses
   the existing --vlt-* tokens already defined in vault.css (no new tokens,
   no hardcoded hex). Nothing existing is renamed: all of service.php's
   real ids/classes used by inline JS (status-badge/status-online/
   favorite-btn/heart/fav-text/vote-widget/vote-btn/vote-score/c-node/
   c-reply/factor-vote-btn/mk-attr-item/data-factor-net/etc.) keep their
   old names and just gain new, additional CSS here. New markup introduced
   by the rebuild (hero, badge-row, kv-row/torpgp, sort-chip, side-score
   mini row, at-a-glance stat tile) uses new "vlt-svc-*" class names so
   nothing collides with existing site-wide .vlt-* / .mk-* rules. */

/* ---- Panel section headings (mirrors mockup's .panel h2 .ic-wrap) ---- */
.vault-shell .vlt-svc-panel-h2{
  font-size:16px; display:flex; align-items:center; gap:9px; margin:0 0 16px; color:var(--vlt-fg);
}
.vault-shell .vlt-svc-panel-h2 .vlt-ic-wrap{ margin:0; }

/* ---- Hero ---- */
.vault-shell .vlt-svc-hero{ display:flex; gap:18px; flex-wrap:wrap; align-items:flex-start; }
.vault-shell .vlt-svc-avatar{
  width:64px; height:64px; border-radius:16px; background:var(--vlt-accent-soft); color:var(--vlt-accent);
  display:flex; align-items:center; justify-content:center; font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:22px; flex:none; overflow:hidden;
}
.vault-shell .vlt-svc-avatar img{ width:100%; height:100%; object-fit:contain; background:var(--vlt-surface-2); }
.vault-shell .vlt-svc-hero-main{ flex:1; min-width:220px; }
.vault-shell .vlt-svc-hero-main h1{ font-size:clamp(19px,5vw,27px); letter-spacing:-0.02em; line-height:1.15; display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0; color:var(--vlt-fg); }
.vault-shell .vlt-v-tick{ width:18px; height:18px; color:var(--vlt-gold); flex:none; }
.vault-shell .vlt-svc-cat-line{ display:flex; gap:9px; align-items:center; margin-top:6px; flex-wrap:wrap; font-size:12.5px; color:var(--vlt-fg-faint); }
.vault-shell .vlt-svc-cat-line a{ color:var(--vlt-accent); font-weight:600; text-decoration:none; }
.vault-shell .vlt-svc-summary{ margin-top:10px; color:var(--vlt-fg-dim); max-width:70ch; font-size:13.5px; line-height:1.6; }

/* ---- Status pill: targets the EXISTING #status-badge element and its
   EXISTING JS-set state classes (status-checking/-online/-offline/
   -unknown) — nothing renamed, only restyled to look like the mockup's
   pill. Open Question #2 resolved: status-checking/-unknown get their
   own subtle (faint) treatment since they are not success/failure. */
.vault-shell .status-badge{
  display:inline-flex; align-items:center; gap:6px; font-size:10.5px; font-weight:700; letter-spacing:.03em;
  padding:4px 10px; border-radius:999px; flex:none; text-transform:uppercase;
}
.vault-shell .status-badge .status-dot{ width:6px; height:6px; border-radius:50%; flex:none; }
.vault-shell .status-badge.status-online{ background:var(--vlt-accent-soft); color:var(--vlt-accent); }
.vault-shell .status-badge.status-online .status-dot{ background:var(--vlt-accent); }
.vault-shell .status-badge.status-offline{ background:var(--vlt-red-soft); color:var(--vlt-red); }
.vault-shell .status-badge.status-offline .status-dot{ background:var(--vlt-red); }
.vault-shell .status-badge.status-checking{ background:var(--vlt-surface-2); color:var(--vlt-fg-faint); }
.vault-shell .status-badge.status-checking .status-dot{ background:var(--vlt-fg-faint); animation:vlt-pulse 1.1s ease-in-out infinite; }
.vault-shell .status-badge.status-unknown{ background:var(--vlt-surface-2); color:var(--vlt-fg-faint); }
.vault-shell .status-badge.status-unknown .status-dot{ background:var(--vlt-fg-faint); }
@keyframes vlt-pulse{ 0%,100%{opacity:1;} 50%{opacity:.3;} }

/* ---- Badge row (KYC/Tor/PGP/noReg/NEU/verified/attrs chips) ---- */
.vault-shell .vlt-svc-badge-row{ display:flex; gap:6px; flex-wrap:wrap; margin-top:12px; }
.vault-shell .vlt-svc-chip{
  display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:600;
  padding:5px 10px 5px 8px; border-radius:999px; border:1px solid var(--vlt-border-soft);
  background:var(--vlt-surface-2); color:var(--vlt-fg-dim);
}
.vault-shell .vlt-svc-chip .vlt-ic{ width:13px; height:13px; }
.vault-shell .vlt-svc-chip.tier-accent{ color:var(--vlt-accent); background:var(--vlt-accent-soft); border-color:transparent; }
.vault-shell .vlt-svc-chip.tier-gold{ color:var(--vlt-gold-dim); background:var(--vlt-gold-soft); border-color:transparent; }
.vault-shell .vlt-svc-chip.tier-red{ color:var(--vlt-red-dim); background:var(--vlt-red-soft); border-color:transparent; }

/* ---- Hero action buttons (favorite / report / edit / forum-thread) ---- */
.vault-shell .vlt-svc-actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; }
.vault-shell .vlt-svc-actions .btn{
  font-weight:600; font-size:13px; border-radius:10px; border:1px solid var(--vlt-border); background:var(--vlt-surface-2);
  color:var(--vlt-fg-dim); padding:8px 14px; cursor:pointer; display:inline-flex; align-items:center; gap:7px; white-space:nowrap;
}
.vault-shell .vlt-svc-actions .btn:hover{ border-color:var(--vlt-fg-faint); color:var(--vlt-fg); }
.vault-shell .vlt-svc-actions .btn svg{ width:13px; height:13px; }

/* ---- Visit links (clearnet / onion) — distinct from the #torpgp copy
   row; these remain real tracked OUTBOUND links, just restyled. ---- */
.vault-shell .vlt-svc-visit-row{ display:flex; flex-direction:column; gap:6px; margin-top:16px; }
.vault-shell .vlt-svc-visit-row a{
  display:flex; align-items:center; justify-content:space-between; border-radius:10px; padding:12px 16px;
  text-decoration:none; background:var(--vlt-surface-2); border:1px solid var(--vlt-border-soft);
}
.vault-shell .vlt-svc-visit-row a:hover{ border-color:var(--vlt-accent-dim); }

/* ---- Scores panel ---- */
.vault-shell .vlt-svc-score-row{ display:flex; gap:22px; align-items:flex-start; flex-wrap:wrap; justify-content:center; }
.vault-shell .vlt-svc-weight-note{
  font-size:12px; color:var(--vlt-fg-faint); background:var(--vlt-surface-2); border:1px dashed var(--vlt-border);
  border-radius:10px; padding:9px 12px; flex:1; min-width:200px;
}

/* ---- Bestaetigte-Merkmale feat-grid look for the existing accordion
   (classes left exactly as-is: mk-attr-item / factor-vote-btn /
   data-factor-net — only visuals added). ---- */
.vault-shell .mk-attr-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media (max-width:560px){ .vault-shell .mk-attr-grid{ grid-template-columns:1fr; } }
.vault-shell .mk-attr-item{
  display:flex; align-items:center; gap:10px; background:var(--vlt-surface-2); border:1px solid var(--vlt-border-soft);
  border-radius:12px; padding:10px 12px;
}
.vault-shell .mk-attr-dot{ width:8px; height:8px; border-radius:50%; background:var(--vlt-accent); flex:none; }
.vault-shell .mk-attr-dot.neg{ background:var(--vlt-red); }
.vault-shell .mk-attr-name{ font-size:13px; font-weight:600; color:var(--vlt-fg); }
.vault-shell .mk-attr-desc{ font-size:11.5px; color:var(--vlt-fg-faint); margin-top:1px; }
.vault-shell .mk-attr-points{ font-size:12.5px; font-weight:700; color:var(--vlt-accent); flex:none; }
.vault-shell .mk-attr-points.neg{ color:var(--vlt-red); }
.vault-shell .factor-vote-btn{
  width:24px; height:24px; border-radius:7px; border:1px solid var(--vlt-border-soft); background:var(--vlt-surface);
  color:var(--vlt-fg-faint); display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.vault-shell .factor-vote-btn:hover{ color:var(--vlt-fg); }
.vault-shell .factor-vote-btn.upvoted{ background:var(--vlt-accent-soft); color:var(--vlt-accent); border-color:var(--vlt-accent-dim); }
.vault-shell .factor-vote-btn.downvoted{ background:var(--vlt-red-soft); color:var(--vlt-red); border-color:var(--vlt-red-dim); }

/* ---- Tor + PGP combined panel (kv-row) ---- */
.vault-shell .vlt-kv-row{ display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--vlt-border-soft); flex-wrap:wrap; }
.vault-shell .vlt-kv-row:last-child{ border-bottom:0; }
.vault-shell .vlt-kv-row .vlt-kv-lbl{ font-size:12px; color:var(--vlt-fg-faint); flex:none; min-width:120px; }
.vault-shell .vlt-kv-row .vlt-kv-val{ font-size:12.5px; font-family:ui-monospace,monospace; word-break:break-all; overflow-wrap:anywhere; color:var(--vlt-fg-dim); flex:1; min-width:140px; }
.vault-shell .vlt-kv-row .vlt-kv-status{ font-size:12.5px; font-weight:700; flex:none; }

/* ---- Uptime strip (sidebar card) ---- */
.vault-shell .vlt-uptime-strip{ display:flex; gap:2px; flex-wrap:wrap; margin-top:10px; }
.vault-shell .vlt-uptime-strip .mk-uptime-bar{ flex:1; min-width:3px; height:22px; border-radius:2px; display:block; }
.vault-shell .vlt-uptime-foot{ display:flex; justify-content:space-between; font-size:10.5px; color:var(--vlt-fg-faint); margin-top:7px; }

/* ---- Sort chips (comments) — new class added ALONGSIDE the existing
   real <a href="?csort=..."> links, no structural change. ---- */
.vault-shell .vlt-sort-chip{ font-size:12px; font-weight:600; padding:6px 12px; border-radius:999px; text-decoration:none; display:inline-flex; align-items:center; gap:6px; }

/* ---- "Auf einen Blick" sidebar mini panel ---- */
.vault-shell .vlt-at-a-glance{ display:flex; justify-content:space-around; text-align:center; gap:8px; flex-wrap:wrap; }
.vault-shell .vlt-glance-stat{ display:flex; flex-direction:column; align-items:center; gap:4px; }
.vault-shell .vlt-glance-stat b{ font-family:'Space Grotesk',sans-serif; font-size:17px; color:var(--vlt-accent); }
.vault-shell .vlt-glance-stat span{ font-size:10.5px; color:var(--vlt-fg-faint); }

/* ---- Similar-services row avatar fallback ---- */
.vault-shell .vlt-similar-av{ width:30px; height:30px; border-radius:9px; background:var(--vlt-surface-2); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:11px; flex:none; color:var(--vlt-fg-dim); }

/* ---- Pros/Contra two-column list ---- */
.vault-shell .vlt-pros-cons{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:560px){ .vault-shell .vlt-pros-cons{ grid-template-columns:1fr; } }

/* ---- Shady-streamer + scam/blacklist warning cards: additive token
   recolor only (structure/classes untouched, Tailwind bg-pink-*/bg-red-*
   kept as fallback for anything this doesn't cover). ---- */
.vault-shell .vlt-warn-card{ border-radius:24px; }
.vault-shell .vlt-warn-card.vlt-warn-pink{ border:2px solid var(--vlt-gold-dim); background:var(--vlt-gold-soft); }
.vault-shell .vlt-warn-card.vlt-warn-scam{ border:2px solid var(--vlt-red-dim); background:var(--vlt-red-soft); }
.vault-shell .vlt-warn-card.vlt-warn-blacklist{ border:2px solid var(--vlt-gold-dim); background:var(--vlt-gold-soft); }

/* ---- Comment composer / list: additive restyle of the EXISTING
   mk-card/vlt-panel wrapped c-node tree + rating form. No ids/classes
   renamed (vote-widget/vote-btn/vote-score/c-reply/c-reply-collapsed
   stay exactly as the real voteRating()/toggleReplyCollapse() JS expects). */
.vault-shell .c-node{ margin-bottom:0; }
.vault-shell .c-reply-body{ margin-top:12px; }
.vault-shell .c-reply-collapsed .c-reply-body{ display:none; }
.vault-shell .vote-widget{ display:flex; flex-direction:column; align-items:center; gap:3px; flex:none; }
.vault-shell .vote-btn{
  width:26px; height:26px; border-radius:7px; border:1px solid var(--vlt-border-soft); background:var(--vlt-surface-2);
  color:var(--vlt-fg-faint); display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:11px; line-height:1;
}
.vault-shell .vote-btn:hover{ color:var(--vlt-fg); }
.vault-shell .vote-btn.upvoted{ background:var(--vlt-accent-soft); color:var(--vlt-accent); }
.vault-shell .vote-btn.downvoted{ background:var(--vlt-red-soft); color:var(--vlt-red); }
.vault-shell .vote-score{ font-size:12.5px; font-weight:700; color:var(--vlt-fg-dim); min-width:16px; text-align:center; }
.vault-shell .vote-score.positive{ color:var(--vlt-accent); }
.vault-shell .vote-score.negative{ color:var(--vlt-red); }
.vault-shell .c-collapse-toggle{
  background:none; border:0; color:var(--vlt-fg-faint); display:flex; align-items:center; gap:4px; cursor:pointer; font-size:11.5px; font-weight:600; padding:0;
}
.vault-shell .c-collapse-toggle:hover{ color:var(--vlt-fg-dim); }

/* ---- Dead-link grace-period banner (real feature, no mockup equivalent):
   token recolor only, conditional/markup unchanged. ---- */
.vault-shell .vlt-deadlink-banner{ background:var(--vlt-red-soft); border-color:var(--vlt-red-dim); color:var(--vlt-red); }
.vault-shell .vlt-deadlink-banner .text-red-300{ color:var(--vlt-red); }

/* ---- Unlimited-depth reply nesting: every reply level still renders
   (recursive dk_render_comment_node), but the visual indent per level is
   small and the deepest levels stop adding width so phones never overflow. */
.vault-shell .c-reply{ margin-left:14px; }
.vault-shell .c-reply .c-reply .c-reply .c-reply{ margin-left:0; }
@media (max-width:480px){ .vault-shell .c-reply{ margin-left:8px; } }

/* Heller Modus: .onion-Link hat eine fest eingetragene helle Lila-Farbe
   (inline style), die auf hellem Grund kaum lesbar ist. */
[data-theme="light"] .vault-shell a.svc-box span[style*="#c4b5fd"]{ color: #6d28d9 !important; }
