/* ============================================================
   VESTI PAGE — v2 — editorial magazine
   Spirit of Youth · District Sensation
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   1. PAGE HERO
══════════════════════════════════════════════════════════ */

.vesti-page-hero {
  background: var(--color-dark);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.vesti-page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 85% 50%, rgba(124,205,221,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 55% at 10% 85%, rgba(64,130,146,0.08) 0%, transparent 60%);
  pointer-events: none;
}
/* Grid texture */
.vesti-page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,205,221,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,205,221,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; z-index: 0;
}
.vesti-hero-accent {
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(124,205,221,0.35) 25%,
    rgba(124,205,221,0.35) 75%,
    transparent 100%
  );
}
.vesti-hero-inner {
  position: relative; z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-8);
}
.vesti-hero-text .eyebrow { margin-bottom: var(--space-4); }
.vesti-hero-text h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--color-white);
  line-height: 1; margin-bottom: var(--space-4);
  letter-spacing: -0.035em;
}
.vesti-hero-text p {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.4);
  max-width: 400px;
  line-height: 1.7;
}
/* Broj vesti — desno u heroju */
.vesti-hero-count {
  flex-shrink: 0;
  text-align: right;
  padding-bottom: 6px;
}
.vesti-hero-count-num {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: var(--weight-black);
  color: rgba(255,255,255,0.06);
  letter-spacing: -0.05em;
  line-height: 1;
  display: block;
}
.vesti-hero-count-label {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.2);
}

/* ══════════════════════════════════════════════════════════
   2. ISTAKNUTA VEST — feature article
══════════════════════════════════════════════════════════ */

.vesti-main { background: var(--color-white); }

.vesti-hero-card {
  display: grid;
  grid-template-columns: 72px 1.1fr 1fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  text-decoration: none;
  min-height: 420px;
  margin-bottom: var(--space-5);
  transition:
    box-shadow 0.4s var(--ease-out),
    border-color 0.3s,
    transform 0.35s var(--ease-out);
}
.vesti-hero-card:hover {
  box-shadow: 0 28px 90px rgba(10,43,64,0.15);
  border-color: transparent;
  transform: translateY(-4px);
}

/* Broj */
.vhc-number {
  display: flex; align-items: flex-start; justify-content: center;
  padding: var(--space-6) 0 0;
  font-family: var(--font-heading); font-size: 11px;
  font-weight: var(--weight-black); letter-spacing: 0.12em;
  color: var(--color-accent);
  background: var(--color-off-white);
  border-right: 1px solid var(--color-border);
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}
.vesti-hero-card:hover .vhc-number {
  background: rgba(124,205,221,0.07);
}

/* Slika */
.vhc-image { position: relative; overflow: hidden; }
.vhc-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.8s var(--ease-out);
}
.vesti-hero-card:hover .vhc-image img { transform: scale(1.07); }

/* Overlay: jači, više dubine */
.vhc-image-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(10,43,64,0.55) 0%, transparent 70%),
    linear-gradient(to top, rgba(10,43,64,0.4) 0%, transparent 50%);
}
.vhc-badge {
  position: absolute; top: var(--space-5); left: var(--space-5);
  font-family: var(--font-heading); font-size: 9px;
  font-weight: var(--weight-black); text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--color-accent); color: var(--color-dark);
  padding: 5px 14px; border-radius: 100px;
}

/* Body */
.vhc-body {
  padding: var(--space-9) var(--space-8);
  display: flex; flex-direction: column; justify-content: center;
  gap: var(--space-5);
  border-left: 1px solid var(--color-border);
  background: var(--color-white);
  transition: background 0.3s;
}
.vhc-meta { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.vhc-tag {
  font-family: var(--font-heading); font-size: 9px;
  font-weight: var(--weight-black); text-transform: uppercase;
  letter-spacing: 0.13em; color: var(--color-mid);
  background: rgba(64,130,146,0.08);
  padding: 4px 12px; border-radius: 100px;
  border: 1px solid rgba(64,130,146,0.18);
}
.vhc-date {
  font-size: 11px; font-weight: var(--weight-medium);
  color: var(--color-text-muted); text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Naslov — veći, dominantniji */
.vhc-title {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: var(--weight-bold);
  color: var(--color-text-dark);
  line-height: 1.18; margin: 0;
  letter-spacing: -0.03em;
  transition: color 0.25s;
}
.vesti-hero-card:hover .vhc-title { color: var(--color-accent); }

/* Separator između naslova i excerpta */
.vhc-sep {
  width: 32px; height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  opacity: 0.5;
  flex-shrink: 0;
}

.vhc-excerpt {
  font-size: 14px; line-height: 1.85;
  color: var(--color-text-body); margin: 0;
}

/* CTA link */
.vhc-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-size: 11px;
  font-weight: var(--weight-black); text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--color-accent);
  margin-top: var(--space-2);
  border-bottom: 1px solid rgba(124,205,221,0.3);
  padding-bottom: 3px;
  align-self: flex-start;
  transition: gap 0.2s, border-color 0.2s;
}
.vesti-hero-card:hover .vhc-cta {
  gap: 14px;
  border-color: var(--color-accent);
}
.vhc-cta svg { flex-shrink: 0; transition: transform 0.2s; }
.vesti-hero-card:hover .vhc-cta svg { transform: translateX(3px); }


