/* Paleta și formele preluate de pe reginamaria.ro.
   Fonturile lor (Graphik, Tiempos Fine) sunt licențiate: se folosesc dacă sunt instalate local,
   altfel Inter și Source Serif 4 (gratuite, foarte apropiate). */
:root {
  --red: #dc0028;
  --red-600: #cd0025;
  --red-50: #fff0f2;
  --ink: #2e333c;
  --ink-2: #4a5059;
  --muted: #6c7076;
  --faint: #9a9da2;
  --line: #e6e7e9;
  --line-soft: #f0f1f1;
  --bg: #f7f7f7;
  --surface: #ffffff;
  --ok: #17803d;
  --warn: #b25e00;
  --sans: "Graphik", "graphik-regular", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Tiempos Fine", "tiemposfine-regular", "Source Serif 4", Georgia, serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  font-feature-settings: "cv11", "ss01";
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.ico { flex: none; display: block; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* Semnătură text (nu folosim logo-ul oficial) */
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark .glyph { width: 28px; height: 28px; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: #fff; font: 500 13px var(--serif); letter-spacing: .02em; }
.mark .name { font: 500 15px var(--serif); letter-spacing: .06em; text-transform: uppercase; }
.mark .sep { width: 1px; height: 18px; background: var(--line); }
.mark .ctx { font-size: 13px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 500; font-size: 14px; line-height: 20px;
  border: 1px solid transparent; border-radius: 7px; padding: 10px 18px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .12s, border-color .12s, color .12s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-600); }
.btn-primary:disabled { background: #d5d6d8; cursor: default; }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { border-color: #cfd1d4; background: #fbfbfb; }
.btn-text { background: none; color: var(--red); padding-left: 0; padding-right: 0; }
.btn-block { width: 100%; }

/* Status: punct + text, nu „pastile” colorate peste tot */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.status.ok::before { background: var(--ok); }
.status.warn::before { background: var(--warn); }
.status.live::before { background: var(--red); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .status.live::before { animation: none; } }

/* Buton înapoi la pagina principală */
.back-home {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px 0 10px; border-radius: 7px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  font-size: 13.5px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: border-color .12s, background-color .12s;
}
.back-home:hover { border-color: #cfd1d4; background: #fbfbfb; }
.back-home.floating { position: fixed; top: 16px; left: 16px; z-index: 50; box-shadow: 0 4px 16px rgba(46,51,60,.06); }

.concept-note {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; font-size: 12px; color: var(--muted); box-shadow: 0 4px 16px rgba(46,51,60,.06);
}
.concept-note a { color: var(--ink); }

pre.code {
  margin: 0; background: #fbfbfb; border: 1px solid var(--line); border-radius: 6px;
  padding: 14px 16px; overflow: auto; font: 12px/1.6 var(--mono); color: var(--ink-2);
}
pre.code .k { color: #8a1538; }
pre.code .s { color: #1d5e8c; }
pre.code .n { color: #17803d; }
