/* ---------- Navigacija ---------- */
.navbar {
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--vv-border);
}
.navbar-brand .navbar-title { font-weight: 800; letter-spacing: -.02em; }
.navbar .nav-link { font-weight: 500; border-radius: .5rem; padding: .4rem .75rem !important; transition: background .2s, color .2s; }
.navbar .nav-link:hover { background: color-mix(in srgb, var(--vv-accent) 10%, transparent); }
.navbar .nav-link.active { color: var(--vv-accent) !important; }

/* ---------- Tipografija ---------- */
h1, h2, h3 { letter-spacing: -.02em; }
.title { font-weight: 800; letter-spacing: -.03em; }
main a { text-decoration: none; }
main p a, main li a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--vv-accent) 40%, transparent); }
main p a:hover, main li a:hover { text-decoration-color: var(--vv-accent); }
.text-muted, .muted { color: var(--vv-muted) !important; }

/* ---------- Hero (početna) ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0 2.5rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -4rem -20vw auto -20vw;
  height: 420px;
  z-index: -1;
  background:
    radial-gradient(600px 240px at 20% 30%, color-mix(in srgb, var(--vv-accent) 18%, transparent), transparent 70%),
    radial-gradient(500px 220px at 80% 20%, color-mix(in srgb, var(--vv-accent-2) 16%, transparent), transparent 70%);
  filter: blur(8px);
}
.hero .eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--vv-accent);
  background: color-mix(in srgb, var(--vv-accent) 10%, transparent);
  padding: .3rem .75rem; border-radius: 999px; margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -.04em;
  margin: 0 0 1rem; border: 0;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--vv-accent), var(--vv-accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: 1.2rem; color: var(--vv-muted); max-width: 38rem; }
.hero-photo {
  width: 220px; height: 220px; border-radius: 28px; object-fit: cover;
  box-shadow: var(--vv-shadow);
  outline: 6px solid color-mix(in srgb, var(--vv-accent) 12%, transparent);
  transform: rotate(2deg);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
@media (max-width: 767px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 2rem; }
  .hero-photo { width: 140px; height: 140px; order: -1; }
}

/* ---------- Dugmad ---------- */
.btn-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.2rem; border-radius: 999px; font-weight: 600;
  border: 1px solid var(--vv-border); color: inherit !important;
  background: var(--vv-card); text-decoration: none !important;
  transition: transform .15s, box-shadow .2s, border-color .2s;
}
.btn-pill:hover { transform: translateY(-2px); box-shadow: var(--vv-shadow); border-color: var(--vv-accent); }
.btn-pill.primary {
  background: linear-gradient(135deg, var(--vv-accent), var(--vv-accent-2));
  border-color: transparent; color: #fff !important;
}

/* ---------- Kartice ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}
.vv-card {
  background: var(--vv-card);
  border: 1px solid var(--vv-border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--vv-shadow);
  transition: transform .2s, border-color .2s;
  color: inherit !important;
  text-decoration: none !important;
  display: block;
}
a.vv-card:hover, .vv-card.hover:hover { transform: translateY(-4px); border-color: var(--vv-accent); }
.vv-card .icon {
  display: inline-grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: .75rem; margin-bottom: 1rem;
  font-size: 1.3rem; color: var(--vv-accent);
  background: color-mix(in srgb, var(--vv-accent) 12%, transparent);
}
.vv-card h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
.vv-card p { margin: 0; color: var(--vv-muted); font-size: .95rem; }

/* ---------- Statistika ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 2rem 0; }
.stat { padding: 1.25rem; border-radius: 1rem; background: var(--vv-surface); border: 1px solid var(--vv-border); }
.stat .num { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--vv-accent); line-height: 1; }
.stat .label { color: var(--vv-muted); font-size: .9rem; margin-top: .35rem; }

/* ---------- Oznake ---------- */
.tag {
  display: inline-block; font-size: .78rem; font-weight: 600;
  padding: .15rem .6rem; border-radius: 999px; margin: 0 .3rem .3rem 0;
  color: var(--vv-accent); background: color-mix(in srgb, var(--vv-accent) 10%, transparent);
}

/* ---------- Publikacije ---------- */
.pub {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem;
  padding: 1.25rem 0; border-bottom: 1px solid var(--vv-border);
}
.pub:last-child { border-bottom: 0; }
.pub .year { font-weight: 700; color: var(--vv-accent); font-variant-numeric: tabular-nums; }
.pub .ptitle { font-weight: 600; font-size: 1.05rem; margin-bottom: .2rem; }
.pub .authors, .pub .venue { color: var(--vv-muted); font-size: .93rem; }
.pub .venue { font-style: italic; }
.pub .links { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.pub .links a {
  font-size: .78rem; font-weight: 600; padding: .2rem .65rem; border-radius: 999px;
  border: 1px solid var(--vv-border); color: inherit; text-decoration: none;
}
.pub .links a:hover { border-color: var(--vv-accent); color: var(--vv-accent); }

/* ---------- Vremenska linija (CV) ---------- */
.timeline { position: relative; margin: 1.5rem 0 2.5rem; padding-left: 1.75rem; }
.timeline::before {
  content: ""; position: absolute; left: .4rem; top: .4rem; bottom: .4rem; width: 2px;
  background: linear-gradient(var(--vv-accent), var(--vv-accent-2));
  border-radius: 2px; opacity: .5;
}
.tl-item { position: relative; margin-bottom: 1.5rem; }
.tl-item::before {
  content: ""; position: absolute; left: -1.75rem; top: .45rem;
  width: .85rem; height: .85rem; border-radius: 50%;
  background: var(--vv-card); border: 3px solid var(--vv-accent);
}
.tl-item .when { font-size: .85rem; font-weight: 600; color: var(--vv-accent); }
.tl-item .what { font-weight: 700; }
.tl-item .where { color: var(--vv-muted); font-size: .95rem; }

/* ---------- Sekcije ---------- */
.section-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-top: 2.5rem;
}
.section-title a { font-size: .95rem; font-weight: 600; }
h2 { border-bottom: 0 !important; margin-top: 2.5rem; }

/* ---------- Footer ---------- */
.nav-footer { border-top: 1px solid var(--vv-border); font-size: .9rem; }

/* ---------- Animacija ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero, .card-grid, .stats { animation: rise .6s ease both; }
  .card-grid { animation-delay: .1s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* Kompaktni pasusi unutar publikacija i vremenske linije */
.pub p, .tl-item p { margin: 0 0 .15rem; }
.vv-card .tag { margin-bottom: .6rem; }
.vv-card ul { padding-left: 1.1rem; margin: 0; }
.vv-card li { color: var(--vv-muted); font-size: .95rem; }
