/* ════════════════════════════════════════════════════════════
   CroAi — PRIJEDLOG 10: "Gold Royal"
   Deep dark (#080810) · bogati gold + champagne highlight
   Playfair Display naslovi + Inter tijelo
   Zlatna prašina · subtle gradient mesh · cinematic glow
   WOW: gold shimmer na naslovima + aura koja prati kursor na karticama
   ════════════════════════════════════════════════════════════ */

:root {
  --bg-0: #080810;
  --bg-1: #0e0e18;
  --bg-2: #14141f;
  --surface: rgba(255, 248, 235, 0.03);
  --surface-hover: rgba(255, 248, 235, 0.055);
  --border: rgba(212, 175, 105, 0.14);
  --border-strong: rgba(238, 207, 143, 0.38);

  --text-1: #f6f2e9;
  --text-2: #b5b0a3;
  --text-3: #7b766a;

  --gold: #d4af69;
  --gold-bright: #eecf8f;
  --gold-deep: #9a7a3d;
  --champagne: #eeddb3;
  --amber-glow: rgba(212, 160, 69, 0.17);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;
  --mono: "JetBrains Mono", monospace;

  --radius-lg: 20px;
  --radius-md: 13px;
  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 28px 68px -26px rgba(0, 0, 0, 0.8);
}

.light-theme {
  --bg-0: #faf6ec;
  --bg-1: #fffdf6;
  --bg-2: #f2ebda;
  --surface: rgba(30, 22, 8, 0.05);
  --surface-hover: rgba(30, 22, 8, 0.08);
  --border: rgba(154, 122, 61, 0.3);
  --border-strong: rgba(154, 122, 61, 0.55);
  --text-1: #201a10;
  --text-2: #4a4232;
  --text-3: #6b6249;
  --gold: #a07c34;
  --gold-bright: #7a5e20;
  --champagne: #7c6023;
  --amber-glow: rgba(160, 124, 52, 0.15);
  --shadow-card: 0 28px 64px -32px rgba(90, 66, 24, 0.32);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  transition: background 0.6s var(--ease-lux), color 0.6s var(--ease-lux);
}
::selection { background: var(--gold); color: #08080f; }

/* ── Pozadina: zlatna prašina + suptilan gradient mesh ── */
#particles {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none; opacity: 0.9;
}
.mesh { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.mesh-blob {
  position: absolute; border-radius: 50%;
  filter: blur(120px); will-change: transform; opacity: 0.55;
}
.blob-a {
  width: 52vw; height: 52vw; top: -20vw; right: -14vw;
  background: radial-gradient(circle, var(--amber-glow), transparent 70%);
  animation: driftA 30s ease-in-out infinite alternate;
}
.blob-b {
  width: 40vw; height: 40vw; bottom: -16vw; left: -10vw;
  background: radial-gradient(circle, rgba(90, 70, 140, 0.09), transparent 70%);
  animation: driftB 36s ease-in-out infinite alternate;
}
@keyframes driftA { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-6vw, 4vw, 0) scale(1.14); } }
@keyframes driftB { from { transform: translate3d(0,0,0) scale(1.08); } to { transform: translate3d(7vw, -5vw, 0) scale(1); } }

/* ── Navbar: staklena letvica sa zlatnom linijom ── */
.navbar {
  position: sticky; top: 0; z-index: 50;
  padding: 17px clamp(20px, 5vw, 64px);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  background: color-mix(in srgb, var(--bg-0) 62%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.55rem; font-weight: 700;
  color: var(--text-1); text-decoration: none;
  display: flex; align-items: baseline; gap: 2px;
  letter-spacing: 0.02em;
}
.logo-mark {
  color: var(--gold); font-size: 1rem;
  margin-right: 8px; align-self: center;
  animation: sparkle 5s ease-in-out infinite;
  text-shadow: 0 0 20px var(--amber-glow);
}
@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.2) rotate(18deg); opacity: 0.72; }
}
.logo-dot { color: var(--gold); font-size: 1rem; font-style: italic; }

