/* News from both sides — editorial theme.
   Neutralna paleta; dvije ne-partijske akcentne boje za "obje strane":
   strana A = teal, strana B = terracotta. */

:root {
  --ink:        #16181d;
  --ink-soft:   #3c4047;
  --muted:      #7b8089;
  --line:       #e6e4df;
  --bg:         #faf9f6;
  --surface:    #ffffff;
  --side-a:     #0f6e72;
  --side-a-bg:  #e9f4f4;
  --side-b:     #b4451f;
  --side-b-bg:  #fbede6;
  --accent:     #16181d;
  --radius:     14px;
  --shadow:     0 1px 2px rgba(20,22,28,.05), 0 8px 24px rgba(20,22,28,.06);
  --serif:  Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans:   -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
img { max-width: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: inline-flex; gap: 4px; }
.dot { width: 13px; height: 13px; border-radius: 50%; display: inline-block; }
.dot-a { background: var(--side-a); }
.dot-b { background: var(--side-b); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-top { font-weight: 800; letter-spacing: .16em; font-size: 13px; color: var(--muted); }
.brand-bottom { font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: .01em; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.nav a:hover { color: var(--accent); }

/* Sections dropdown (cisti <details>, bez JS-a za otvaranje) */
.nav-sections { position: relative; }
.nav-sections > summary {
  list-style: none; cursor: pointer; user-select: none;
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 5px;
}
.nav-sections > summary::-webkit-details-marker { display: none; }
.nav-sections > summary::after {
  content: "▾"; font-size: 10px; color: var(--muted); transition: transform .15s ease;
}
.nav-sections[open] > summary { color: var(--accent); }
.nav-sections[open] > summary::after { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; right: 0; top: calc(100% + 12px); min-width: 200px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; z-index: 60;
  display: flex; flex-direction: column; gap: 2px;
}
.nav-dropdown a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600;
}
.nav-dropdown a:hover { background: var(--bg); color: var(--accent); }
.nav-count {
  font-size: 11px; font-weight: 700; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 1px 7px; margin-left: 14px;
}
.nav-dropdown a:hover .nav-count { background: #fff; }

/* Awaiting reply — nav link + oznake */
.nav-awaiting { color: var(--side-b) !important; font-weight: 700; }
.nav-awaiting:hover { color: var(--accent) !important; }
.awaiting-intro { color: var(--ink-soft); font-size: 16px; max-width: 72ch; margin: 0 0 24px; }

/* Poravnanje teksta s obje strane (justified) za body paragrafe — ljepše. */
.card-summary,
.hero-summary,
.story-summary,
.split-perspective,
.side-perspective,
.neutral-note,
.awaiting-intro,
.copyright-box,
.prose p,
.empty-state p,
.footer-note p {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: none;
  hyphens: none;
}
.awaiting-count { font-size: 14px; font-weight: 700; color: #fff; background: var(--side-b); border-radius: 999px; padding: 1px 10px; vertical-align: middle; }
.card { position: relative; }
.card-pending {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--side-b); color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: .03em; padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(20,22,28,.25);
}
.pending-banner {
  margin: 4px 0 24px; padding: 14px 16px; background: var(--side-b-bg);
  border: 1px solid var(--line); border-left: 4px solid var(--side-b);
  border-radius: 10px; font-size: 14.5px; color: var(--ink-soft);
}
.pending-banner strong { color: var(--side-b); }
.search-form input[type="search"] {
  font: inherit; font-size: 14px; padding: 7px 12px; width: 150px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
  outline: none; transition: width .15s ease, border-color .15s ease;
}
.search-form input[type="search"]:focus { width: 200px; border-color: var(--side-a); }
.search-form-lg { display: flex; gap: 10px; margin: 6px 0 24px; max-width: 560px; }
.search-form-lg input[type="search"] {
  flex: 1; font-size: 16px; padding: 12px 16px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; outline: none;
}
.search-form-lg input[type="search"]:focus { border-color: var(--side-a); }
.search-form-lg button {
  font: inherit; font-weight: 700; padding: 0 20px; border: 0; border-radius: 10px;
  background: var(--accent); color: #fff; cursor: pointer;
}
.search-meta { margin: 0 0 18px; }
.nav-search-link { display: none; }  /* vidljiv samo na mob/tablet, inace ima inline polje */
@media (max-width: 860px) {
  .header-inner .search-form { display: none; }
  .nav-search-link { display: inline; }
}

.ticker { background: var(--ink); color: #f3f1ec; }
.ticker-inner { display: flex; align-items: center; gap: 12px; height: 38px; font-size: 13.5px; }
.ticker-tag {
  background: rgba(255,255,255,.12); padding: 3px 9px; border-radius: 999px;
  font-weight: 700; letter-spacing: .03em; text-transform: uppercase; font-size: 11px;
}
.ticker-text { color: #cfd2d6; }

/* ---------- Hero ---------- */
main.wrap { padding-top: 34px; padding-bottom: 56px; }
.hero {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; margin-bottom: 40px;
}
.hero-media { display: block; }
.hero-img { width: 100%; aspect-ratio: 1200 / 480; height: auto; max-height: 420px; object-fit: cover; object-position: center; display: block; border-bottom: 1px solid var(--line); background: #16181d; }
.hero-link { display: block; padding: 34px 34px 26px; }
.hero-headline {
  font-family: var(--serif); font-weight: 700; font-size: 40px;
  line-height: 1.12; margin: 14px 0 12px; letter-spacing: -.01em;
}
.hero-summary { font-size: 19px; color: var(--ink-soft); margin: 0; max-width: 70ch; }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.hero-side { padding: 22px 34px 26px; }
.hero-side-a { background: var(--side-a-bg); border-right: 1px solid var(--line); }
.hero-side-b { background: var(--side-b-bg); }
.hero-side .side-label { font-weight: 800; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.hero-side-a .side-label { color: var(--side-a); }
.hero-side-b .side-label { color: var(--side-b); }
.hero-side .side-perspective { margin: 10px 0 14px; color: var(--ink-soft); font-size: 15.5px; }
.side-source { font-weight: 700; font-size: 14px; }
.hero-side-a .side-source { color: var(--side-a); }
.hero-side-b .side-source { color: var(--side-b); }

/* ---------- Tags / meta ---------- */
.topic-tag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; background: #fff;
}
.ttl { font-size: 12px; font-weight: 700; color: var(--muted); }
.card-date { font-size: 12px; font-weight: 600; color: var(--muted); }
.hero-date { display: inline-block; margin-left: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.story-meta { font-size: 13.5px; font-weight: 600; color: var(--muted); margin: 0 0 18px; }

/* ---------- Sections / grid ---------- */
.section { margin-top: 8px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 22px;
}
.section-head h2 { font-family: var(--serif); font-size: 22px; margin: 0; }
.section-head h2 a { color: inherit; }
.section-head h2 a:hover { color: var(--side-a); }
.ad-slot { margin: 18px 0; text-align: center; min-height: 90px; }
.ad-label { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.footer-links { font-size: 13.5px; margin: 0 0 8px; }
.footer-links a { color: #e7e8ea; text-decoration: underline; }
.section-head.sub { border-bottom: 1px solid var(--line); margin-top: 38px; }
.section-head.sub h3 { font-family: var(--serif); font-size: 18px; margin: 0; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--side-b); margin: 0 0 12px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .14s ease, box-shadow .14s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(20,22,28,.10); }
.card-link { padding: 0; display: flex; flex-direction: column; flex: 1; }
.card-img { width: 100%; aspect-ratio: 1200 / 480; height: auto; flex: 0 0 auto; object-fit: cover; display: block; background: #16181d; border-bottom: 1px solid var(--line); }
.card-body { padding: 16px 20px 18px; flex: 1 1 auto; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-headline {
  font-family: var(--serif); font-size: 21px; line-height: 1.22;
  margin: 0 0 8px; letter-spacing: -.005em;
}
.card-summary { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.card-sides { display: flex; border-top: 1px solid var(--line); }
.chip { flex: 1; padding: 11px 16px; display: flex; flex-direction: column; gap: 1px; }
.chip-a { background: var(--side-a-bg); }
.chip-b { background: var(--side-b-bg); border-left: 1px solid var(--line); }
.chip-label { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.chip-a .chip-label { color: var(--side-a); }
.chip-b .chip-label { color: var(--side-b); }
.chip-src { font-size: 13px; font-weight: 600; color: var(--ink-soft); }

/* ---------- Story page ---------- */
.story { max-width: 920px; margin: 0 auto; }
.story-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.back { font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.back:hover { color: var(--accent); }
.story-img { width: 100%; aspect-ratio: 1200 / 480; height: auto; object-fit: cover; display: block;
  border: 1px solid var(--line); border-radius: var(--radius); margin: 6px 0 22px; background: #16181d; }
.story-headline {
  font-family: var(--serif); font-size: 42px; line-height: 1.1;
  margin: 4px 0 16px; letter-spacing: -.015em;
}
.story-summary { font-size: 20px; color: var(--ink); margin: 0 0 6px; }
.neutral-note { font-size: 14px; color: var(--muted); margin: 0 0 26px; font-style: italic; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.split-a { border-top: 4px solid var(--side-a); }
.split-b { border-top: 4px solid var(--side-b); }
.split-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.side-dot { width: 11px; height: 11px; border-radius: 50%; }
.split-a .side-dot { background: var(--side-a); }
.split-b .side-dot { background: var(--side-b); }
.split-head .side-label { font-weight: 800; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.split-a .side-label { color: var(--side-a); }
.split-b .side-label { color: var(--side-b); }
.split-perspective { font-size: 16.5px; color: var(--ink-soft); margin: 0 0 18px; }
.split-source { border-top: 1px dashed var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.split-source .src-item { display: flex; flex-direction: column; gap: 1px; }
.hero-side .side-source { display: inline-block; margin-right: 14px; }
.src-credit { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.split-source a { font-weight: 700; }
.split-a .split-source a { color: var(--side-a); }
.split-b .split-source a { color: var(--side-b); }
.src-date { font-size: 12.5px; color: var(--muted); }

.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 26px 0 6px; }
.share-label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.share-btn {
  font: inherit; font-size: 13px; font-weight: 700; line-height: 1;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-soft); cursor: pointer; transition: all .12s ease;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.share-copy { font-family: inherit; }
.copyright-box {
  margin: 28px 0 8px; padding: 16px 18px; background: #f4f2ec;
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 13.5px; color: var(--ink-soft);
}
.copyright-box strong { color: var(--ink); }
.story + .section { margin-top: 46px; }

/* ---------- Prose / empty ---------- */
.prose, .empty-state { max-width: 760px; margin: 10px auto; }
.prose h1, .empty-state h1 { font-family: var(--serif); font-size: 34px; line-height: 1.15; }
.prose h2 { font-family: var(--serif); font-size: 23px; margin-top: 32px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 10px; }
.empty-state { text-align: center; padding: 60px 0; }
.empty-state p { color: var(--ink-soft); font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d7d9dc; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; padding: 40px 22px; }
.footer-brand strong { font-family: var(--serif); font-size: 20px; color: #fff; }
.footer-brand p { color: #a9adb3; margin: 8px 0 0; font-size: 14px; }
.footer-note p { font-size: 13.5px; margin: 0 0 10px; color: #b9bcc1; max-width: 64ch; }
.footer-note .muted { color: #80858c; }
.footer-note a { color: #e7e8ea; text-decoration: underline; }
.prose a { color: var(--side-a); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-headline { font-size: 30px; }
  .story-headline { font-size: 32px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav { gap: 14px; }
  .nav a:not(:first-child):not(:last-child) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .hero-split, .split { grid-template-columns: 1fr; }
  .hero-side-a { border-right: none; border-bottom: 1px solid var(--line); }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-link { padding: 24px 22px 18px; }
  .hero-side { padding: 18px 22px; }
}