/* ══════════════════════════════════════════════════════════
   3. DIVIDER
══════════════════════════════════════════════════════════ */

.vesti-divider {
  display: flex; align-items: center; gap: var(--space-5);
  margin: var(--space-8) 0 var(--space-7);
}
.vesti-divider-line { flex: 1; height: 1px; background: var(--color-border); }
.vesti-divider-label {
  font-family: var(--font-heading); font-size: 10px;
  font-weight: var(--weight-black); text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--color-text-muted);
  white-space: nowrap;
}


/* ══════════════════════════════════════════════════════════
   4. LISTA VESTI — editorial rows
══════════════════════════════════════════════════════════ */

.vesti-list {
  display: flex; flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); overflow: hidden;
  background: var(--color-white);
  margin-bottom: var(--space-3);
}

.vesti-row {
  display: grid;
  grid-template-columns: 72px 160px 1fr 64px;
  align-items: stretch;
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  min-height: 140px;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}
.vesti-row:last-child { border-bottom: none; }
.vesti-row:hover { background: var(--color-off-white); }

/* Left accent bar */
.vesti-row::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--color-accent);
  transform: scaleY(0);
  transition: transform 0.35s var(--ease-out);
  transform-origin: center;
  z-index: 1;
}
.vesti-row:hover::before { transform: scaleY(1); }

/* Broj */
.vr-number {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 11px;
  font-weight: var(--weight-black); letter-spacing: 0.12em;
  color: var(--color-accent); opacity: 0.4;
  background: var(--color-off-white);
  border-right: 1px solid var(--color-border);
  flex-shrink: 0;
  transition: opacity 0.2s, background 0.25s;
}
.vesti-row:hover .vr-number {
  opacity: 1;
  background: rgba(124,205,221,0.06);
}

/* Slika */
.vr-image {
  overflow: hidden; flex-shrink: 0;
  border-right: 1px solid var(--color-border);
  position: relative;
}
.vr-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.55s var(--ease-out);
  filter: saturate(0.85);
}
.vesti-row:hover .vr-image img {
  transform: scale(1.08);
  filter: saturate(1);
}

/* Content */
.vr-content {
  padding: var(--space-6) var(--space-7);
  display: flex; flex-direction: column; gap: var(--space-3);
  justify-content: center;
}
.vr-meta { display: flex; align-items: center; gap: var(--space-3); }
.vr-tag {
  font-family: var(--font-heading); font-size: 9px;
  font-weight: var(--weight-black); text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--color-mid);
  background: rgba(64,130,146,0.08);
  padding: 3px 10px; border-radius: 100px;
  border: 1px solid rgba(64,130,146,0.15);
}
.vr-date {
  font-size: 10px; font-weight: var(--weight-medium);
  color: var(--color-text-muted); text-transform: uppercase;
  letter-spacing: 0.08em;
}
.vr-title {
  font-size: 17px; font-weight: var(--weight-bold);
  color: var(--color-text-dark); margin: 0; line-height: 1.28;
  letter-spacing: -0.018em;
  transition: color 0.2s;
}
.vesti-row:hover .vr-title { color: var(--color-dark); }
.vr-excerpt {
  font-size: 13px; color: var(--color-text-body);
  line-height: 1.75; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* Arrow */
.vr-action {
  display: flex; align-items: center; justify-content: center;
  border-left: 1px solid var(--color-border);
  color: var(--color-accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s, transform 0.25s var(--ease-out);
  flex-shrink: 0;
}
.vesti-row:hover .vr-action { opacity: 1; transform: translateX(0); }


/* ══════════════════════════════════════════════════════════
   5. RESPONSIVE
══════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
  .vesti-hero-inner { flex-direction: column; align-items: flex-start; }
  .vesti-hero-count { display: none; }

  .vesti-hero-card {
    grid-template-columns: 56px 1fr;
    grid-template-rows: 260px auto;
    min-height: auto;
  }
  .vhc-number { grid-row: 1; grid-column: 1; }
  .vhc-image { grid-row: 1; grid-column: 2; }
  .vhc-body {
    grid-row: 2; grid-column: 1 / -1;
    border-left: none; border-top: 1px solid var(--color-border);
    padding: var(--space-7) var(--space-6);
    gap: var(--space-4);
  }

  .vesti-row { grid-template-columns: 56px 120px 1fr 52px; }
}

@media (max-width: 640px) {
  .vesti-page-hero { padding: 120px 0 56px; }

  .vesti-hero-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 220px auto;
  }
  .vhc-number {
    grid-row: 1; grid-column: 1;
    flex-direction: row; padding: var(--space-3) var(--space-5);
    border-right: none; border-bottom: 1px solid var(--color-border);
  }
  .vhc-image { grid-row: 2; grid-column: 1; }
  .vhc-body {
    grid-row: 3; grid-column: 1;
    padding: var(--space-5);
  }

  .vesti-row { grid-template-columns: 44px 1fr 44px; }
  .vr-image { display: none; }
  .vr-content { padding: var(--space-4) var(--space-4); }
}