.nav-links { display: flex; gap: 10px; list-style: none; margin: 0 auto; }
.nav-links a {
  color: var(--text-2); text-decoration: none;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 99px;
  position: relative; transition: color 0.35s var(--ease-lux);
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.35s var(--ease-lux);
}
.nav-links a:hover, .nav-links a:focus { color: var(--gold-bright); }
.nav-links a:hover::after,
.nav-links a:focus::after,
.nav-links a.active::after { opacity: 1; }
.nav-links a.active { color: var(--gold); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.search-box { position: relative; }
.search-input {
  width: 200px; padding: 9px 36px 9px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px; outline: none;
  color: var(--text-1); font-family: var(--sans); font-size: 0.85rem;
  transition: width 0.45s var(--ease-lux), border-color 0.35s, box-shadow 0.35s;
}
.search-input:focus {
  width: 250px; border-color: var(--border-strong);
  box-shadow: 0 0 0 4px rgba(212, 175, 105, 0.09);
}
.search-input::placeholder { color: var(--text-3); }
.search-icon {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold); font-size: 1rem; pointer-events: none;
}

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface); cursor: pointer;
  display: grid; place-items: center;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease-lux);
}
.theme-toggle:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 22px var(--amber-glow);
  transform: rotate(15deg);
}
.tt-icon::before { content: "☾"; color: var(--gold); font-size: 1rem; }
.light-theme .tt-icon::before { content: "☀"; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  width: 20px; height: 1.5px; background: var(--gold);
  transition: transform 0.35s var(--ease-lux);
}

.main-container {
  position: relative; z-index: 1;
  max-width: 1300px; margin: 0 auto;
  padding: clamp(40px, 6vw, 88px) clamp(20px, 5vw, 64px) 80px;
}

/* ── Featured: cinematic glow + orbitajući zlatni okvir ── */
.featured-article {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 4vw, 64px); align-items: center;
  padding: clamp(32px, 4vw, 56px);
  background:
    radial-gradient(ellipse at 15% 0%, var(--amber-glow), transparent 58%),
    linear-gradient(145deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) + 6px);
  box-shadow: var(--shadow-card), 0 0 90px -30px var(--amber-glow);
  overflow: hidden;
  margin-bottom: clamp(64px, 8vw, 110px);
  opacity: 0; transform: translateY(24px);
  animation: rise 1s var(--ease-lux) 0.15s forwards;
}
.featured-halo {
  /* cinematic glow — toplo svjetlo iz gornjeg lijevo kuta */
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 340px at 82% 110%, rgba(212, 160, 69, 0.10), transparent 70%),
    radial-gradient(500px 260px at 10% -10%, rgba(238, 207, 143, 0.07), transparent 70%);
}
.featured-frame {
  position: absolute; inset: 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  pointer-events: none;
}
.featured-frame::after {
  content: ""; position: absolute; inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle, 0deg),
    transparent 0%, transparent 70%,
    var(--gold) 83%, var(--champagne) 88%, transparent 96%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  padding: 1px;
  animation: orbit 9s linear infinite;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes orbit { to { --angle: 360deg; } }

.news-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 0.67rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 99px;
  border: 1px solid var(--border-strong);
  color: var(--gold-bright);
  background: rgba(212, 175, 105, 0.08);
  width: fit-content;
}
.tag-modeli    { color: #eecf8f; border-color: rgba(238,207,143,.4);  background: rgba(238,207,143,.07); }
.tag-hardver   { color: #e8b98a; border-color: rgba(232,185,138,.35); background: rgba(232,185,138,.06); }
.tag-regulativa{ color: #a8c5da; border-color: rgba(168,197,218,.35); background: rgba(168,197,218,.06); }
.tag-znanost   { color: #b9d3ac; border-color: rgba(185,211,172,.35); background: rgba(185,211,172,.06); }
.tag-hrvatska  { color: #dbb8c4; border-color: rgba(219,184,196,.35); background: rgba(219,184,196,.06); }
.tag-industrija{ color: #c9b8e0; border-color: rgba(201,184,224,.35); background: rgba(201,184,224,.06); }
.news-tag::first-letter { text-transform: uppercase; }

.featured-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 3.1rem);
  font-weight: 700; line-height: 1.16;
  letter-spacing: 0.005em;
  margin: 22px 0 20px;
  /* WOW #1: gold shimmer koji klizi kroz naslov */
  background: linear-gradient(115deg,
    var(--text-1) 30%, var(--champagne) 42%,
    var(--gold-bright) 48%, var(--champagne) 54%,
    var(--text-1) 66%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -220% center; } }

.featured-content > p {
  color: var(--text-2);
  font-size: 1.02rem; font-weight: 300;
  max-width: 46ch; line-height: 1.75;
}

.article-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 26px;
  font-size: 0.8rem; color: var(--text-3);
}
.meta-author {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--text-2); font-size: 0.85rem; font-weight: 500;
}
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  object-fit: cover;
}
.mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; }
.meta-sep { color: var(--gold-deep); }

