/* ==========================================================================
   DD PLATFORM — skupni videz za vse aplikacije (DD OS, Offer, VP, Content).
   EN VIR: ~/DD-PLATFORM/design/dd-theme.css — v aplikacije ga prekopira
   design/sync.sh. Ne urejaj kopij v aplikacijah.

   Barvni žetoni so enaki kot v dd-os/app/globals.css (sync.sh to preveri).
   Privzeto svetlo; nočni način izbere uporabnik s stikalom (DD OS §7.1),
   izbira je v piškotku "dd-theme" in atributu <html data-theme>.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Anton&family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@500;600;700&display=swap");

:root {
  --font-display: "Anton", Impact, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --radius: 6px;
  --radius-lg: 10px;
  --space: 16px;
  --shadow-sm: 0 1px 2px rgba(35, 33, 28, .08);
  --shadow: 0 4px 16px rgba(35, 33, 28, .10);
  --shadow-lg: 0 8px 32px rgba(35, 33, 28, .14);
  color-scheme: light;
  --ink: #23211c;
  --ink-2: #5d594f;
  --ink-3: #928d80;
  --ground: #f2efe7;
  --surface: #fbf9f3;
  --raise: #ffffff;
  --sunk: #ebe7dc;
  --line: #e0dbcd;
  --line-2: #c9c3b1;

  --gold: #ffcc00;
  --gold-deep: #b58b00;
  --gold-soft: #fff3c4;

  --ok: #5a9c68;
  --ok-bg: #cfe4cd;
  --ok-bg2: #bcd9ba;
  --wait: #c2942f;
  --wait-bg: #f4e6bf;
  --wait-bg2: #ecd79f;
  --no: #c4685d;
  --no-bg: #eed5cf;
  --no-bg2: #e3bdb4;

  --bed: #eae6dc;
  --bed-we: #e2ddd1;
  --av-bg: #cfe4cd;
  --mb-bg: #f4e6bf;
  --un-bg: #eed5cf;
  --asg: #3a76b5;
  --asg-bg: #d3e2f2;
  /* Faze prodaje (CRM): svetla podlaga + temnejše besedilo iste barve. */
  --st-lead-bg: #e4e4e4; --st-lead: #555555;
  --st-talking-bg: #fff1a8; --st-talking: #7a6000;
  --st-sendoffer-bg: #ffd9a8; --st-sendoffer: #9a4f00;
  --st-offersent-bg: #cfe6ff; --st-offersent: #1a5fb4;
  --st-negotiating-bg: #d6dbff; --st-negotiating: #3346a8;
  --st-won-bg: #cfe8cc; --st-won: #2e7d32;
  --st-lost-bg: #f6d0ca; --st-lost: #b3261e;
}

:root[data-theme="dark"] {
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 4px 16px rgba(0, 0, 0, .45);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, .55);
  color-scheme: dark;
  --ink: #ece9e0;
  --ink-2: #aaa596;
  --ink-3: #7e796c;
  --ground: #191813;
  --surface: #201e18;
  --raise: #282620;
  --sunk: #171610;
  --line: #332f26;
  --line-2: #453f32;
  --gold-deep: #ffd94d;
  --gold-soft: #3d3413;
  --ok: #77bf87;
  --ok-bg: #2a4530;
  --ok-bg2: #2e4d33;
  --wait: #d9ad4e;
  --wait-bg: #463a1c;
  --wait-bg2: #524323;
  --no: #e0776c;
  --no-bg: #482926;
  --no-bg2: #532e2a;
  --bed: #252219;
  --bed-we: #2b2720;
  --av-bg: #2a4530;
  --mb-bg: #463a1c;
  --un-bg: #482926;
  --asg: #7fb0e6;
  --asg-bg: #22364d;
  --st-lead-bg: #33332f; --st-lead: #c9c9c4;
  --st-talking-bg: #4a4116; --st-talking: #f3dc6b;
  --st-sendoffer-bg: #4d3317; --st-sendoffer: #ffb866;
  --st-offersent-bg: #1f3650; --st-offersent: #8cc3ff;
  --st-negotiating-bg: #262f57; --st-negotiating: #a9b6ff;
  --st-won-bg: #2a4530; --st-won: #8fd19a;
  --st-lost-bg: #482926; --st-lost: #f09a90;
}

/* Anton ima eno samo debelino — brskalnik naj je ne odebeli umetno. */
html { font-synthesis-weight: none; }

html, body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
}

/* ── Skupna zgornja vrstica (enaka kot glava v DD OS) ───────────────────── */
.dd-topbar {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; gap: 20px;
  padding: 8px 16px;
  background: var(--raise);
  border-bottom: 2px solid var(--gold);
  font-family: var(--font-body);
  box-sizing: border-box; width: 100%; height: auto; margin: 0; justify-content: flex-start;
}
.dd-topbar * { box-sizing: border-box; }
.dd-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.dd-brand b {
  font-family: var(--font-display); font-weight: 400; font-size: 14px; line-height: 1.4;
  padding: 2px 8px; border-radius: 4px; background: var(--ink); color: var(--gold);
}
.dd-brand span { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; font-size: 15px; }
.dd-nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.dd-nav::-webkit-scrollbar { display: none; }
.dd-nav a {
  font-family: var(--font-cond); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 4px; white-space: nowrap; text-decoration: none; color: var(--ink-2);
}
.dd-nav a:hover { color: var(--ink); background: var(--sunk); }
.dd-nav a.is-active { background: var(--gold); color: #000; }
.dd-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.dd-theme-toggle {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); padding: 0;
}
.dd-theme-toggle:hover { opacity: .8; }
.dd-theme-toggle .dd-sun { display: none; }
:root[data-theme="dark"] .dd-theme-toggle .dd-sun { display: block; }
:root[data-theme="dark"] .dd-theme-toggle .dd-moon { display: none; }
@media (max-width: 640px) {
  .dd-brand span { display: none; }
  .dd-topbar { gap: 10px; padding: 8px 12px; }
}
