/* ==========================================================================
   Mojegazdinstvo — Vesti (News) rubrika
   Reference: docs/PRD_VESTI_REFACTOR.md (sekcija 8)
   Tokeni: themes/wowonder/custom/css/style.css (:root sekcija)
   Stil: Feedly classic list view + moderan single-vesti read page
   ========================================================================== */

/* ====== LAYOUT ============================================================ */

.agro-vesti-page,
.agro-vest-page {
  background: var(--agro-surface);
  min-height: 100vh;
  padding-bottom: 48px;
}

.agro-vesti-page__container {
  display: grid;
  gap: 24px;
  grid-template-columns: 260px minmax(0, 1fr) 300px;
  margin: 0 auto;
  max-width: 1440px;
  padding: 24px 16px;
}

.agro-vesti-page__main {
  min-width: 0;
}

.agro-vesti-page__sidebar-right {
  align-self: start;
  background: var(--agro-elevated, #fff);
  border: 1px solid var(--agro-border, #e5e7eb);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 16px;
  position: sticky;
  top: 24px;
  scrollbar-width: thin;
}

.agro-vesti-page__sidebar-right {
  scrollbar-color: rgba(100, 116, 139, 0.2) transparent;
}

.agro-vesti-page__sidebar-right::-webkit-scrollbar {
  width: 5px;
}

.agro-vesti-page__sidebar-right::-webkit-scrollbar-track {
  background: transparent;
}

.agro-vesti-page__sidebar-right::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.18);
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.agro-vesti-page__sidebar-right:hover::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.35);
}

.agro-vesti-page__sidebar-right::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.6);
}

.agro-vesti-sidebar-right__close {
  display: none;
}

@media (max-width: 1199px) {
  .agro-vesti-page__container {
    grid-template-columns: 240px minmax(0, 1fr) 280px;
    gap: 16px;
  }
}