.cta-btn {
  margin-top: 32px;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 15px 30px; cursor: pointer;
  font-family: var(--sans); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #0d0b07;
  background: linear-gradient(135deg, var(--champagne), var(--gold) 55%, var(--gold-deep));
  border: none; border-radius: 99px;
  box-shadow: 0 10px 36px -8px rgba(212, 160, 69, 0.5);
  transition: transform 0.4s var(--ease-lux), box-shadow 0.4s var(--ease-lux);
  position: relative; overflow: hidden;
}
.cta-btn::after {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease-lux);
}
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 46px -8px rgba(212,160,69,0.65); }
.cta-btn:hover::after { left: 130%; }
.cta-arrow { transition: transform 0.4s var(--ease-lux); }
.cta-btn:hover .cta-arrow { transform: translateX(6px); }

/* width/height atributi na <img> (dodani 17.10.2026 radi CLS-a) u browseru
   postaju presentational hint `height: NNNpx`, koji PREGAZI CSS aspect-ratio —
   zato su slike na naslovnici izgledale izduženo (render 358x735 za omjer 16/9).
   height:auto vraća omjer iz CSS-a, a atributi i dalje rezerviraju prostor. */
img[width][height] { height: auto; }

/* <picture> je inline element i mijenja layout kartica; display:contents ga
   uklanja iz toka pa se <img> raspoređuje kao da je izravno u kontejneru. */
picture { display: contents; }

.featured-image { position: relative; }
.featured-image img {
  width: 100%; aspect-ratio: 10 / 7; object-fit: cover;
  border-radius: var(--radius-lg);
  filter: saturate(0.92) contrast(1.04);
  transition: transform 1s var(--ease-lux), filter 0.6s;
}
.featured-image:hover img { transform: scale(1.025); filter: saturate(1) contrast(1.06); }
.img-vignette {
  position: absolute; inset: 0; border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at center, transparent 58%, rgba(8, 8, 15, 0.42));
  pointer-events: none;
}

/* ── Section header ── */
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.section-kicker {
  color: var(--gold); font-size: 0.72rem;
  letter-spacing: 0.28em; text-transform: uppercase;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 700; margin-top: 10px;
}
.shimmer-text {
  background: linear-gradient(115deg,
    var(--text-1) 40%, var(--gold-bright) 50%, var(--text-1) 60%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 7s linear infinite;
}

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 18px; cursor: pointer;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 99px;
  transition: all 0.35s var(--ease-lux);
}
.filter-btn:hover { color: var(--gold-bright); border-color: var(--border-strong); }
.filter-btn.active {
  color: #0d0b07;
  background: linear-gradient(135deg, var(--champagne), var(--gold));
  border-color: transparent;
  box-shadow: 0 6px 22px -6px rgba(212,160,69,0.5);
}

/* ── News grid: kartice s premium border glow + aurorom koja prati kursor ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.news-card {
  --mx: 50%; --my: 50%;
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 30px -18px rgba(0,0,0,0.5);
  transition: transform 0.55s var(--ease-lux), border-color 0.45s, box-shadow 0.55s var(--ease-lux), background 0.45s;
  opacity: 0; transform: translateY(28px);
}
.news-card.is-visible {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.9s var(--ease-lux), transform 0.9s var(--ease-lux),
              border-color 0.45s, box-shadow 0.55s, background 0.45s;
}
.news-card::before {
  /* premium border glow — zlatna linija koja slijedi rub prema kursoru */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit;
  opacity: 0; transition: opacity 0.5s var(--ease-lux);
  background: radial-gradient(320px circle at var(--mx) var(--my),
    rgba(238, 207, 143, 0.55), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
}
.news-card::after {
  /* meka zlatna aura unutar kartice ispod kursora */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  border-radius: inherit;
  opacity: 0; transition: opacity 0.5s var(--ease-lux);
  background: radial-gradient(360px circle at var(--mx) var(--my),
    rgba(212, 175, 105, 0.08), transparent 70%);
}
.news-card:hover { transform: translateY(-7px); border-color: var(--border-strong); }
.news-card:hover::before,
.news-card:hover::after { opacity: 1; }
.news-card > * { position: relative; z-index: 1; }

