/*!
 * © 2025 diaspora.ro — Toate drepturile rezervate.
 * PROTECTIE COPYRIGHT — COD PROPRIETAR CONFIDENTIAL
 * Utilizarea, copierea sau distributia fara acord scris este INTERZISA.
 * NO-AI-TRAINING: Not licensed for AI training datasets.
 * NO-AI-SCRAPING: Automated collection strictly prohibited.
 */
/* Day/Night Theme System v204 — diaspora.ro
 * Aplica scheme-aware colors via CSS variables fara sa stricam stilul existent.
 * Activ doar pe paginile care includ explicit acest CSS.
 */

/* DARK MODE — fond închis, text deschis */
:root[data-theme="dark"] {
  --dn-bg: #06000f; --dn-bg-2: #0d0520; --dn-bg-3: #130825;
  --dn-text: #f0eaff; --dn-text-2: #b8aad4; --dn-border: #2d2050;
  --dn-accent: #a855f7; --dn-link: #a78bfa; --dn-success: #4ade80;
  --dn-danger: #f87171; --dn-shadow: 0 4px 12px rgba(0,0,0,.6);
}

:root[data-theme="light"], :root:not([data-theme]) {
  --dn-bg: #f8fafc;
  --dn-bg-2: #ffffff;
  --dn-bg-3: #f1f5f9;
  --dn-text: #0f172a;
  --dn-text-2: #475569;
  --dn-border: #e2e8f0;
  --dn-accent: #f59e0b;
  --dn-link: #2563eb;
  --dn-success: #15803d;
  --dn-danger: #b91c1c;
  --dn-shadow: 0 4px 12px rgba(15, 23, 42, .12);
}

/* FAB toggle — v206.3 mutat la STÂNGA pentru a nu acoperi Melissa (dreapta) */
#dn-fab {
  position: fixed;
  bottom: 18px;
  left: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--dn-border, #334155);
  background: var(--dn-bg-2, #1e293b);
  color: var(--dn-text, #fff);
  font-size: 24px;
  cursor: pointer;
  z-index: 99999;
  box-shadow: var(--dn-shadow, 0 4px 12px rgba(0, 0, 0, .4));
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
#dn-fab:hover { transform: scale(1.08); box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
#dn-fab:active { transform: scale(.96); }

/* Pe mobile, mutam mai sus ca sa nu se suprapuna cu butoanele GPS */
@media (max-width: 768px) {
  #dn-fab { bottom: 92px; left: 12px; width: 46px; height: 46px; font-size: 20px; }
}

/* Auto-apply on body if it doesn't have its own bg */
html[data-theme="dark"] body:not([data-no-theme]) {
  background: var(--dn-bg);
  color: var(--dn-text);
}
html[data-theme="light"] body:not([data-no-theme]) {
  background: var(--dn-bg);
  color: var(--dn-text);
}