@media (max-width: 991px) {
  .agro-vesti-page__container { grid-template-columns: 1fr; }
  .agro-vesti-page__sidebar-left { display: none; }

  /* Desni sidebar postaje drawer */
  .agro-vesti-page__sidebar-right {
    bottom: 0;
    box-shadow: -8px 0 24px rgba(15, 23, 42, 0.18);
    height: 100vh;
    max-height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0.0, 0.2, 1);
    width: min(320px, 88vw);
    z-index: 1040;
    border-radius: 14px 0 0 14px;
    border-right: 0;
  }
  .agro-vesti-page__sidebar-right.is-open {
    transform: translateX(0);
  }
  .agro-vesti-sidebar-right__close {
    align-items: center;
    align-self: flex-end;
    background: var(--agro-surface, #f8fafc);
    border: 1px solid var(--agro-border, #e5e7eb);
    border-radius: 8px;
    color: var(--agro-text-muted, #64748b);
    cursor: pointer;
    display: flex;
    height: 36px;
    justify-content: center;
    margin-bottom: -4px;
    width: 36px;
  }
  .agro-vesti-sidebar-backdrop {
    background: rgba(15, 23, 42, 0.45);
    bottom: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transition: opacity 0.2s ease;
    z-index: 1030;
  }
  .agro-vesti-sidebar-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 992px) {
  .agro-vesti-sidebar-backdrop { display: none !important; }
}

/* ====== HERO HEADER (listing) ============================================= */

.agro-vesti-hero {
  margin-bottom: 16px;
}

.agro-vesti-hero__title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 4px;
}

.agro-vesti-hero__title {
  align-items: center;
  color: var(--agro-text);
  display: inline-flex;
  font-family: var(--agro-font-display, inherit);
  font-size: 28px;
  font-weight: 700;
  gap: 12px;
  letter-spacing: -0.01em;
  margin: 0;
}

.agro-vesti-hero__icon {
  color: var(--agro-primary);
  flex-shrink: 0;
}

.agro-vesti-hero__subtitle {
  color: var(--agro-text-muted);
  font-size: 15px;
  margin: 0;
}

.agro-vesti-hero__cta {
  align-items: center;
  background: var(--agro-primary);
  border-radius: var(--agro-radius);
  color: #fff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 6px;
  padding: 10px 18px;
  text-decoration: none;
  transition: filter 0.15s ease;
}

.agro-vesti-hero__cta:hover {
  filter: brightness(1.1);
}

/* ====== STICKY FILTER BAR ================================================ */

.agro-vesti-filterbar {
  background: var(--agro-surface-card);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  margin-bottom: 16px;
  padding: 14px 18px;
  position: sticky;
  top: 64px;
  z-index: 10;
}

.agro-vesti-filterbar__row {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.agro-vesti-search {
  align-items: center;
  background: var(--agro-surface);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  display: flex;
  flex: 1;
  gap: 8px;
  padding: 8px 12px;
  transition: border-color 0.15s ease;
}

.agro-vesti-search:focus-within {
  border-color: var(--agro-primary);
}

.agro-vesti-search svg {
  color: var(--agro-text-muted);
  flex-shrink: 0;
}

.agro-vesti-search input {
  background: transparent;
  border: 0;
  flex: 1;
  font-size: 14px;
  outline: 0;
}

.agro-vesti-sort {
  align-items: center;
  display: flex;
  gap: 6px;
}

.agro-vesti-sort__label {
  color: var(--agro-text-muted);
  font-size: 13px;
}

.agro-vesti-sort__select {
  background: var(--agro-surface);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  color: var(--agro-text);
  font-size: 13px;
  padding: 7px 10px;
}

.agro-vesti-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agro-vesti-chip {
  background: var(--agro-surface);
  border: 1px solid var(--agro-border);
  border-radius: 999px;
  color: var(--chip-color, var(--agro-text-secondary, var(--agro-text)));
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.agro-vesti-chip:hover {
  background: color-mix(in srgb, var(--chip-color, var(--agro-primary)) 10%, transparent);
  border-color: var(--chip-color, var(--agro-primary));
}

.agro-vesti-chip--active {
  background: var(--chip-color, var(--agro-primary));
  border-color: var(--chip-color, var(--agro-primary));
  color: #fff;
}

@media (max-width: 768px) {
  .agro-vesti-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .agro-vesti-chip {
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .agro-vesti-filterbar__row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ====== FEATURED CARD ===================================================== */

.agro-vesti-featured-section {
  margin-bottom: 24px;
}

.agro-vesti-featured {
  background: var(--agro-surface-card);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
}

.agro-vesti-featured__hero {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--agro-surface);
  overflow: hidden;
}

.agro-vesti-featured__hero img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.agro-vesti-featured__hero-fallback {
  align-items: center;
  background: linear-gradient(135deg, var(--agro-primary), color-mix(in srgb, var(--agro-primary) 60%, #000));
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  font-size: 18px;
  font-weight: 700;
  height: 100%;
  justify-content: center;
  text-transform: uppercase;
  width: 100%;
}

.agro-vesti-featured__badge {
  background: var(--agro-accent-amber, #FFB300);
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  left: 12px;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  position: absolute;
  top: 12px;
}

.agro-vesti-featured__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px;
}

.agro-vesti-featured__title {
  color: var(--agro-text);
  font-family: var(--agro-font-display, inherit);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}

.agro-vesti-featured__title a {
  color: inherit;
  text-decoration: none;
}

.agro-vesti-featured__title a:hover {
  color: var(--agro-primary);
}

.agro-vesti-featured__excerpt {
  color: var(--agro-text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .agro-vesti-featured {
    grid-template-columns: 1fr;
  }
  .agro-vesti-featured__title {
    font-size: 22px;
  }
}

/* ====== ARTICLE CARD (Feedly classic) ===================================== */

.agro-vesti-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.agro-vesti-card {
  background: var(--agro-surface-card);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  display: grid;
  gap: 16px;
  grid-template-columns: 180px 1fr;
  overflow: hidden;
  padding: 16px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.agro-vesti-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.agro-vesti-card__thumb {
  aspect-ratio: 4 / 3;
  background: var(--agro-surface);
  border-radius: 8px;
  display: block;
  overflow: hidden;
  position: relative;
}

.agro-vesti-card__thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.agro-vesti-card__thumb-fallback {
  align-items: center;
  background: linear-gradient(135deg, var(--agro-primary), color-mix(in srgb, var(--agro-primary) 60%, #000));
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  font-size: 12px;
  font-weight: 600;
  height: 100%;
  justify-content: center;
  text-transform: uppercase;
  width: 100%;
}

.agro-vesti-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.agro-vesti-card__header {
  align-items: center;
  color: var(--agro-text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 12px;
}

.agro-vesti-card__time {
  color: var(--agro-text-muted);
}

.agro-vesti-card__title {
  color: var(--agro-text);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.35;
  margin: 0;
}

.agro-vesti-card__title a {
  color: inherit;
  text-decoration: none;
}

.agro-vesti-card__title a:hover {
  color: var(--agro-primary);
}

.agro-vesti-card__excerpt {
  color: var(--agro-text-muted);
  display: -webkit-box;
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agro-vesti-card__meta {
  align-items: center;
  color: var(--agro-text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 12px;
  margin-top: 4px;
}

.agro-vesti-card__author {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.agro-vesti-card__avatar {
  border-radius: 50%;
  height: 20px;
  object-fit: cover;
  width: 20px;
}

@media (max-width: 640px) {
  .agro-vesti-card {
    grid-template-columns: 100px 1fr;
    padding: 12px;
  }
  .agro-vesti-card__title { font-size: 16px; }
  .agro-vesti-card__excerpt { -webkit-line-clamp: 1; }
}

/* ====== CATEGORY CHIP (reusable) ========================================== */

.agro-vesti-category-chip {
  background: color-mix(in srgb, var(--chip-color, var(--agro-primary)) 12%, transparent);
  border-radius: 999px;
  color: var(--chip-color, var(--agro-primary));
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.15s ease;
}

.agro-vesti-category-chip:hover {
  background: color-mix(in srgb, var(--chip-color, var(--agro-primary)) 24%, transparent);
}

.agro-vesti-category-chip--sm { font-size: 11px; padding: 2px 8px; }

.agro-vesti-category-chip--lg { font-size: 13px; padding: 5px 14px; }

/* ====== EMPTY STATE ======================================================= */

.agro-vesti-empty {
  align-items: center;
  background: var(--agro-surface-card);
  border: 1px dashed var(--agro-border);
  border-radius: var(--agro-radius);
  color: var(--agro-text-muted);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 56px 24px;
  text-align: center;
}

.agro-vesti-empty svg { color: var(--agro-text-muted); opacity: 0.4; }

.agro-vesti-empty__title {
  color: var(--agro-text);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.agro-vesti-empty__hint {
  color: var(--agro-text-muted);
  font-size: 14px;
  margin: 0;
}

.agro-vesti-empty__cta {
  align-items: center;
  background: var(--agro-primary);
  border-radius: var(--agro-radius);
  color: #fff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  padding: 10px 20px;
  text-decoration: none;
  transition: filter 0.15s ease;
}

.agro-vesti-empty__cta:hover { filter: brightness(1.1); color: #fff; }

/* ====== LOAD MORE ========================================================= */

.agro-vesti-loadmore {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.agro-vesti-loadmore__btn {
  background: var(--agro-surface-card);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  color: var(--agro-text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 32px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.agro-vesti-loadmore__btn:hover {
  background: var(--agro-primary);
  border-color: var(--agro-primary);
  color: #fff;
}

.agro-vesti-loadmore__btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* ==========================================================================
   DETAIL PAGE
   ========================================================================== */

/* Reading progress bar — z-index 1031 (iznad Bootstrap sticky nav 1030, ispod modal-a 1050) */
.agro-vest-progress {
  background: transparent;
  height: 3px;
  left: 0;
  position: fixed;
  right: 0;
  top: 60px;
  z-index: 1031;
}

/* Gradient: primary dominira (60%), amber kao end signal (skoro pri kraju) */
.agro-vest-progress__bar {
  background: linear-gradient(90deg,
    var(--agro-primary) 0%,
    var(--agro-primary) 60%,
    var(--agro-accent-amber, #FFB300) 100%);
  height: 100%;
  transition: width 0.05s linear;
  width: 0;
}

.agro-vest {
  margin: 0 auto;
  max-width: 1280px;
  padding: 24px 16px 48px;
}

.agro-vest__hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--agro-border, #e5e7eb);
}

.agro-vest__hero-image {
  aspect-ratio: 21 / 9;
  background: var(--agro-surface);
  border-radius: var(--agro-radius-lg, 16px);
  overflow: hidden;
}

.agro-vest__hero-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.agro-vest__hero-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 auto;
  max-width: 820px;
  text-align: center;
}

/* Breadcrumb sada živi u topbar-u uz Nazad button — kompaktan inline red */
.agro-vest__breadcrumb {
  align-items: center;
  color: var(--agro-text-muted, #64748b);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 6px;
  line-height: 1.4;
  margin: 0;
  padding: 0;
}

.agro-vest__breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.agro-vest__breadcrumb a:hover,
.agro-vest__breadcrumb a:focus-visible {
  color: var(--agro-primary);
  text-decoration: underline;
}

.agro-vest__breadcrumb > span:last-of-type ~ a,
.agro-vest__breadcrumb a:last-child {
  color: var(--agro-text, #1f2937);
  font-weight: 600;
}

/* Kicker — modern section label red (kategorija + featured badge) */
.agro-vest__kicker {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 4px;
}

/* NYT/FT-style section label: bojin dot + uppercase tekst, nije pill */
.agro-vest__section-label {
  align-items: center;
  color: var(--section-color, var(--agro-primary, #2d7a3d));
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  letter-spacing: 0.12em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.15s ease;
}

.agro-vest__section-label:hover,
.agro-vest__section-label:focus-visible {
  opacity: 0.78;
  text-decoration: none;
}

.agro-vest__section-dot {
  background: var(--section-color, var(--agro-primary, #2d7a3d));
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  height: 8px;
  width: 8px;
}

.agro-vest__title {
  color: var(--agro-text, #1f2937);
  font-family: var(--agro-font-display, 'Roboto Slab', Georgia, serif);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

.agro-vest__lead {
  color: var(--agro-text-secondary, #475569);
  font-family: var(--agro-font-display, 'Roboto Slab', Georgia, serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
  margin: 0;
}

/* Meta red sa separator dotovima (modern news pattern) */
.agro-vest__meta {
  align-items: center;
  color: var(--agro-text-muted, #64748b);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 14px;
  justify-content: center;
  padding-top: 6px;
}

.agro-vest__meta > * {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  position: relative;
}

/* Dot separator između meta stavki — sakri prvi i posle pojavljuje se preko ::before */
.agro-vest__meta > * + *::before {
  background: var(--agro-text-muted, #64748b);
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 3px;
  margin-right: 8px;
  opacity: 0.5;
  width: 3px;
}

.agro-vest__meta svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.agro-vest__author {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.agro-vest__author-avatar {
  border-radius: 50%;
  height: 28px;
  object-fit: cover;
  width: 28px;
}

.agro-vest__author a { color: var(--agro-text); font-weight: 600; text-decoration: none; }

.agro-vest__featured-badge {
  background: var(--agro-accent-amber, #FFB300);
  border-radius: 4px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  text-transform: uppercase;
}

.agro-vest__admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.agro-vest__admin-btn {
  align-items: center;
  background: var(--agro-surface-card);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  color: var(--agro-text);
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
  padding: 8px 14px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.agro-vest__admin-btn:hover { background: var(--agro-primary); border-color: var(--agro-primary); color: #fff; }

/* Body grid: TOC | Content | Similar */
.agro-vest__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  margin: 0 auto;
  max-width: 1280px;
}

.agro-vest__rail {
  font-size: 14px;
}

.agro-vest__rail--left { position: sticky; top: 100px; align-self: start; }
.agro-vest__rail--right { position: sticky; top: 100px; align-self: start; }

.agro-vest__toc {
  background: var(--agro-surface-card);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  margin-bottom: 16px;
  padding: 16px;
}

.agro-vest__toc-title { font-size: 13px; font-weight: 700; margin: 0 0 8px; text-transform: uppercase; }

.agro-vest__toc-list { display: flex; flex-direction: column; gap: 4px; list-style: none; margin: 0; padding: 0; }

.agro-vest__toc-list a {
  border-left: 3px solid transparent;
  color: var(--agro-text-muted);
  display: block;
  font-size: 13px;
  padding: 4px 8px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.agro-vest__toc-list a:hover { color: var(--agro-primary); }

.agro-vest__toc-list a.is-active {
  border-left-color: var(--agro-primary);
  color: var(--agro-primary);
  font-weight: 600;
}

.agro-vest__share {
  background: var(--agro-surface-card);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.agro-vest__share-title { font-size: 13px; font-weight: 700; margin: 0 0 4px; text-transform: uppercase; }

.agro-vest__share-btn {
  align-items: center;
  background: var(--agro-surface);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  color: var(--agro-text-muted);
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  width: 100%;
}

.agro-vest__share-btn:hover {
  background: var(--agro-primary);
  color: #fff;
}

.agro-vest__share-btn--fb:hover { background: #1877F2; }
.agro-vest__share-btn--tw:hover { background: #1DA1F2; }
.agro-vest__share-btn--in:hover { background: #0A66C2; }

/* Copy button success animacija — copy ikona swap-uje na kvačicu, zeleni flash + scale pop.
   Pattern reuse iz GitHub/MDN clipboard dugmadi (feedback vezan za sam button, ne samo toast). */
.agro-vest__share-btn-icon {
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 180ms ease;
}

.agro-vest__share-btn-icon--success {
  position: absolute;
  opacity: 0;
  transform: scale(0.4);
}

.agro-vest__share-btn--copy {
  position: relative;
  overflow: hidden;
}

.agro-vest__share-btn--copy.agro-vest__share-btn--copied {
  background: var(--agro-primary, #2d7a3d) !important;
  border-color: var(--agro-primary, #2d7a3d);
  color: #fff;
  animation: agro-vest-copy-pulse 600ms ease;
}

.agro-vest__share-btn--copy.agro-vest__share-btn--copied .agro-vest__share-btn-icon--default {
  opacity: 0;
  transform: scale(0.4) rotate(-20deg);
}

.agro-vest__share-btn--copy.agro-vest__share-btn--copied .agro-vest__share-btn-icon--success {
  opacity: 1;
  transform: scale(1);
}

@keyframes agro-vest-copy-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(45, 122, 61, 0.5); transform: scale(1); }
  35%  { box-shadow: 0 0 0 8px rgba(45, 122, 61, 0.18); transform: scale(1.08); }
  100% { box-shadow: 0 0 0 0 rgba(45, 122, 61, 0); transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .agro-vest__share-btn--copy.agro-vest__share-btn--copied {
    animation: none;
  }
  .agro-vest__share-btn-icon {
    transition: opacity 120ms linear;
    transform: none !important;
  }
}

/* Article content (main) */
.agro-vest__main {
  max-width: 760px;
}

.agro-vest__content {
  color: var(--agro-text);
  font-size: 18px;
  line-height: 1.75;
}

.agro-vest__content > * + * { margin-top: 18px; }

.agro-vest__content h2 {
  color: var(--agro-primary);
  font-family: var(--agro-font-display, inherit);
  font-size: 24px;
  font-weight: 700;
  margin-top: 36px;
}

.agro-vest__content h3 {
  color: var(--agro-text);
  font-size: 20px;
  font-weight: 700;
  margin-top: 28px;
}

.agro-vest__content p { margin: 0 0 18px; }

.agro-vest__content a {
  color: var(--agro-primary);
  text-decoration: underline;
}

.agro-vest__content img {
  border-radius: 8px;
  margin: 24px 0;
  max-width: 100%;
}

.agro-vest__content blockquote {
  border-left: 4px solid var(--agro-primary);
  color: var(--agro-text-muted);
  font-style: italic;
  margin: 24px 0;
  padding-left: 20px;
}

.agro-vest__content code {
  background: var(--agro-surface);
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
  padding: 2px 6px;
}

.agro-vest__content ul,
.agro-vest__content ol {
  padding-left: 24px;
}

.agro-vest__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.agro-vest__tag {
  background: var(--agro-surface);
  border: 1px solid var(--agro-border);
  border-radius: 999px;
  color: var(--agro-text-muted);
  font-size: 13px;
  padding: 4px 10px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.agro-vest__tag:hover {
  background: var(--agro-primary);
  border-color: var(--agro-primary);
  color: #fff;
}

.agro-vest__actions {
  align-items: center;
  border-top: 1px solid var(--agro-border);
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
}

.agro-vest__react-btn {
  align-items: center;
  background: var(--agro-surface-card);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  color: var(--agro-text-muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 6px;
  padding: 8px 16px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.agro-vest__react-btn:hover:not(:disabled) {
  background: var(--agro-surface);
  border-color: var(--agro-primary);
  color: var(--agro-primary);
}

.agro-vest__react-btn.is-active {
  background: var(--agro-primary);
  border-color: var(--agro-primary);
  color: #fff;
  /* Klik feedback — kratak scale pulse (motion-safe) */
  animation: agro-vest-react-pulse 200ms ease-out;
}

@keyframes agro-vest-react-pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .agro-vest__react-btn.is-active { animation: none; }
}

.agro-vest__react-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Similar articles */
.agro-vest__similar {
  background: var(--agro-surface-card);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  padding: 16px;
}

.agro-vest__similar-title { font-size: 13px; font-weight: 700; margin: 0 0 12px; text-transform: uppercase; }

.agro-vest__similar-list { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }

.agro-vest__similar-link {
  align-items: flex-start;
  color: inherit;
  display: flex;
  gap: 10px;
  text-decoration: none;
}

.agro-vest__similar-thumb {
  border-radius: 6px;
  flex-shrink: 0;
  height: 60px;
  object-fit: cover;
  width: 80px;
}

.agro-vest__similar-body { flex: 1; min-width: 0; }

.agro-vest__similar-name {
  color: var(--agro-text);
  display: -webkit-box;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 4px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.agro-vest__similar-link:hover .agro-vest__similar-name { color: var(--agro-primary); }

.agro-vest__similar-meta { color: var(--agro-text-muted); font-size: 12px; }

/* Komentari */
.agro-vest__comments {
  border-top: 1px solid var(--agro-border);
  margin: 48px auto 0;
  max-width: 760px;
  padding-top: 32px;
}

.agro-vest__comments-title {
  align-items: center;
  display: flex;
  font-size: 18px;
  font-weight: 700;
  gap: 8px;
  margin: 0 0 20px;
}

.agro-vest__comment-form {
  background: var(--agro-surface-card);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
}

.agro-vest__comment-input {
  background: var(--agro-surface);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  color: var(--agro-text);
  font-family: inherit;
  font-size: 14px;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

.agro-vest__comment-input:focus { border-color: var(--agro-primary); outline: 0; }

.agro-vest__comment-form-actions {
  display: flex;
  justify-content: flex-end;
}

.agro-vest__comment-submit {
  background: var(--agro-primary);
  border: 0;
  border-radius: var(--agro-radius);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  transition: filter 0.15s ease;
}

.agro-vest__comment-submit:hover { filter: brightness(1.1); }

.agro-vest__login-prompt {
  background: var(--agro-surface-card);
  border: 1px dashed var(--agro-border);
  border-radius: var(--agro-radius);
  color: var(--agro-text-muted);
  margin-bottom: 24px;
  padding: 16px;
  text-align: center;
}

.agro-vest__login-prompt a { color: var(--agro-primary); font-weight: 600; }

.agro-vest__comments-list { display: flex; flex-direction: column; gap: 16px; }

.agro-vest__comment {
  background: var(--agro-surface-card);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  padding: 14px 18px;
}

.agro-vest__comment--reply {
  background: var(--agro-surface);
  margin-left: 32px;
  margin-top: 8px;
}

.agro-vest__comment-meta {
  color: var(--agro-text-muted);
  display: flex;
  font-size: 12px;
  gap: 12px;
  margin-top: 8px;
}

.agro-vest__comment-deleted { color: var(--agro-text-muted); }

.agro-vest__comments-loadmore {
  background: var(--agro-surface-card);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  color: var(--agro-text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
  padding: 10px 24px;
  width: 100%;
}

.agro-vest__comments-loadmore:hover { background: var(--agro-primary); color: #fff; }

/* Komentar elements (Faza 4) */
.agro-vest__comment-header {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.agro-vest__comment-avatar {
  border-radius: 50%;
  height: 28px;
  object-fit: cover;
  width: 28px;
}

.agro-vest__comment-header strong { color: var(--agro-text); font-size: 14px; }

.agro-vest__comment-header time {
  color: var(--agro-text-muted);
  font-size: 12px;
  margin-left: auto;
}

.agro-vest__comment-body p {
  color: var(--agro-text);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.agro-vest__comment-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.agro-vest__comment-actions .agro-vest__react-btn {
  background: transparent;
  border: 0;
  color: var(--agro-text-muted);
  font-size: 12px;
  padding: 4px 8px;
}

.agro-vest__comment-actions .agro-vest__react-btn:hover:not(:disabled) {
  background: var(--agro-surface);
  border-radius: var(--agro-radius);
  color: var(--agro-primary);
}

.agro-vest__comment-actions .agro-vest__react-btn.is-active {
  background: color-mix(in srgb, var(--agro-primary) 10%, transparent);
  border-radius: var(--agro-radius);
  color: var(--agro-primary);
}

.agro-vest__comment-replies {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.agro-vest__reply-form {
  background: var(--agro-surface);
  border-radius: var(--agro-radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
}

.agro-vest__reply-cancel {
  background: transparent;
  border: 0;
  color: var(--agro-text-muted);
  font-size: 13px;
}

/* Responsive grid breakdown */
@media (max-width: 1199px) {
  .agro-vest__grid {
    grid-template-columns: 1fr 280px;
  }
  .agro-vest__rail--left {
    display: none;
  }
}

@media (max-width: 991px) {
  .agro-vest__grid {
    grid-template-columns: 1fr;
  }
  .agro-vest__rail--right {
    position: static;
  }
  .agro-vest__title { font-size: 28px; }
  .agro-vest__lead { font-size: 17px; }

  /* Mobile: share rail postaje fixed bottom bar sa safe-area (iPhone notch) + backdrop blur */
  .agro-vest__rail--left {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid var(--agro-border);
    bottom: 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    display: block;
    left: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    top: auto;
    z-index: 90;
  }
  .agro-vest__toc { display: none; }
  .agro-vest__share {
    align-items: center;
    background: transparent;
    border: 0;
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: space-around;
    padding: 0;
  }
  .agro-vest__share-title { display: none; }
  .agro-vest__share-btn {
    flex: 1;
    height: 44px;
    max-width: 60px;
  }
  /* Padding bottom na content da bar ne preklapa (sa safe-area za iOS home indicator) */
  .agro-vest__main { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  .agro-vest__hero-image { aspect-ratio: 16 / 9; }
  .agro-vest__title { font-size: 24px; }
  .agro-vest__content { font-size: 16px; }
  .agro-vest__comment--reply { margin-left: 16px; }
}

/* ====== A11y: poštuj prefers-reduced-motion ====== */
@media (prefers-reduced-motion: reduce) {
  .agro-vesti-card,
  .agro-vesti-loadmore__btn,
  .agro-vesti-chip,
  .agro-vest__react-btn,
  .agro-vest__admin-btn,
  .agro-vest__share-btn,
  .agro-vest__tag,
  .agro-vest__similar-link,
  .agro-vesti-hero__cta {
    transition: none !important;
  }
  .agro-vesti-card:hover { transform: none !important; }
  .agro-vest-progress__bar { transition: none !important; }
}

/* ====== Touch targets ≥44px na mobilnoj reakciji + komentari ====== */
@media (max-width: 768px) {
  .agro-vest__react-btn {
    min-height: 44px;
    padding: 10px 16px;
  }
  .agro-vest__comment-actions .agro-vest__react-btn {
    min-height: 36px;
    padding: 8px 12px;
  }
  .agro-vesti-chip {
    min-height: 36px;
    align-items: center;
    display: inline-flex;
  }
}

/* ==========================================================================
   FEEDLY-STYLE RIGHT SIDEBAR — moderna agro adaptacija
   ========================================================================== */

.agro-vesti-sidebar__block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agro-vesti-sidebar__block--row {
  align-items: stretch;
  flex-direction: row;
  gap: 8px;
}

.agro-vesti-sidebar__label {
  align-items: center;
  color: var(--agro-text-muted, #64748b);
  display: flex;
  font-size: 11px;
  font-weight: 700;
  gap: 6px;
  letter-spacing: 0.06em;
  margin: 0;
  text-transform: uppercase;
}

.agro-vesti-sidebar__label--trending {
  color: #d97706;
}

/* ---------- Search ---------- */

.agro-vesti-sidebar__search {
  align-items: center;
  background: var(--agro-surface, #f8fafc);
  border: 1px solid var(--agro-border, #e5e7eb);
  border-radius: 10px;
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.agro-vesti-sidebar__search:focus-within {
  border-color: var(--agro-primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

.agro-vesti-sidebar__search svg {
  color: var(--agro-text-muted, #64748b);
  flex-shrink: 0;
}

.agro-vesti-sidebar__search input {
  background: transparent;
  border: 0;
  color: var(--agro-text);
  flex: 1;
  font-size: 14px;
  min-width: 0;
  outline: none;
  padding: 4px 0;
}

.agro-vesti-sidebar__search-clear {
  background: var(--agro-border, #e5e7eb);
  border: 0;
  border-radius: 50%;
  color: var(--agro-text-muted, #64748b);
  cursor: pointer;
  font-size: 16px;
  height: 20px;
  line-height: 1;
  width: 20px;
}

/* ---------- Sort + Mark-all-read ---------- */

.agro-vesti-sidebar__sort {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.agro-vesti-sidebar__sort-label {
  color: var(--agro-text-muted, #64748b);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agro-vesti-sidebar__sort-select {
  background: var(--agro-surface, #f8fafc);
  border: 1px solid var(--agro-border, #e5e7eb);
  border-radius: 8px;
  color: var(--agro-text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  transition: border-color 0.15s ease;
  width: 100%;
}

.agro-vesti-sidebar__sort-select:focus,
.agro-vesti-sidebar__sort-select:hover {
  border-color: var(--agro-primary);
  outline: none;
}

.agro-vesti-sidebar__mark-all {
  align-items: center;
  align-self: flex-end;
  background: var(--agro-primary);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  margin-top: auto;
  transition: filter 0.15s ease;
  width: 36px;
}

.agro-vesti-sidebar__mark-all:hover {
  filter: brightness(1.1);
}

/* ---------- Period chips ---------- */

.agro-vesti-sidebar__period {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, 1fr);
}

.agro-vesti-sidebar__period-chip {
  background: var(--agro-surface, #f8fafc);
  border: 1px solid var(--agro-border, #e5e7eb);
  border-radius: 8px;
  color: var(--agro-text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 4px;
  transition: all 0.15s ease;
}

.agro-vesti-sidebar__period-chip:hover {
  border-color: var(--agro-primary);
  color: var(--agro-primary);
}

.agro-vesti-sidebar__period-chip.is-active {
  background: var(--agro-primary);
  border-color: var(--agro-primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(46, 125, 50, 0.3);
}

/* ---------- Categories list ---------- */

.agro-vesti-sidebar__cats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.agro-vesti-sidebar__cat {
  align-items: center;
  background: transparent;
  border-radius: 8px;
  color: var(--agro-text);
  display: flex;
  font-size: 13px;
  font-weight: 500;
  gap: 10px;
  min-height: 36px;
  padding: 6px 8px 6px 6px;
  position: relative;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.agro-vesti-sidebar__cat:hover {
  background: var(--agro-surface, #f8fafc);
  color: var(--agro-text);
}

.agro-vesti-sidebar__cat.is-active {
  background: rgba(46, 125, 50, 0.08);
  color: var(--agro-text);
  font-weight: 700;
}

.agro-vesti-sidebar__cat-bar {
  background: var(--cat-color, var(--agro-primary));
  border-radius: 2px;
  flex-shrink: 0;
  height: 18px;
  width: 4px;
}

.agro-vesti-sidebar__cat-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agro-vesti-sidebar__cat-count,
.agro-vesti-sidebar__cat-unread {
  background: var(--agro-border, #e5e7eb);
  border-radius: 10px;
  color: var(--agro-text-muted, #64748b);
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  min-width: 22px;
  padding: 4px 7px;
  text-align: center;
}

.agro-vesti-sidebar__cat-unread {
  background: var(--agro-primary);
  color: #fff;
}

.agro-vesti-sidebar__cat.is-active .agro-vesti-sidebar__cat-count {
  background: var(--cat-color, var(--agro-primary));
  color: #fff;
}

/* Collapse extra categories — show samo prvih N + active */
.agro-vesti-sidebar__cats:not(.is-expanded) li[data-cat-extra="1"] {
  display: none;
}

/* Expanded mode — interni scroll sa fade-out gradijentom umesto outer scroll */
.agro-vesti-sidebar__cats.is-expanded {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 6px;
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0,
    #000 8px,
    #000 calc(100% - 16px),
    transparent 100%);
          mask-image: linear-gradient(to bottom,
    transparent 0,
    #000 8px,
    #000 calc(100% - 16px),
    transparent 100%);
  scroll-behavior: smooth;
  scrollbar-color: rgba(100, 116, 139, 0.25) transparent;
  scrollbar-width: thin;
}

.agro-vesti-sidebar__cats.is-expanded::-webkit-scrollbar {
  width: 4px;
}

.agro-vesti-sidebar__cats.is-expanded::-webkit-scrollbar-track {
  background: transparent;
}

.agro-vesti-sidebar__cats.is-expanded::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.25);
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.agro-vesti-sidebar__cats.is-expanded:hover::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.45);
}

.agro-vesti-sidebar__cats.is-expanded::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.7);
}

/* Mobile drawer ima više prostora — pusti veći max-height */
@media (max-width: 991px) {
  .agro-vesti-sidebar__cats.is-expanded {
    max-height: 420px;
  }
}

/* "Prikaži još N" toggle */
.agro-vesti-sidebar__cats-more {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--agro-primary);
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 600;
  gap: 4px;
  justify-content: center;
  margin-top: 4px;
  padding: 6px 8px;
  transition: background-color 0.15s ease;
  width: 100%;
}

.agro-vesti-sidebar__cats-more:hover {
  background: rgba(46, 125, 50, 0.06);
}

.agro-vesti-sidebar__cats-more svg {
  transition: transform 0.2s ease;
}

.agro-vesti-sidebar__cats-more[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Toggle za celu KATEGORIJE sekciju (header chevron) */
.agro-vesti-sidebar__label--toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  text-align: left;
  user-select: none;
}

.agro-vesti-sidebar__chevron {
  transition: transform 0.2s ease;
}

.agro-vesti-sidebar__block--cats[data-collapsed="1"] .agro-vesti-sidebar__chevron {
  transform: rotate(-90deg);
}

.agro-vesti-sidebar__block--cats[data-collapsed="1"] .agro-vesti-sidebar__cats,
.agro-vesti-sidebar__block--cats[data-collapsed="1"] .agro-vesti-sidebar__cats-more {
  display: none;
}

/* ---------- Saved bookmarks link ---------- */

.agro-vesti-sidebar__saved-link {
  align-items: center;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.06), rgba(217, 119, 6, 0.06));
  border: 1px solid var(--agro-border, #e5e7eb);
  border-radius: 10px;
  color: var(--agro-text);
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.agro-vesti-sidebar__saved-link:hover {
  border-color: var(--agro-primary);
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.12), rgba(217, 119, 6, 0.12));
  color: var(--agro-text);
  transform: translateX(2px);
}

.agro-vesti-sidebar__saved-link svg {
  color: var(--agro-primary);
  flex-shrink: 0;
}

.agro-vesti-sidebar__saved-label {
  flex: 1;
}

.agro-vesti-sidebar__saved-count {
  background: var(--agro-primary);
  border-radius: 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 22px;
  padding: 3px 7px;
  text-align: center;
}

/* ==========================================================================
   BACK BUTTON — uniformni agro pill, koristi se na svim vesti podstranicama
   (ekvivalent .agro-forum-back-btn iz forum modula)
   ========================================================================== */

.agro-back-btn {
  align-items: center;
  background: var(--agro-surface-card, #fff);
  border: 1px solid var(--agro-border, #e5e7eb);
  border-radius: 999px;
  color: var(--agro-text-secondary, #64748b);
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
  line-height: 1;
  padding: 8px 14px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.agro-back-btn:hover,
.agro-back-btn:focus-visible {
  background: var(--agro-surface-soft, #f6f8f4);
  border-color: var(--agro-primary);
  color: var(--agro-primary);
  text-decoration: none;
}

.agro-vest__topbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

/* Tanka vertikalna razdvojnica između Nazad button-a i breadcrumb-a */
.agro-vest__topbar .agro-back-btn + .agro-vest__breadcrumb {
  border-left: 1px solid var(--agro-border, #e5e7eb);
  padding-left: 14px;
}

@media (max-width: 575px) {
  .agro-vest__topbar {
    gap: 10px;
  }
  .agro-vest__topbar .agro-back-btn + .agro-vest__breadcrumb {
    border-left: none;
    padding-left: 0;
    font-size: 12px;
  }
}

/* ==========================================================================
   RIGHT COLUMN — wrapper za filter sidebar + trending (popravlja preklapanje)
   ========================================================================== */

.agro-vesti-page__right-col {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

@media (max-width: 991px) {
  .agro-vesti-page__right-col {
    /* Mobile: filter sidebar postaje drawer (fixed), trending ostaje u flow */
    display: contents;
  }
}

/* ==========================================================================
   TRENDING — standalone card u agro stilu (prati tokene boja platforme)
   ========================================================================== */

.agro-vesti-trending-card {
  background: var(--agro-elevated, #fff);
  border: 1px solid var(--agro-border, #e5e7eb);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.agro-vesti-trending-card__label {
  color: var(--agro-text-muted, #64748b);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0;
  text-transform: uppercase;
}

.agro-vesti-trending-card__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.agro-vesti-trending-card__link {
  align-items: flex-start;
  border-radius: 8px;
  color: var(--agro-text);
  display: flex;
  gap: 10px;
  padding: 8px 6px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.agro-vesti-trending-card__link:hover {
  background: var(--agro-surface, #f8fafc);
  color: var(--agro-text);
}

.agro-vesti-trending-card__rank {
  align-items: center;
  background: var(--agro-surface, #f1f5f9);
  border-radius: 6px;
  color: var(--agro-text-muted, #64748b);
  display: inline-flex;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  height: 22px;
  justify-content: center;
  line-height: 1;
  min-width: 22px;
  padding: 0 6px;
}

/* Top 3 dobijaju zelenu akcent boju (platform primary, ne narandžastu) */
.agro-vesti-trending-card__item:nth-child(-n+3) .agro-vesti-trending-card__rank {
  background: rgba(46, 125, 50, 0.1);
  color: var(--agro-primary);
}

.agro-vesti-trending-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.agro-vesti-trending-card__news-title {
  color: var(--agro-text);
  display: -webkit-box;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agro-vesti-trending-card__link:hover .agro-vesti-trending-card__news-title {
  color: var(--agro-primary);
}

.agro-vesti-trending-card__meta {
  align-items: center;
  color: var(--agro-text-muted, #64748b);
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 500;
  gap: 4px;
}

.agro-vesti-trending-card__metric {
  align-items: center;
  color: var(--agro-text-muted, #64748b);
  display: inline-flex;
  gap: 3px;
  white-space: nowrap;
}

.agro-vesti-trending-card__metric svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.agro-vesti-trending-card__sep {
  color: var(--agro-border, #cbd5e1);
}

.agro-vesti-trending-card__yday {
  color: var(--agro-text-muted, #94a3b8);
  font-style: italic;
}

.agro-vesti-trending-card__item.is-yesterday .agro-vesti-trending-card__news-title,
.agro-vesti-trending-card__item.is-yesterday .agro-vesti-trending-card__rank {
  opacity: 0.7;
}

/* ==========================================================================
   HERO — unread badge + mobile filter trigger + active filter pills
   ========================================================================== */

.agro-vesti-hero__unread-badge {
  background: var(--agro-primary);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 9px;
  vertical-align: middle;
}

.agro-vesti-hero__actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.agro-vesti-mobile-filter-trigger {
  align-items: center;
  background: var(--agro-surface, #f8fafc);
  border: 1px solid var(--agro-border, #e5e7eb);
  border-radius: 8px;
  color: var(--agro-text);
  cursor: pointer;
  display: none;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
  padding: 8px 14px;
  transition: all 0.15s ease;
}

.agro-vesti-mobile-filter-trigger:hover {
  border-color: var(--agro-primary);
  color: var(--agro-primary);
}

@media (max-width: 991px) {
  .agro-vesti-mobile-filter-trigger {
    display: inline-flex;
  }
}

.agro-vesti-hero__active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.agro-vesti-active-pill {
  align-items: center;
  background: rgba(46, 125, 50, 0.08);
  border: 1px solid rgba(46, 125, 50, 0.18);
  border-radius: 999px;
  color: var(--agro-primary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  gap: 4px;
  padding: 4px 4px 4px 10px;
  text-decoration: none;
}

.agro-vesti-active-pill--clear {
  background: transparent;
  border: 1px dashed var(--agro-border, #e5e7eb);
  color: var(--agro-text-muted, #64748b);
  padding: 4px 12px;
}

.agro-vesti-active-pill--clear:hover {
  border-color: var(--agro-primary);
  color: var(--agro-primary);
}

.agro-vesti-active-pill__close {
  align-items: center;
  background: rgba(46, 125, 50, 0.12);
  border: 0;
  border-radius: 50%;
  color: var(--agro-primary);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  height: 18px;
  justify-content: center;
  line-height: 1;
  width: 18px;
}

.agro-vesti-active-pill__close:hover {
  background: var(--agro-primary);
  color: #fff;
}

/* ==========================================================================
   CARD STATES — read (faded), bookmarked, bookmark button
   ========================================================================== */

.agro-vesti-card__bookmark {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--agro-text-muted, #64748b);
  cursor: pointer;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  margin-left: auto;
  transition: all 0.15s ease;
  width: 32px;
}

.agro-vesti-card__bookmark:hover {
  background: rgba(46, 125, 50, 0.08);
  color: var(--agro-primary);
}

.agro-vesti-card__bookmark.is-active {
  color: var(--agro-primary);
}

.agro-vesti-card__bookmark.is-active:hover {
  color: #d97706;
}

.agro-vesti-card--read .agro-vesti-card__title a,
.agro-vesti-featured--read .agro-vesti-featured__title a {
  color: var(--agro-text-muted, #64748b);
}

.agro-vesti-card--read .agro-vesti-card__thumb,
.agro-vesti-featured--read .agro-vesti-featured__hero {
  opacity: 0.75;
}

.agro-vesti-card--read .agro-vesti-card__excerpt {
  color: var(--agro-text-muted, #64748b);
  opacity: 0.85;
}

/* Card header layout sa bookmark dugmetom */
.agro-vesti-card__header {
  align-items: center;
}

.agro-vesti-featured__header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

/* Featured bookmark u headeru featured-a */
.agro-vesti-featured__header .agro-vesti-card__bookmark {
  margin-left: auto;
}

/* ==========================================================================
   NEWS PROSE — strukturisan single vest sadržaj
   (Migracija 187: intro_text + intro_image + body_text + body_image + conclusion_text)
   ========================================================================== */

.agro-vest__prose {
  color: var(--agro-text, #1f2937);
  font-family: var(--agro-font-prose, Georgia, 'Times New Roman', serif);
  font-size: 18px;
  line-height: 1.7;
  max-width: 720px;
}

@media (max-width: 768px) {
  .agro-vest__prose {
    font-size: 16.5px;
    line-height: 1.65;
  }
}

.agro-vest__prose p {
  margin: 0 0 1.1em 0;
}

.agro-vest__prose p:last-child {
  margin-bottom: 0;
}

.agro-vest__prose h2 {
  color: var(--agro-text, #0f172a);
  font-family: var(--agro-font-display, inherit);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2em 0 0.6em;
  line-height: 1.25;
}

.agro-vest__prose h3 {
  color: var(--agro-text, #0f172a);
  font-family: var(--agro-font-display, inherit);
  font-size: 19px;
  font-weight: 700;
  margin: 1.6em 0 0.5em;
  line-height: 1.3;
}

.agro-vest__prose a {
  color: var(--agro-primary, #2e7d32);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.agro-vest__prose a:hover {
  color: var(--agro-primary-dark, #1b5e20);
}

.agro-vest__prose strong {
  font-weight: 700;
  color: var(--agro-text, #0f172a);
}

.agro-vest__prose em {
  font-style: italic;
}

.agro-vest__prose ul,
.agro-vest__prose ol {
  margin: 0 0 1.2em 0;
  padding-left: 1.6em;
}

.agro-vest__prose li {
  margin-bottom: 0.4em;
}

.agro-vest__prose blockquote {
  border-left: 4px solid var(--agro-primary, #2e7d32);
  color: var(--agro-text-muted, #475569);
  font-style: italic;
  margin: 1.5em 0;
  padding: 0.4em 0 0.4em 1.2em;
}

.agro-vest__prose code {
  background: var(--agro-surface, #f1f5f9);
  border-radius: 4px;
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.92em;
  padding: 2px 6px;
}

/* Strukturisane sekcije sa odvojenom marginom */
.agro-vest__section {
  margin: 0;
}

.agro-vest__section + .agro-vest__section {
  margin-top: 1.4em;
}

/* Intro — drop cap (prvo slovo veliko, ali samo na desktopu) */
.agro-vest__section--intro > p:first-child::first-letter {
  color: var(--agro-primary, #2e7d32);
  float: left;
  font-family: var(--agro-font-display, inherit);
  font-size: 3.4em;
  font-weight: 700;
  line-height: 0.85;
  margin: 0.08em 0.08em 0 0;
  padding: 0.04em 0.08em 0 0;
}

@media (max-width: 640px) {
  /* Mobile: bez dropcap-a — manje teritorije za fancy typography */
  .agro-vest__section--intro > p:first-child::first-letter {
    color: inherit;
    float: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
    padding: 0;
  }
}

/* Conclusion — distinct visual signal (subtle background, primary left bar) */
.agro-vest__section--conclusion {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.04) 0%, rgba(46, 125, 50, 0.01) 100%);
  border-left: 4px solid var(--agro-primary, #2e7d32);
  border-radius: 0 8px 8px 0;
  margin-top: 2em !important;
  padding: 1.2em 1.4em;
}

.agro-vest__section--conclusion::before {
  color: var(--agro-primary, #2e7d32);
  content: 'Zaključak';
  display: block;
  font-family: var(--agro-font-display, inherit);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.6em;
  text-transform: uppercase;
}

.agro-vest__section--conclusion > p:last-child {
  margin-bottom: 0;
}

/* Inline figure (slika između sekcija) */
.agro-vest__figure {
  margin: 1.8em -16px;  /* extends beyond prose width on narrow viewports */
  padding: 0;
}

@media (min-width: 768px) {
  .agro-vest__figure {
    margin: 2em 0;
  }
}

.agro-vest__figure img {
  border-radius: 10px;
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.agro-vest__figure figcaption {
  color: var(--agro-text-muted, #64748b);
  font-family: var(--agro-font-display, inherit);
  font-size: 13px;
  font-style: italic;
  line-height: 1.45;
  margin-top: 8px;
  text-align: center;
  padding: 0 8px;
}