.news-card-image { position: relative; overflow: hidden; }
.news-card-image img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  filter: saturate(0.9);
  transition: transform 0.9s var(--ease-lux), filter 0.6s;
}
.news-card:hover .news-card-image img { transform: scale(1.06); filter: saturate(1); }
.news-card-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 15, 0.35), transparent 45%);
}
.news-card-image .news-tag {
  position: absolute; bottom: 14px; left: 14px; z-index: 1;
  backdrop-filter: blur(10px);
  background: rgba(8, 8, 15, 0.55);
}

.news-card-body { padding: 26px 26px 20px; flex: 1; }
.news-card-body h3 {
  font-family: var(--serif);
  font-size: 1.3rem; font-weight: 600; line-height: 1.3;
  margin: 14px 0 12px;
  transition: color 0.4s;
}
.news-card:hover .news-card-body h3 { color: var(--gold-bright); }
.news-card-body p {
  color: var(--text-2); font-size: 0.88rem;
  font-weight: 300; line-height: 1.7;
}
.news-card .article-meta {
  margin: 0; padding: 18px 26px 24px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.empty-state {
  text-align: center; padding: 60px 0;
  color: var(--text-3); font-style: italic; font-family: var(--serif);
  font-size: 1.1rem;
}

footer {
  position: relative; z-index: 1;
  text-align: center;
  padding: 48px 24px 56px;
  border-top: 1px solid var(--border);
  color: var(--text-3); font-size: 0.82rem;
}
.footer-rule {
  width: 60px; height: 1px; margin: 0 auto 28px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-note { margin-top: 8px; opacity: 0.7; }

@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ── Responzivno ── */
@media (max-width: 960px) {
  .featured-article { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0;
    flex-direction: column; padding: 20px 32px 28px;
    background: color-mix(in srgb, var(--bg-1) 94%, transparent);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: all 0.4s var(--ease-lux);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .hamburger { display: flex; }
  .search-box { display: none; }
  /* Crtica ispod active linka u hamburger meniju */
  .nav-links.open a.active { color: var(--gold); }
  .nav-links.open a.active::after { opacity: 1; }
  .nav-links.open a:focus { color: var(--gold-bright); }
  .nav-links.open a:focus::after { opacity: 1; }
}
@media (max-width: 560px) {
  .news-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .article-meta { gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ════════════════════════════════════════════════════════════
   AI ATLAS — Gold Royal stilovi
   ════════════════════════════════════════════════════════════ */

.page-header {
  margin-bottom: 56px;
  opacity: 0;
  animation: rise 1s var(--ease-lux) 0.1s forwards;
}
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 14px;
  background: linear-gradient(115deg,
    var(--text-1) 30%, var(--champagne) 42%,
    var(--gold-bright) 48%, var(--champagne) 54%,
    var(--text-1) 66%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
.page-header p {
  color: var(--text-2);
  font-size: 1.02rem;
  font-weight: 300;
  max-width: 60ch;
  line-height: 1.75;
}

.category-section {
  margin-bottom: 64px;
}
.category-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.category-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 60px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.atlas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.atlas-card {
  --mx: 50%; --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-1);
  box-shadow: 0 8px 30px -18px rgba(0,0,0,0.5);
  transition: transform 0.55s var(--ease-lux), border-color 0.45s, box-shadow 0.55s var(--ease-lux), background 0.45s;
  opacity: 0; transform: translateY(24px);
}
.atlas-card.is-visible {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.8s var(--ease-lux), transform 0.8s var(--ease-lux),
              border-color 0.45s, box-shadow 0.55s, background 0.45s;
}
.atlas-card::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit; opacity: 0; transition: opacity 0.5s var(--ease-lux);
  background: radial-gradient(320px circle at var(--mx) var(--my),
    rgba(238, 207, 143, 0.45), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
}
.atlas-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  border-radius: inherit; opacity: 0; transition: opacity 0.5s var(--ease-lux);
  background: radial-gradient(360px circle at var(--mx) var(--my),
    rgba(212, 175, 105, 0.07), transparent 70%);
}
.atlas-card:hover {
  transform: translateY(-7px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}
.atlas-card:hover::before,
.atlas-card:hover::after { opacity: 1; }
.atlas-card > * { position: relative; z-index: 1; }

.atlas-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.atlas-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  background: rgba(212, 175, 105, 0.08);
  border: 1px solid var(--border);
}
.atlas-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  transition: color 0.4s;
}
.atlas-card:hover h3 { color: var(--gold-bright); }

.atlas-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  color: var(--gold-bright);
  background: rgba(212, 175, 105, 0.06);
  width: fit-content;
  margin-bottom: 14px;
}

.atlas-desc {
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 18px;
}

.atlas-link {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.3s, transform 0.3s var(--ease-lux);
  margin-top: auto;
}
.atlas-card:hover .atlas-link {
  color: var(--gold-bright);
  transform: translateX(4px);
}

/* Legal pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  position: relative;
  z-index: 1;
}
.legal-content h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 24px;
}
.legal-content h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 32px 0 16px;
}
.legal-content p {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.legal-content a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s;
}
.legal-content a:hover { color: var(--gold-bright); }

@media (max-width: 768px) {
  .atlas-grid { grid-template-columns: 1fr; }
  .page-header { margin-bottom: 40px; }
}

/* Legal pages — container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  position: relative;
  z-index: 1;
}
.container h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 24px;
  background: linear-gradient(115deg,
    var(--text-1) 40%, var(--gold-bright) 50%, var(--text-1) 60%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 7s linear infinite;
}
.container h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 32px 0 16px;
  color: var(--text-1);
}
.container p {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.container a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s;
}
.container a:hover { color: var(--gold-bright); }

/* ════════════════════════════════════════════════════════════
   NAVBAR — Gold Royal (za <nav> element bez .navbar klase)
   ════════════════════════════════════════════════════════════ */

nav {
  position: sticky; top: 0; z-index: 50;
  padding: 17px clamp(16px, 3vw, 40px);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  background: color-mix(in srgb, var(--bg-0) 62%, transparent);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

nav .logo {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-1);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.02em;
  flex: 1;
  justify-content: flex-start;
}
nav .logo-emoji {
  display: none;
}
nav .logo::before {
  content: none;
}

nav .nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  justify-content: center;
  flex: 1;
}
nav .nav-links { display: flex; gap: 10px; list-style: none; margin: 0 auto; }
nav .nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 99px;
  position: relative;
  transition: color 0.35s var(--ease-lux);
}
nav .nav-links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease-lux);
}
nav .nav-links a:hover,
nav .nav-links a:focus {
  color: var(--gold-bright);
}
nav .nav-links a:hover::after,
nav .nav-links a:focus::after,
nav .nav-links a.active::after {
  opacity: 1;
}
nav .nav-links a.active {
  color: var(--gold);
}

