/* css/dodaci.css — dodaci za sve stranice (ubacuje ga krug-ig/ins-kapija/sinhronizuj-sajt.php) */

/* ── Ćirilica: DM Sans nema ćirilična slova → za njih Inter (OFL, fonts/inter-cyrillic-*.woff) ── */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-cyrillic-400.woff) format('woff'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/inter-cyrillic-500.woff) format('woff'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-cyrillic-600.woff) format('woff'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/inter-cyrillic-700.woff) format('woff'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ── Pristupačnost ─────────────────────────────────────────────────────── */
.preskoci {
  position: absolute; left: 12px; top: -60px; z-index: 10000;
  background: var(--charcoal, #002D62); color: #fff; font-weight: 700; text-decoration: none;
  padding: .7rem 1.1rem; border-radius: .6rem; transition: top .15s ease;
}
.preskoci:focus { top: 12px; outline: 3px solid #fff; outline-offset: 2px; }
#sadrzaj:focus { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--red, #E30613); outline-offset: 2px; box-shadow: 0 0 0 5px rgba(255,255,255,.9); border-radius: 4px;
}

/* ── Početna: sledeća akcija (ispod dugmadi u naslovnoj sekciji) ─────── */
.sledeca-akcija {
  display: inline-flex; align-items: center; gap: .65rem; flex-wrap: wrap; justify-content: center;
  margin: -1.75rem auto 2.25rem; padding: .55rem .6rem .55rem 1rem; border-radius: 2rem;
  background: rgba(255,255,255,.85); border: 1px solid var(--border, #e5e0dc); color: var(--charcoal, #002D62);
  text-decoration: none; font-size: .95rem; box-shadow: 0 4px 18px rgba(0,45,98,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.sledeca-akcija:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,45,98,.12); }
.sledeca-akcija b { color: var(--red, #E30613); }
.sa-tacka { width: 9px; height: 9px; border-radius: 50%; background: var(--red, #E30613); box-shadow: 0 0 0 0 rgba(227,6,19,.5); animation: saPuls 2s infinite; flex: none; }
.sa-link { background: var(--red, #E30613); color: #fff; font-weight: 700; font-size: .85rem; padding: .35rem .8rem; border-radius: 2rem; white-space: nowrap; }
@keyframes saPuls { 0% { box-shadow: 0 0 0 0 rgba(227,6,19,.5); } 70% { box-shadow: 0 0 0 9px rgba(227,6,19,0); } 100% { box-shadow: 0 0 0 0 rgba(227,6,19,0); } }
/* na tamnoj pozadini videa */
.hero-new.hero-video-aktivan .sledeca-akcija { background: rgba(0,32,72,.45); border-color: rgba(255,255,255,.28); color: #fff; backdrop-filter: blur(8px); box-shadow: none; }
.hero-new.hero-video-aktivan .sledeca-akcija b { color: #ff7a82; }
@media (max-width: 767px) {
  .sledeca-akcija { margin: -1.25rem auto 1.75rem; font-size: .9rem; border-radius: 1rem; padding: .7rem .9rem; gap: .5rem .6rem; }
  .sledeca-akcija .sa-tacka { display: none; }
  .sledeca-akcija .sa-tekst { flex: 1 1 100%; text-align: center; }
}

/* ── Traka „Sledeća akcija“ na dnu ekrana (samo telefon) ──────────────── */
.cta-traka { display: none; }
@media (max-width: 767px) {
  .cta-traka {
    display: flex; align-items: center; gap: .6rem;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 900;
    background: var(--charcoal, #002D62); color: #fff; border-radius: 1rem; padding: .55rem .5rem .55rem .9rem;
    box-shadow: 0 10px 30px rgba(0,20,50,.35);
    transform: translateY(140%); opacity: 0; pointer-events: none; transition: transform .3s ease, opacity .3s ease;
  }
  .cta-traka.vidljiva { transform: none; opacity: 1; pointer-events: auto; }
  .cta-traka-tekst { flex: 1; min-width: 0; line-height: 1.2; }
  .cta-traka-tekst small { display: block; font-size: .72rem; opacity: .75; }
  .cta-traka-tekst b { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cta-traka-dugme { background: var(--red, #E30613); color: #fff; font-weight: 700; font-size: .88rem; text-decoration: none; padding: .6rem .85rem; border-radius: .7rem; white-space: nowrap; }
  .cta-traka-x { color: rgba(255,255,255,.7); font-size: 1.4rem; line-height: 1; width: 34px; height: 34px; border-radius: 50%; flex: none; }
  .cta-traka-x:hover { background: rgba(255,255,255,.1); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  .sa-tacka { animation: none; }
  .cta-traka, .sledeca-akcija { transition: none; }
}

/* ── Akcije: filteri po gradu u arhivi ─────────────────────────────────── */
.grad-filteri { display: flex; flex-wrap: wrap; gap: .4rem; flex-basis: 100%; }
.grad-filter {
  display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 2rem;
  border: 1px solid var(--border, #e5e0dc); background: #fff; color: var(--charcoal, #002D62);
  font-size: .82rem; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.grad-filter span { font-size: .72rem; font-weight: 700; color: var(--gray-fig, #6b7280); }
.grad-filter:hover { border-color: var(--red, #E30613); color: var(--red, #E30613); }
.grad-filter.aktivan { background: var(--red, #E30613); border-color: var(--red, #E30613); color: #fff; }
.grad-filter.aktivan span { color: rgba(255,255,255,.85); }

/* ── Akcija: galerija — velika prva fotografija uvek tačno visine dve male (bez praznina desno) ── */
.foto-grid.fg-3 .foto-tile:first-child { position: relative; min-height: 0; }
.foto-grid.fg-3 .foto-tile:first-child img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.foto-tile img { object-position: 50% 35%; }
