/* eDoktor - "dizajn-temelj" v2, paleta odobrena 26.09.2026. (plava #2f6fed + zelena #10b981)
   Ucitava se ZADNJI (nakon nav-footer-v2.css, footer-v3.css, ed-buttons.css, tema CSS-a).
   Raspored stranica se ne dira - samo boje/font/debljina/CTA. Naslovnica v2 (.nx) je izuzeta
   (ima vlastiti sustav u homepage-v2.css koji ionako ucitava se poslije i pobjeduje na .nx). */

:root{
  --ed-acc:#2f6fed;
  --ed-acc2:#1f5bd6;
  --ed-acc-soft:#eaf1fe;
  --ed-acc-ink:#1f4fc0;
  --ed-green:#10b981;
  --ed-green-soft:#e8f8f1;
  --ed-ink:#0f172a;
  --ed-ink2:#334155;
  --ed-mute:#64748b;
  --ed-mute2:#94a3b8;
  --ed-line:#e8ecf2;
  --ed-grey:#f5f7fa;
  --ed-font:'Inter Tight',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --ed-grad:linear-gradient(135deg,#3b82f6,#10b981);
}

body:not(.home){font-family:var(--ed-font);}
body.home:not(:has(main.nx)){font-family:var(--ed-font);}

h1,h2,h3,h4{font-family:var(--ed-font);color:var(--ed-ink);}
h1{letter-spacing:-.04em;}
h2{letter-spacing:-.03em;}
h3,h4{letter-spacing:-.02em;}

/* ------------------------------------------------------------------ */
/* GUMBI - pilula prema uzorku .nx .btn / .nx .btn-p iz homepage-v2.css */
/* ------------------------------------------------------------------ */

.ed-btn,
.ed-btn-flat,
.tdm-btn,
html body .ed-btn,
html body .ed-btn-flat,
html body a.ed-btn.tdm-btn,
html body a.ed-btn.tds-button3 {
  background:var(--ed-acc)!important;
  background-image:none!important;
  border-radius:999px!important;
  padding:15px 26px!important;
  height:auto!important;
  font-family:var(--ed-font)!important;
  font-size:15.5px!important;
  font-weight:600!important;
  line-height:1.2!important;
  color:#fff!important;
  box-shadow:none!important;
  transition:background .2s,box-shadow .2s,transform .2s!important;
}
.ed-btn:hover,
.ed-btn-flat:hover,
.tdm-btn:hover,
html body .ed-btn:hover,
html body .ed-btn-flat:hover,
html body a.ed-btn.tdm-btn:hover {
  background:var(--ed-acc2)!important;
  box-shadow:0 12px 26px -12px var(--ed-acc)!important;
  transform:none!important;
}
.ed-btn:active,
.ed-btn-flat:active,
.tdm-btn:active {
  transform:scale(.97)!important;
}

/* Sekundarni (svijetli/lite) */
.ed-btn.lite,
.ed-btn-flat.lite,
html body .ed-btn.lite,
html body .ed-btn-flat.lite {
  background:var(--ed-grey)!important;
  color:var(--ed-ink)!important;
  border:none!important;
}
.ed-btn.lite:hover,
.ed-btn-flat.lite:hover,
html body .ed-btn.lite:hover,
html body .ed-btn-flat.lite:hover {
  background:#eceff4!important;
  color:var(--ed-ink)!important;
  border-color:transparent!important;
  box-shadow:none!important;
}

/* Mala varijanta (zaglavlje, kartice) */
.ed-btn.sm,
.ed-btn-flat.sm,
html body .ed-btn.sm,
html body .ed-btn-flat.sm {
  padding:10px 18px!important;
  font-size:14px!important;
}

/* Sirina se ne dira (wide/m-wide zadrzavaju layout) */
.ed-btn.wide,.ed-btn.m-wide,.ed-btn-flat.wide{width:100%;}

/* Klizna pixel-ikona (ed-buttons.js) - port u naslovnici koristi jednostavnu
   strelicu s pomakom na hover; ovdje se skriva kliznu kapsulu jer je JS koji je
   generira izvan opsega ove prerade (mijenja se samo boja/font/CTA), a prostor
   koji je rezervirala se vraca tekstu. */
.ed-btn .ed-btn-ico,
html body .ed-btn .ed-btn-ico {
  display:none!important;
}
.ed-btn>span:last-child,
html body .ed-btn>span:last-child {
  padding:0!important;
  margin:0!important;
}
.ed-btn.sm>span:last-child,
html body .ed-btn.sm>span:last-child {
  padding:0!important;
}

/* Header CTA (btn-header-cta / btn-header-outline) i "Analiza nalaza" (.ed-btn.sm) */
.header-nav .btn-header-cta,
html body .header-nav .btn-header-cta {
  background:var(--ed-acc)!important;
  background-image:none!important;
  border-radius:999px!important;
  padding:10px 18px!important;
  font-family:var(--ed-font)!important;
  font-size:14px!important;
  font-weight:600!important;
  color:#fff!important;
  box-shadow:none!important;
}
.header-nav .btn-header-cta:hover,
html body .header-nav .btn-header-cta:hover {
  background:var(--ed-acc2)!important;
  box-shadow:0 12px 26px -12px var(--ed-acc)!important;
}
.header-nav .btn-header-outline,
html body .header-nav .btn-header-outline {
  background:transparent!important;
  border:1.5px solid var(--ed-line)!important;
  border-radius:999px!important;
  padding:10px 18px!important;
  font-family:var(--ed-font)!important;
  font-size:14px!important;
  font-weight:600!important;
  color:var(--ed-ink)!important;
}
.header-nav .btn-header-outline:hover,
html body .header-nav .btn-header-outline:hover {
  border-color:var(--ed-acc)!important;
  color:var(--ed-acc)!important;
}

/* ------------------------------------------------------------------ */
/* Zastita naslovnice v2 (.nx) - homepage-v2.css se ucitava poslije ove
   datoteke i vec koristi identicnu paletu/font/gumbe, pa nema sukoba.
   Pravila iznad ionako ne diraju .nx (nema .ed-btn/.tdm-btn/.btn-header-*
   unutar main.nx), a h1-h4 pravilo gore je namjerno iskljuceno kad je
   main.nx prisutan (body.home:not(:has(main.nx))) kako naslovnica v2
   ostane potpuno nepromijenjena i u pregledniku bez :has() podrske. */
main.nx h1,main.nx h2,main.nx h3,main.nx h4{
  font-family:inherit;
  letter-spacing:inherit;
  color:inherit;
}

/* Gumb za gradjane (Petra 26.09.): gradijent plava -> zelena umjesto ciste boje */
html body .ed-btn:not(.lite),
html body .ed-btn-flat:not(.lite),
html body .tdm-btn,
html body .header-nav .btn-header-cta{
  background:linear-gradient(135deg,#3b82f6 0%,#14b8a6 100%)!important;
}
html body .ed-btn:not(.lite):hover,
html body .ed-btn-flat:not(.lite):hover,
html body .tdm-btn:hover,
html body .header-nav .btn-header-cta:hover{
  background:linear-gradient(135deg,#2563eb 0%,#0d9488 100%)!important;
  box-shadow:0 12px 26px -12px rgba(47,111,237,.7)!important;
}