nav .nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

nav .search-box {
  position: relative;
  display: flex;
  align-items: center;
}
nav .search-input {
  width: 200px;
  padding: 9px 36px 9px 16px;
  background: var(--surface, rgba(255,248,235,0.03));
  border: 1px solid var(--border);
  border-radius: 99px;
  outline: none;
  color: var(--text-1);
  font-family: var(--sans);
  font-size: 0.85rem;
  transition: width 0.45s var(--ease-lux), border-color 0.35s, box-shadow 0.35s;
}
nav .search-input:focus {
  width: 250px;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 4px rgba(212, 175, 105, 0.09);
}
nav .search-input::placeholder {
  color: var(--text-3);
}
nav .search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1rem;
  pointer-events: none;
}

nav .theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface, rgba(255,248,235,0.03));
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease-lux);
  font-size: 1rem;
}
nav .theme-toggle:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 22px var(--amber-glow);
  transform: rotate(15deg);
}
nav .theme-toggle .tt-icon::before {
  content: "☾";
  color: var(--gold);
  font-size: 1rem;
}
nav .theme-toggle .tt-icon::after {
  content: "☀";
  color: var(--gold);
  font-size: 1rem;
  display: none;
}
html.light-theme nav .theme-toggle .tt-icon::before {
  display: none;
}
html.light-theme nav .theme-toggle .tt-icon::after {
  display: block;
}

