/* =====================================================================
   sajt.css  ·  viralni portal
   Mobilni prvo. Boje --akcenat, --traka i --naslov dolaze iz
   podesavanja.php (upisuje ih okvir.php u <style>), ovde su samo rezerve.
   ===================================================================== */

@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/media/fontovi/Barlow-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/media/fontovi/Barlow-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --akcenat: #e6306f; --traka: #151a2d; --naslov: #10306e;
  --pozadina: #f5f5f3; --belo: #ffffff; --tekst: #1c1e26; --sivo: #7a7e8c; --linija: #e6e7ec; --tamno: #0f1220;
  --font: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --naslovni: 'Barlow', 'Arial Narrow', 'Segoe UI', Arial, sans-serif;
  --sirina: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--pozadina); color: var(--tekst); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--naslov); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
.preskoci { position: absolute; left: -9999px; top: 0; background: var(--belo); padding: 8px 12px; z-index: 100; }
.preskoci:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------- zaglavlje */
.vrh { position: sticky; top: 0; z-index: 40; background: var(--traka); box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.vrh-red { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 6px 0 16px; max-width: var(--sirina); margin: 0 auto; }
.logo { display: inline-flex; align-items: center; color: #fff; min-height: 44px; }
.logo img { height: 28px; width: auto; }
.logo-tekst { font-family: var(--naslovni); font-weight: 800; font-size: 24px; letter-spacing: -.02em; color: #fff; }
.logo-tekst .brend-2 { color: var(--akcenat); }
.vrh-desno { display: flex; align-items: center; gap: 4px; }
.dugme-posalji { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 20px; background: var(--akcenat); color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; }
.dugme-meni { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; color: #fff; }
.kategorije { display: flex; gap: 8px; padding: 8px 16px; overflow-x: auto; scrollbar-width: none; background: var(--belo); border-bottom: 1px solid var(--linija); }
.kategorije::-webkit-scrollbar { display: none; }
.kategorije.otvoren { flex-wrap: wrap; }
.cip { display: inline-flex; align-items: center; flex: 0 0 auto; height: 40px; padding: 0 14px; border-radius: 20px; background: #f0f0ee; color: var(--tekst); font-weight: 600; font-size: 14px; white-space: nowrap; }
.cip.on { background: var(--akcenat); color: #fff; }

/* ---------------------------------------------------------- raspored */
.glavno { max-width: var(--sirina); margin: 0 auto; }
.raspored { display: block; }
.bocno { display: none; }
.kolona { min-width: 0; }

/* ---------------------------------------------------------- naslovi sekcija */
.sekcija { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--naslovni); font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.sekcija-crta { display: inline-block; width: 4px; height: 16px; background: var(--akcenat); border-radius: 2px; }
.dan { display: flex; align-items: baseline; gap: 8px; margin: 18px 16px 10px; font-family: var(--naslovni); font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.dan small { font-family: var(--font); font-weight: 400; font-size: 13px; color: var(--sivo); letter-spacing: 0; text-transform: none; }
.vreme { font-size: 13px; color: var(--sivo); }
.kat-tekst, .kartica-kat-tekst { font-family: var(--naslovni); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--akcenat); }

/* ---------------------------------------------------------- glavna vest */
.glavna-vest { background: var(--belo); padding: 16px 16px 20px; }
.hero { display: flex; flex-direction: column; gap: 10px; }
.hero-slika { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden; background: var(--tamno); }
.hero-slika img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-naslov { margin: 0; font-family: var(--naslovni); font-weight: 800; font-size: 25px; line-height: 1.12; letter-spacing: -.01em; color: var(--naslov); text-wrap: pretty; }
.kartica-znak { position: absolute; top: 10px; left: 10px; padding: 5px 8px; border-radius: 4px; background: rgba(21,26,45,.85); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kartica-kat { position: absolute; left: 10px; bottom: 10px; padding: 5px 8px; border-radius: 4px; background: var(--akcenat); color: #fff; font-family: var(--naslovni); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.hero-play, .video-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 18px rgba(0,0,0,.3); }
.hero-play svg, .video-play svg { fill: var(--traka); }

/* ---------------------------------------------------------- traka najgledanijih */
.traka { padding: 18px 0 18px 16px; border-top: 1px solid var(--linija); }
.traka-red { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-right: 16px; }
.traka-red::-webkit-scrollbar { display: none; }
.plocica { position: relative; flex: 0 0 104px; height: 185px; border-radius: 6px; overflow: hidden; background: var(--tamno); }
.plocica img { width: 100%; height: 100%; object-fit: cover; }
.plocica-naslov { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 8px 8px; color: #fff; font-family: var(--naslovni); font-weight: 700; font-size: 13px; line-height: 1.2; background: linear-gradient(to top, rgba(10,12,24,.9), rgba(10,12,24,0)); }

/* ---------------------------------------------------------- lista */
.feed { padding-bottom: 8px; }
.lista-grupa, .lista > .kartica { background: var(--belo); border-top: 1px solid var(--linija); }
.kartica { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--linija); background: var(--belo); }
.kartica-slika { position: relative; flex: 0 0 100px; height: 178px; border-radius: 6px; overflow: hidden; background: var(--tamno); }
.kartica-slika img { width: 100%; height: 100%; object-fit: cover; }
.kartica-play { position: absolute; right: 6px; bottom: 6px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; }
.kartica-play svg { fill: var(--traka); }
.kartica-telo { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; padding-top: 2px; }
.kartica-naslov { font-family: var(--naslovni); font-weight: 800; font-size: 18px; line-height: 1.12; letter-spacing: -.01em; color: var(--naslov); text-wrap: pretty; }
.prazno { margin: 24px 16px; color: var(--sivo); }
.strane { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px; }
.strane-broj { color: var(--sivo); font-size: 14px; }
.dugme { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border: 2px solid var(--naslov); border-radius: 6px; color: var(--naslov); font-weight: 700; font-size: 15px; background: var(--belo); }
.dugme-puno { background: var(--naslov); color: #fff; }
.lista-vrh { padding: 18px 16px 6px; }
.lista-vrh h1 { margin: 2px 0 0; font-family: var(--naslovni); font-weight: 800; font-size: 28px; color: var(--naslov); line-height: 1.1; }
.lista-opis { margin: 6px 0 0; color: var(--sivo); }

/* ---------------------------------------------------------- članak */
.clanak-strana .glavno { background: var(--belo); }
.clanak-vrh { padding: 10px 16px 14px; }
.clanak-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: 13px; color: var(--sivo); }
.clanak-meta .kat-tekst { display: inline-flex; align-items: center; min-height: 32px; }
.clanak-naslov { margin: 4px 0 0; font-family: var(--naslovni); font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: -.01em; color: var(--naslov); text-wrap: pretty; }
.pregled-traka { margin: 0; padding: 8px 16px; background: #fff3cd; color: #6b4d00; font-size: 13px; font-weight: 600; }
.klip { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 16px 10px; background: var(--tamno); }
.video { position: relative; width: 100%; max-width: 270px; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: #1c1e26; }
.video-hor { max-width: 100%; aspect-ratio: 16 / 9; }
.video-fasada { display: block; position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #1c1e26; text-align: left; }
.video-fasada img { width: 100%; height: 100%; object-fit: cover; }
.video-prazno { display: block; width: 100%; height: 100%; background: linear-gradient(160deg, #2a3150, #151a2d); }
.video-znak { position: absolute; top: 10px; left: 10px; padding: 5px 8px; border-radius: 4px; background: rgba(21,26,45,.85); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.video-play { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.video-natpis { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 12px; color: #fff; font-size: 13px; font-weight: 600; background: linear-gradient(to top, rgba(10,12,24,.9), rgba(10,12,24,0)); }
.video-nema img { opacity: .5; }
.video-uklonjen { position: absolute; left: 12px; right: 12px; top: 50%; transform: translateY(-50%); padding: 12px; border-radius: 6px; background: rgba(21,26,45,.9); color: #fff; font-weight: 700; text-align: center; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* stariji WebView bez aspect-ratio (iOS 14, Chrome < 88): visina preko padding-a */
@supports not (aspect-ratio: 1 / 1) {
  .video::before { content: ''; display: block; padding-top: 177.78%; }
  .video-hor::before { padding-top: 56.25%; }
  .video-ig::before { display: none; }
}
.video.video-ig { aspect-ratio: auto; max-width: 400px; background: #fff; }
.video.video-ig blockquote { margin: 0 !important; }
.video-izvor { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 12px; width: 100%; font-size: 13px; color: #babec8; }
.video-izvor > span, .video-otvori { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.video-izvor a { color: #fff; font-weight: 600; }
.deli { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 12px 12px; border-bottom: 1px solid var(--linija); }
.deli > a, .deli > button { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: #4a4e5e; }
.deli > [hidden] { display: none; }
.deli-podeli .deli-krug { background: var(--naslov); }
.deli-poruka { flex-basis: 100%; margin: 8px 0 0; padding: 10px 12px; border-radius: 6px; background: var(--pozadina); font-size: 13px; text-align: center; }
.deli-krug { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: #4a4e5e; }
.deli-viber .deli-krug { background: #7360f2; } .deli-telegram .deli-krug { background: #26a5e4; } .deli-whatsapp .deli-krug { background: #25d366; } .deli-facebook .deli-krug { background: #1877f2; }
.deli-ime { font-size: 11px; font-weight: 600; }
.deli-kopiraj.kopirano .deli-krug { background: var(--akcenat); }
.clanak-tekst { padding: 16px 16px 8px; font-size: 18px; line-height: 1.55; }
.clanak-tekst p { margin: 0 0 16px; }
.clanak-tekst h2 { margin: 22px 0 10px; font-family: var(--naslovni); font-weight: 800; font-size: 22px; color: var(--naslov); line-height: 1.15; }
.clanak-tekst h3 { margin: 18px 0 8px; font-size: 18px; }
.clanak-tekst blockquote { margin: 0 0 16px; padding: 14px 16px; background: var(--pozadina); border-radius: 6px; font-style: italic; }
.clanak-tekst a { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(16,48,110,.3); }
.clanak-tekst ul, .clanak-tekst ol { padding-left: 22px; margin: 0 0 16px; }
.clanak-kredit { margin: 0; padding: 6px 16px 8px; border-top: 1px solid var(--linija); font-size: 13px; color: var(--sivo); }
.clanak-kredit a { font-weight: 600; }
.oznake { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 16px 16px; }
.oznaka { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 18px; background: #f0f0ee; color: var(--naslov); font-weight: 600; font-size: 13px; }
.srodni { padding: 22px 16px 10px; }
.srodni .lista, .bocno-lista .lista { margin: 0 -16px; }
.staticna-telo, .posalji, .nema-telo { padding: 18px 16px 28px; background: var(--belo); }
.staticna-telo h1, .posalji h1, .nema-telo h1 { margin: 0 0 12px; font-family: var(--naslovni); font-weight: 800; font-size: 30px; line-height: 1.1; color: var(--naslov); }
.staticna-telo .clanak-tekst { padding: 0; }

/* ---------------------------------------------------------- obrazac (pošalji klip) */
.obrazac { display: flex; flex-direction: column; gap: 14px; }
.obrazac label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.obrazac input, .obrazac textarea { font: inherit; padding: 12px; border: 1.5px solid #c9cbd3; border-radius: 6px; min-height: 48px; }
.obrazac input:focus, .obrazac textarea:focus { outline: 2px solid var(--akcenat); border-color: transparent; }
.zamka { position: absolute; left: -9999px; }
.poruka-ok { padding: 14px 16px; background: #e4f7ec; color: #0b5c2b; border-radius: 6px; font-weight: 600; }
.poruka-greska { padding: 14px 16px; background: #fdeaea; color: #8a1c1c; border-radius: 6px; font-weight: 600; }
.posalji-uvod { color: #4a4e5e; }

/* ---------------------------------------------------------- oglasi */
/* Slot je sakriven dok AdSense skript ne stigne (body.oglasi), da bez saglasnosti ne ostane prazna traka */
.oglas { display: none; justify-content: center; padding: 10px 16px; }
body.oglasi .oglas, .oglas-prazan { display: flex; }
.oglas-prazan { margin: 0 16px; min-height: 100px; align-items: center; border: 1.5px dashed #c9cbd3; border-radius: 6px; color: #9a9db0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; background: #fafaf9; }
.oglas-lepljiv { position: sticky; bottom: 0; z-index: 30; padding: 6px 0; background: var(--belo); border-top: 1px solid var(--linija); }
.oglas-lepljiv.oglas-prazan { margin: 0; min-height: 60px; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; }
.adsbygoogle { width: 100%; }
.oglas-lepljiv .adsbygoogle { height: 50px; }

/* ---------------------------------------------------------- kolačići */
.kolacici { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; padding: 14px 16px; border-radius: 10px; background: var(--traka); color: #e6e7ec; box-shadow: 0 8px 30px rgba(0,0,0,.35); font-size: 14px; }
.kolacici p { margin: 0 0 12px; }
.kolacici a { color: #fff; text-decoration: underline; }
.kolacici-dugmad { display: flex; gap: 8px; }
.kolacici .dugme { flex: 1; min-height: 44px; border-color: #fff; color: #fff; background: transparent; font-size: 14px; }
.kolacici .dugme-puno { background: var(--akcenat); border-color: var(--akcenat); }

/* ---------------------------------------------------------- podnožje */
.podnozje { margin-top: 24px; background: var(--traka); color: #babec8; font-size: 13px; }
.podnozje-red { max-width: var(--sirina); margin: 0 auto; padding: 14px 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.podnozje-linkovi, .podnozje-mreze { display: flex; flex-wrap: wrap; gap: 0 16px; }
.podnozje-linkovi a, .podnozje-mreze a, .podnozje-kolacici { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 600; background: none; border: 0; padding: 0; font-size: 13px; }
.podnozje-prava { margin: 6px 0 0; text-align: center; width: 100%; }

/* ---------------------------------------------------------- desktop */
@media (min-width: 960px) {
  .vrh-red { padding: 0 16px; }
  .dugme-meni { display: none; }
  .kategorije { max-width: var(--sirina); margin: 0 auto; flex-wrap: wrap; }
  .raspored { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding: 20px 16px 0; }
  .bocno { display: block; align-self: start; position: sticky; top: 130px; }
  .bocno .oglas { padding: 0 0 20px; }
  .oglas-lepljiv { display: none !important; }   /* lepljivo dno je samo za telefon (brief) */
  .bocno .oglas-prazan { margin: 0; min-height: 250px; }
  .bocno-lista .lista { margin: 0; }
  .bocno-lista .kartica { padding: 10px 0; }
  .bocno-lista .kartica-slika { flex-basis: 72px; height: 128px; }
  .bocno-lista .kartica-naslov { font-size: 15px; }
  .glavna-vest { border-radius: 8px; }
  .hero { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: center; }
  .hero-naslov { font-size: 34px; grid-column: 2; grid-row: 1; align-self: end; }
  .hero .vreme { grid-column: 2; grid-row: 2; align-self: start; }
  .hero-slika { grid-row: 1 / 3; }
  .lista-grupa, .lista > .kartica, .glavna-vest { border-left: 1px solid var(--linija); border-right: 1px solid var(--linija); }
  .clanak-strana .glavno { background: transparent; }
  .clanak { background: var(--belo); border-radius: 8px; overflow: hidden; }
  .clanak-naslov { font-size: 38px; }
  .klip { flex-direction: row; align-items: flex-start; justify-content: center; flex-wrap: wrap; }
  .video-hor { max-width: 640px; }
  .video-izvor { width: auto; flex-basis: 100%; justify-content: center; gap: 24px; }
  .kolacici { left: auto; right: 24px; bottom: 24px; max-width: 420px; }
  .podnozje-red { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .podnozje-prava { flex-basis: 100%; }
}

/* ---------------------------------------------------------- slike u članku (v0.3.0) */
.clanak-tekst figure.slika { margin: 4px -16px 18px; }
.clanak-tekst figure.slika img { width: 100%; height: auto; background: var(--pozadina); }
.clanak-tekst figcaption { padding: 6px 16px 0; font-size: 13px; line-height: 1.4; color: var(--sivo); }
.slika-potpis { color: var(--tekst); }
.slika-kredit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(122,126,140,.5); font-weight: 400; }
.slika-kredit-glavna { width: 100%; margin: 0; font-size: 12px; color: #babec8; text-align: center; }
.slika-kredit-glavna a { color: #fff; }
@media (min-width: 960px) {
  .clanak-tekst figure.slika { margin: 4px 0 20px; }
  .clanak-tekst figure.slika img { border-radius: 6px; }
  .clanak-tekst figcaption { padding: 6px 0 0; }
}