nav .hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
nav .hamburger span {
  width: 20px;
  height: 1.5px;
  background: var(--gold);
  transition: transform 0.35s var(--ease-lux);
}

nav .nav-date {
  font-size: 0.8rem;
  color: var(--text-3);
  font-family: var(--mono);
}

/* Search results dropdown */
.search-results {
  display: none;
  position: fixed;
  top: 70px; left: 50%;
  transform: translateX(-50%);
  width: 90%; max-width: 600px;
  max-height: 400px; overflow-y: auto;
  background: color-mix(in srgb, var(--bg-1) 92%, transparent);
  backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 1001;
  padding: 8px;
}
.search-results.active { display: block; }
.search-result-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px; border-radius: 10px; cursor: pointer;
  transition: background 0.3s;
}
.search-result-item:hover { background: rgba(212,175,105,0.06); }
.search-result-item h4 { font-size: 14px; margin: 0; color: var(--text-1); }
.search-result-item p { font-size: 12px; margin: 0; color: var(--text-2); }
.search-result-item .sr-category { font-size: 11px; color: var(--gold); }
.search-no-results { padding: 20px; text-align: center; color: var(--text-3); font-size: 14px; }

/* Responzivno navbar */
@media (max-width: 960px) {
  nav .nav-links {
    position: fixed; top: 70px; left: 0; right: 0;
    flex-direction: column; padding: 20px 32px 28px;
    background: color-mix(in srgb, var(--bg-1) 94%, transparent);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: all 0.4s var(--ease-lux);
  }
  nav .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  nav .hamburger { display: flex; }
  nav .search-box { display: none; }
  nav .nav-date { display: none; }
  /* Crtica ispod active linka u hamburger meniju */
  nav .nav-links.open a.active { color: var(--gold); }
  nav .nav-links.open a.active::after { opacity: 1; }
  nav .nav-links.open a:focus { color: var(--gold-bright); }
  nav .nav-links.open a:focus::after { opacity: 1; }
}

/* Logo SVG */
nav .logo-svg {
  width: 44px; height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(212, 160, 69, 0.3));
  animation: sparkle 5s ease-in-out infinite;
}
.logo-ai {
  background: linear-gradient(135deg, #eecf8f, #d4af69, #9a7a3d);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Light theme — filter buttons kontrast */
.light-theme .filter-btn {
  color: #5a4f3a;
  background: rgba(154, 122, 61, 0.06);
  border-color: rgba(154, 122, 61, 0.35);
}
.light-theme .filter-btn:hover {
  color: #3a2e18;
  background: rgba(154, 122, 61, 0.12);
  border-color: rgba(154, 122, 61, 0.5);
}
.light-theme .filter-btn.active {
  color: #fffdf6;
  background: linear-gradient(135deg, #a07c34, #7c6023);
}

/* Light theme — search input */
.light-theme nav .search-input {
  background: rgba(30, 22, 8, 0.04);
  color: #201a10;
  border-color: rgba(154, 122, 61, 0.3);
}
.light-theme nav .search-input::placeholder {
  color: #8a7d5e;
}
.light-theme nav .search-input:focus {
  border-color: rgba(154, 122, 61, 0.6);
  box-shadow: 0 0 0 4px rgba(160, 124, 52, 0.12);
}

/* Light theme — nav links */
.light-theme nav .nav-links a {
  color: #5a4f3a;
}
.light-theme nav .nav-links a:hover,
.light-theme nav .nav-links a:focus {
  color: var(--gold-deep);
}
.light-theme nav .nav-links a.active {
  color: var(--gold-deep);
}

/* Light theme — news cards */
.light-theme .news-card {
  background: #fffdf6;
  border-color: rgba(154, 122, 61, 0.2);
}
.light-theme .news-card:hover {
  border-color: rgba(154, 122, 61, 0.45);
  box-shadow: 0 28px 64px -32px rgba(90, 66, 24, 0.25);
}
.light-theme .news-card .card-title {
  color: #201a10;
}
.light-theme .news-card .card-excerpt {
  color: #5a4f3a;
}
.light-theme .news-card .card-meta {
  color: #8a7d5e;
}
.light-theme .news-card .category-pill {
  background: rgba(160, 124, 52, 0.1);
  color: #7a5e20;
  border-color: rgba(160, 124, 52, 0.25);
}

/* Light theme — navbar */
.light-theme nav {
  background: rgba(250, 246, 236, 0.85);
  border-bottom-color: rgba(154, 122, 61, 0.25);
}

/* Light theme — theme toggle */
.light-theme nav .theme-toggle {
  background: rgba(30, 22, 8, 0.04);
  border-color: rgba(154, 122, 61, 0.3);
}

/* Light theme — prices bar */
.light-theme .prices-bar {
  background: rgba(30, 22, 8, 0.03);
  border-color: rgba(154, 122, 61, 0.3);
}
.light-theme .prices-bar .price-item {
  background: rgba(154, 122, 61, 0.05);
  border-color: rgba(154, 122, 61, 0.2);
}
.light-theme .prices-bar .coin-price {
  color: #201a10;
}

/* ════════════════════════════════════════════════════════════
   Missing classes — Gold Royal adaptacija (iz starog inline CSS)
   ════════════════════════════════════════════════════════════ */

/* Badge na featured članku */
.featured-image .badge {
  position: absolute;
  top: 14px; left: 14px; z-index: 2;
  background: linear-gradient(135deg, rgba(212, 160, 69, 0.85), rgba(154, 122, 61, 0.9));
  color: #0d0b07;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.light-theme .featured-image .badge {
  background: linear-gradient(135deg, rgba(160, 124, 52, 0.9), rgba(124, 96, 35, 0.85));
  color: #fffdf6;
}

/* Background gradient (fallback ako nema mesh/particles) */
.bg-gradient {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 10% 10%, var(--amber-glow), transparent 50%),
    radial-gradient(ellipse at 90% 90%, rgba(90, 70, 140, 0.06), transparent 50%),
    var(--bg-0);
}

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0 20px;
  margin-bottom: 10px;
}
.filter-bar .filter-btn {
  padding: 8px 18px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 99px;
  transition: all 0.35s var(--ease-lux);
}
.filter-bar .filter-btn:hover {
  color: var(--gold-bright);
  border-color: var(--border-strong);
}
.filter-bar .filter-btn.active {
  color: #0d0b07;
  background: linear-gradient(135deg, var(--champagne), var(--gold));
  border-color: transparent;
  box-shadow: 0 6px 22px -6px rgba(212,160,69,0.5);
}

/* Hidden by filter */
.news-card.hidden-by-filter { display: none; }

/* View all link */
.section-header .view-all {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  transition: color 0.35s;
}
.section-header .view-all:hover { color: var(--gold-bright); }

/* Prices bar — Gold Royal */
.prices-bar {
  background: var(--surface, rgba(255,248,235,0.03));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 32px;
}
.prices-bar .price-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 99px;
  background: rgba(212, 175, 105, 0.04);
  border: 1px solid var(--border);
  transition: border-color 0.35s;
}
.prices-bar .price-item:hover {
  border-color: var(--border-strong);
}
.prices-bar .coin-name {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 600;
}
.prices-bar .coin-price {
  color: var(--text-1);
  font-weight: 500;
}
.prices-bar .coin-change {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 99px;
}
@media (max-width: 600px) {
  .prices-bar {
    padding: 8px 12px;
    gap: 6px;
    font-size: 0.72rem;
  }
}

/* Reveal class (za kompatibilnost sa starim člancima) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-lux), transform 0.9s var(--ease-lux);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Featured article visibility (main.js toggle) */
.featured-article.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Featured content naslov (kada nema .featured-title klase) */
.featured-content h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 16px 0 14px;
  background: linear-gradient(115deg,
    var(--text-1) 30%, var(--champagne) 42%,
    var(--gold-bright) 48%, var(--champagne) 54%,
    var(--text-1) 66%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}

/* Featured content paragraph */
.featured-content > p {
  color: var(--text-2);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
}

/* News card naslov (kada nema .news-card-body wrapper) */
.news-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 14px 16px 12px;
  padding: 0;
  transition: color 0.4s;
}
.news-card:hover h3 { color: var(--gold-bright); }

/* News card paragraf */
.news-card p {
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
  margin: 0 16px 14px;
  padding: 0;
}

/* News card meta (kada nema .news-card-body wrapper) */
.news-card .article-meta {
  margin: auto 0 0;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--border);
}

/* News tag u kartici (pozicija) */
.news-tag {
  margin: 14px 16px 0;
}

/* Emoji overlay fallback */
.emoji-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16/9;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
}

/* Nav date (skriveno na mob) */
.nav-date { font-size: 0.8rem; color: var(--text-3); font-family: var(--mono); }

/* ════════════════════════════════════════════════════════════
   ARTICLE PAGES — Gold Royal
   ════════════════════════════════════════════════════════════ */

.article-container {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 120px 24px 60px;
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--gold);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  transition: color 0.3s, transform 0.3s var(--ease-lux);
}
.back-link:hover {
  color: var(--gold-bright);
  transform: translateX(-3px);
}

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  color: var(--gold-bright);
  background: rgba(212, 175, 105, 0.08);
  margin-bottom: 20px;
}

.article-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 32px;
  background: linear-gradient(115deg,
    var(--text-1) 30%, var(--champagne) 42%,
    var(--gold-bright) 48%, var(--champagne) 54%,
    var(--text-1) 66%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}

.article-image {
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.article-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 420px;
  filter: saturate(0.92) contrast(1.04);
}

/* Article image on mobile — manja da bude u razmjeru s tekstom */
@media (max-width: 768px) {
  .article-image {
    max-width: 85%;
    margin: 0 auto 24px;
  }
  .article-image img {
    max-height: 260px;
    border-radius: var(--radius-md);
  }
}

@media (max-width: 480px) {
  .article-image {
    max-width: 100%;
  }
  .article-image img {
    max-height: 200px;
  }
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-3);
  font-family: var(--mono);
}

.content {
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-2);
}
.content p {
  margin-bottom: 1.4em;
}
.content h2, .content h3 {
  font-family: var(--serif);
  color: var(--text-1);
  margin: 1.8em 0 0.8em;
  font-weight: 600;
}
.content h2 { font-size: 1.5rem; }
.content h3 { font-size: 1.25rem; }
.content a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.content a:hover {
  color: var(--gold-bright);
  border-color: var(--border-strong);
}
.content strong {
  color: var(--text-1);
  font-weight: 600;
}
.content blockquote {
  margin: 1.6em 0;
  padding: 16px 24px;
  border-left: 2px solid var(--gold);
  background: var(--surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-2);
}

/* Article responsive — MOBITEL */
@media (max-width: 768px) {
  .article-container {
    padding: 80px 16px 40px;
  }
  .content {
    font-size: 1.05rem;
    line-height: 1.8;
  }
  .meta {
    gap: 10px;
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .article-container {
    padding: 76px 14px 30px;
  }
  .article-title {
    font-size: 1.4rem;
  }
  .content {
    font-size: 1rem;
    line-height: 1.8;
  }
}

/* Light theme logo swap — handled by main.js (swapLogo) */

/* ═══ Bulletproof active link underline ═══ */
.nav-links a.active,
nav .nav-links a.active {
  border-bottom: 2px solid var(--gold) !important;
  padding-bottom: 6px !important;
  color: var(--gold) !important;
}
.light-theme nav .nav-links a.active,
.light-theme .nav-links a.active {
  border-bottom: 2px solid var(--gold-deep) !important;
  color: var(--gold-deep) !important;
}

/* ═══ Audio player na stranici vijesti ═══ */
.article-audio {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin: 1.2rem 0;
  padding: .9rem 1.05rem;
  border: 1px solid rgba(128, 128, 128, .35);
  border-radius: 14px;
  background: rgba(128, 128, 128, .06);
}

.article-audio .audio-label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--gold);
}

.light-theme .article-audio .audio-label {
  color: var(--gold-deep);
}

.article-audio audio {
  width: 100%;
  height: 40px;
}
