/**
 * VIGLA.RO — Redesign Premium CSS
 * Filozofia Cromatică: „Hârtie și Aur"
 * Versiune: 1.0.0
 */

/* ═══════════════════════════════════════════
   VARIABILE CSS — SURSA UNICĂ DE ADEVĂR
   ═══════════════════════════════════════════ */

:root {
  /* ─── CULORI PRIMARE ─── */
  --vigla-amber:          #BB7228;
  --vigla-amber-light:    #D4952B;
  --vigla-amber-glow:     #E8A020;
  --vigla-amber-subtle:   #F5E6D0;

  --vigla-charcoal:       #2C2C3A;
  --vigla-slate:          #4A4A5C;
  --vigla-grey:           #81807C;

  /* ─── FUNDALURI ─── */
  --bg-header:            #F2EDE6;
  --bg-page:              #F7F5F2;
  --bg-card:              #FFFFFF;
  --bg-nav-pill:          #EAE5DE;
  --bg-sidebar:           #F0EBE4;
  --bg-footer:            #2C2C3A;
  --bg-footer-bottom:     #1E1E2A;
  --bg-code-block:        #FDF8F0;

  /* ─── BORDURI ─── */
  --border-light:         #E5E0D8;
  --border-divider:       #DDD8D0;
  --border-nav-active:    #BB7228;

  /* ─── CULORI PER CATEGORIE ─── */
  --cat-administratie:    #4338CA;
  --cat-energie:          #F59E0B;
  --cat-cultura:          #7C3AED;
  --cat-educatie:         #D97706;
  --cat-investitii:       #BE185D;
  --cat-mediu:            #16A34A;
  --cat-ordine:           #1E40AF;
  --cat-sanatate:         #DC2626;
  --cat-social:           #059669;
  --cat-taxe:             #B45309;
  --cat-transport:        #2563EB;
  --cat-urbanism:         #0891B2;

  /* ─── SHADOWS ─── */
  --shadow-card:          0 2px 8px rgba(44, 44, 58, 0.06);
  --shadow-card-hover:    0 8px 24px rgba(44, 44, 58, 0.10);
  --shadow-dropdown:      0 10px 40px rgba(44, 44, 58, 0.12);
  --shadow-header:        0 1px 3px rgba(44, 44, 58, 0.06);

  /* ─── TRANZIȚII ─── */
  --transition-fast:      150ms ease;
  --transition-normal:    250ms ease;
  --transition-slow:      400ms ease;

  /* ─── Z-INDEX HIERARCHY ─── */
  --z-dropdown:           200;
  --z-widget:             500;
  --z-sticky-header:      1000;
  --z-drawer-overlay:     1100;
  --z-drawer:             1101;
  --z-search-overlay:     1102;
  --z-modal:              1200;
  --z-progress-bar:       9999;

  /* ─── FONTURI ─── */
  --font-heading:  'Source Serif 4', 'Lora', Georgia, serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


/* ═══════════════════════════════════════════
   RESET & BAZĂ GLOBALĂ
   ═══════════════════════════════════════════ */

body {
  background-color: var(--bg-page) !important;
  font-family: var(--font-body) !important;
  color: var(--vigla-charcoal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus states — accesibilitate */
*:focus-visible {
  outline: 2px solid var(--vigla-amber);
  outline-offset: 2px;
}

/* Skip to content */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--vigla-amber);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: var(--z-progress-bar);
  font-family: var(--font-body);
  font-size: 14px;
  text-decoration: none;
}
.skip-to-content:focus {
  top: 8px;
}


/* ═══════════════════════════════════════════
   TIPOGRAFIE
   ═══════════════════════════════════════════ */

/* H1 — Titlu articol */
h1.article-title,
.vigla-homepage h1,
.category-page-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--vigla-charcoal);
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}
@media (max-width: 767px) {
  h1.article-title,
  .category-page-title {
    font-size: 24px;
    line-height: 1.3;
  }
}

/* H2 — Titlu secțiune */
h2.section-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--vigla-charcoal);
  margin-bottom: 20px;
}

/* H3 — Titlu card */
h3.card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--vigla-charcoal);
}
h3.card-title-small {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--vigla-charcoal);
}

/* H4 — Sidebar titluri */
h4.sidebar-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--vigla-amber);
}

/* Corp articol */
.article-body p {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--vigla-charcoal);
  margin-bottom: 20px;
}

/* Lead */
.article-lead {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--vigla-slate);
  margin-bottom: 24px;
}

/* Metadata */
.meta-text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--vigla-grey);
  letter-spacing: 0.2px;
}
.timestamp {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--vigla-amber);
  letter-spacing: 0.3px;
}

/* Badge categorie */
.category-badge {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #FFFFFF;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  line-height: 1.3;
}
.category-badge.small {
  font-size: 9px;
  padding: 2px 6px;
}


/* ═══════════════════════════════════════════
   HEADER — TOP BAR (Nivel 1)
   ═══════════════════════════════════════════ */

.vigla-topbar {
  background-color: var(--bg-header);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  z-index: 100;
}

/* Logo centrat */
.vigla-topbar .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.vigla-topbar .logo img {
  height: 36px;
  width: auto;
}

/* Hamburger */
.vigla-topbar .hamburger {
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
}
.vigla-topbar .hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--vigla-charcoal);
  border-radius: 1px;
  transition: var(--transition-fast);
}

/* Desktop + Tableta: hamburger si lupa mobile ascunse (nav pill e vizibil) */
@media (min-width: 768px) {
  .vigla-topbar .hamburger { display: none; }
  .vigla-topbar .search-icon-mobile { display: none; }
}

/* Search input (desktop) */
.vigla-topbar .search-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-divider);
  color: var(--vigla-charcoal);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 6px 8px 6px 28px;
  width: 200px;
  outline: none;
}
.vigla-topbar .search-input::placeholder {
  color: var(--vigla-grey);
  opacity: 0.6;
}
.vigla-topbar .search-input:focus {
  border-bottom-color: var(--vigla-amber);
  width: 280px;
  transition: width var(--transition-normal);
}

/* Icoane dreapta */
.vigla-topbar .actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.vigla-topbar .actions a {
  color: var(--vigla-charcoal);
  font-size: 18px;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.vigla-topbar .actions a:hover {
  opacity: 1;
  color: var(--vigla-amber);
}


/* ═══════════════════════════════════════════
   HEADER — NAV PILL (Nivel 2)
   ═══════════════════════════════════════════ */

.vigla-navbar {
  background: var(--bg-page);
  padding: 6px 24px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 50;
}

.vigla-nav-pill {
  background: var(--bg-nav-pill);
  border-radius: 24px;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: visible;
}
.vigla-nav-pill::-webkit-scrollbar {
  display: none;
}

.vigla-nav-pill a,
.vigla-nav-pill .dropdown > button {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--vigla-charcoal);
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--transition-fast);
  background: none;
  border: none;
  cursor: pointer;
}

/* Hover — BUG-21 fix: !important pentru a preveni JNews override */
.vigla-nav-pill a:hover,
.vigla-nav-pill .dropdown > button:hover,
.vigla-nav-pill .dropdown:hover > a {
  background-color: var(--vigla-amber) !important;
  color: #FFFFFF !important;
}

/* Pagina curentă */
.vigla-nav-pill a.active {
  background-color: var(--vigla-charcoal);
  color: #FFFFFF;
}

/* Dropdown container */
.vigla-nav-pill .dropdown {
  position: relative;
}

/* Dropdown menu */
.vigla-nav-pill .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: var(--shadow-dropdown);
  padding: 8px 0;
  min-width: 220px;
  z-index: var(--z-dropdown);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: all var(--transition-fast);
}
/* Pod invizibil intre trigger si dropdown — previne disparitia la hover */
.vigla-nav-pill .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}
.vigla-nav-pill .dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.vigla-nav-pill .dropdown-menu a {
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--vigla-charcoal);
  padding: 10px 20px;
  border-radius: 0;
  display: block;
}
.vigla-nav-pill .dropdown-menu a:hover {
  background: var(--bg-page);
  color: var(--vigla-amber);
  border-left: 3px solid var(--vigla-amber);
  padding-left: 17px;
}


/* ═══════════════════════════════════════════
   STICKY HEADER
   ═══════════════════════════════════════════ */

.vigla-topbar.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(242, 237, 230, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-header);
  transition: all var(--transition-normal);
  z-index: var(--z-sticky-header);
}

.vigla-navbar.hidden {
  display: none;
}

/* Compensare spațiu când header e sticky */
body.header-sticky {
  padding-top: 56px;
}


/* ═══════════════════════════════════════════
   HOMEPAGE — ZONA 1: HERO BLOCK
   ═══════════════════════════════════════════ */

.hero-block {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  margin: 24px auto;
  max-width: 1200px;
  padding: 0 24px;
  min-height: 420px;
  align-items: start; /* Hero își păstrează dimensiunea originală */
}

.hero-article {
  border-radius: 16px 0 0 16px;
  overflow: hidden;
  position: relative;
}
.hero-image-wrapper {
  width: 100%;
  height: 100%;
  min-height: 420px;
  position: relative;
}
.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.hero-article:hover img {
  transform: scale(1.03);
}
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(
    to top,
    rgba(44, 44, 58, 0.95) 0%,
    rgba(44, 44, 58, 0.7) 50%,
    transparent 100%
  );
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
  margin: 12px 0 8px;
}
.hero-lead {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-meta {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* Sidebar ACUM */
.now-sidebar {
  background: var(--bg-sidebar);
  border-radius: 0 16px 16px 0;
  padding: 24px;
  overflow-y: auto;
  /* ACUM sidebar se aliniază cu hero-ul și scrollează restul */
  height: 100%;
  max-height: 540px; /* egal cu hero image wrapper */
  box-sizing: border-box;
}
.now-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.now-dot {
  width: 8px;
  height: 8px;
  background: var(--vigla-amber);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.now-header h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--vigla-charcoal);
  letter-spacing: 1px;
  margin: 0;
}
.now-item {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-divider);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.now-item:last-child {
  border-bottom: none;
}
.now-item:hover .now-item-title {
  color: var(--vigla-amber);
}
.now-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.now-item-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--vigla-charcoal);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}


/* ═══════════════════════════════════════════
   HOMEPAGE — ZONA 2: ȘTIRI IMPORTANTE (3 col)
   ═══════════════════════════════════════════ */

.important-stories {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1023px) {
  .important-stories { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .important-stories { grid-template-columns: 1fr; }
}

/* Card Vertical */
.story-card.vertical {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-normal);
}
.story-card.vertical:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.story-card .card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.story-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.story-card:hover .card-image img {
  transform: scale(1.05);
}
.story-card .card-image .category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}
.story-card .card-content {
  padding: 16px 20px 20px;
}
.story-card .card-title {
  margin-bottom: 8px;
}
.story-card .card-lead {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--vigla-slate);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ═══════════════════════════════════════════
   HOMEPAGE — ZONA 3: FEED + SIDEBAR
   ═══════════════════════════════════════════ */

.feed-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}
@media (max-width: 1023px) {
  .feed-section { grid-template-columns: 1fr; }
}

/* ─── TABLET-FIX-T6: Newsletter CTA centrat cand sidebar e full-width ─── */
@media (max-width: 1023px) {
  .sidebar-block.newsletter-cta {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Separator de zi */
.day-separator {
  display: flex;
  align-items: center;
  margin: 28px 0 20px;
}
.day-separator::before,
.day-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-divider);
}
.day-separator span {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--vigla-charcoal);
  padding: 0 16px;
  white-space: nowrap;
}

/* Card Orizontal (feed) */
.story-card.horizontal {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-divider);
  text-decoration: none;
}
.story-card.horizontal a {
  display: flex;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}
.story-card.horizontal .card-image {
  width: 140px;
  min-width: 140px;
  height: 95px;
  border-radius: 8px;
  overflow: hidden;
}
.story-card.horizontal .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}
.story-card.horizontal:hover .card-title-small {
  color: var(--vigla-amber);
}

/* Sidebar sticky */
.feed-sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Sidebar bloc generic */
.sidebar-block {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
}

/* Trending */
.trending-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.trending-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-divider);
  align-items: flex-start;
}
.trending-list li:last-child {
  border-bottom: none;
}
.trending-number {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--vigla-amber);
  line-height: 1;
  min-width: 32px;
}
.trending-list a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--vigla-charcoal);
  text-decoration: none;
  line-height: 1.4;
  transition: color var(--transition-fast);
}
.trending-list a:hover {
  color: var(--vigla-amber);
}

/* ─── SPRINT-2-C4: Trending ascuns — sectiune goala, ocupa spatiu inutil ─── */
.sidebar-block.trending {
  display: none !important;
}

/* Newsletter CTA */
.sidebar-block.newsletter-cta {
  background: var(--vigla-charcoal);
  border: none;
}
.sidebar-block.newsletter-cta .newsletter-title,
.newsletter-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--vigla-amber-subtle) !important;
  margin-bottom: 8px;
}
.newsletter-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 16px;
  line-height: 1.5;
}
.newsletter-form input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  margin-bottom: 8px;
  background: #FFFFFF;
  box-sizing: border-box;
}
.newsletter-form button {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: var(--vigla-amber);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.newsletter-form button:hover {
  background: var(--vigla-amber-light);
}

/* ═══════════════════════════════════════════
   MULTI-SELECT WIDGET (reutilizabil: newsletter + footer)
   Ambele clase (.newsletter-multiselect si .footer-multiselect) au aceleasi stiluri.
   JS initMultiSelects() le trateaza identic.
   ═══════════════════════════════════════════ */

.newsletter-multiselect,
.footer-multiselect {
  position: relative;
  margin-bottom: 8px;
}
.multiselect-trigger {
  width: 100%;
  padding: 10px 14px;
  background: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--vigla-grey);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  transition: all var(--transition-fast);
}
.multiselect-trigger:hover {
  background: #F8F8F8;
}
.multiselect-trigger .multiselect-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  text-align: left;
}
.multiselect-trigger .multiselect-label.has-selection {
  color: var(--vigla-charcoal);
  font-weight: 500;
}
.multiselect-arrow {
  flex-shrink: 0;
  margin-left: 8px;
  transition: transform var(--transition-fast);
}
.newsletter-multiselect.open .multiselect-arrow,
.footer-multiselect.open .multiselect-arrow {
  transform: rotate(180deg);
}

/* Dropdown panel */
.multiselect-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-radius: 8px;
  box-shadow: var(--shadow-dropdown);
  max-height: 200px;
  overflow-y: auto;
  z-index: var(--z-dropdown);
  display: none;
  padding: 4px 0;
}
.newsletter-multiselect.open .multiselect-dropdown,
.footer-multiselect.open .multiselect-dropdown {
  display: block;
}

/* Optiuni — min-height 44px pentru touch target WCAG */
.multiselect-option {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--vigla-charcoal);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.multiselect-option:hover {
  background: var(--bg-nav-pill);
}
.multiselect-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--vigla-amber);
  cursor: pointer;
  flex-shrink: 0;
}
.multiselect-toggle-all {
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  margin-bottom: 2px;
}

/* Badge count selectii */
.multiselect-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--vigla-amber);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-left: 6px;
  flex-shrink: 0;
}

/* Dropdown deschis in SUS (folosit in footer — JS poate modifica dinamic) */
.multiselect-dropdown--up {
  top: auto !important;
  bottom: calc(100% + 4px);
}

/* Focus states — accesibilitate */
.multiselect-trigger:focus-visible,
.footer-filter-btn:focus-visible,
.newsletter-page-submit:focus-visible,
.search-icon-mobile:focus-visible {
  outline: 2px solid var(--vigla-amber);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════
   PAGINA NEWSLETTER (Sprint 2 — template custom)
   ═══════════════════════════════════════════ */

.vigla-newsletter-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 64px 24px;
}
.newsletter-page-inner {
  background: var(--vigla-charcoal);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
}
.newsletter-page-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--vigla-amber-subtle) !important;
  margin-bottom: 8px;
}
.newsletter-page-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 32px;
  line-height: 1.5;
}
.newsletter-feature {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 32px;
  text-align: left;
}
.newsletter-feature h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF !important;
  margin-bottom: 8px;
}
.newsletter-feature p {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
}
.newsletter-page-form-wrapper {
  text-align: left;
}
.newsletter-page-email {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  background: #FFFFFF;
  color: var(--vigla-charcoal);
  margin-bottom: 12px;
  box-sizing: border-box;
}
.newsletter-page-email:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(187, 114, 40, 0.2);
}

/* Multi-select pe fond charcoal — trigger adaptat */
.newsletter-page-form-wrapper .multiselect-trigger {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.newsletter-page-form-wrapper .multiselect-trigger:hover {
  background: rgba(255, 255, 255, 0.15);
}
.newsletter-page-form-wrapper .multiselect-label.has-selection {
  color: #FFFFFF;
}

.newsletter-page-submit {
  width: 100%;
  padding: 12px 16px;
  min-height: 44px;
  border: none;
  border-radius: 8px;
  background: var(--vigla-amber);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast);
  margin-top: 4px;
}
.newsletter-page-submit:hover {
  background: var(--vigla-amber-light);
}

@media (max-width: 767px) {
  .vigla-newsletter-page {
    padding: 32px 16px;
  }
  .newsletter-page-inner {
    padding: 32px 20px;
  }
  .newsletter-page-title {
    font-size: 26px;
  }
}

/* ═══════════════════════════════════════════
   FOOTER v2 — Layout vertical slim (Sprint 2)
   ═══════════════════════════════════════════ */

.footer-inner--v2 {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Rand 1: Brand */
.footer-brand-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer-brand-row .footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  line-height: 1.4;
}
.footer-brand-row .footer-social {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
}
.footer-brand-row .footer-social:hover {
  color: var(--vigla-amber-light);
}

/* Rand 2: Navigare orizontala */
.footer-nav-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav-row a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: color var(--transition-fast);
}
.footer-nav-row a:hover {
  color: var(--vigla-amber-light);
}
.footer-nav-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 13px;
  user-select: none;
}

/* Rand 3: Filtrare */
.footer-filter-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 600px;
}
.footer-multiselect {
  flex: 1;
  position: relative;
}

/* Override trigger pe fond inchis */
.footer-multiselect .multiselect-trigger {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  height: 100%;
  font-size: 13px;
}
.footer-multiselect .multiselect-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}
.footer-multiselect .multiselect-label.has-selection {
  color: #FFFFFF;
}

/* Buton Filtreaza */
.footer-filter-btn {
  padding: 12px 20px;
  min-height: 44px;
  background: var(--vigla-amber);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast);
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.footer-filter-btn:hover {
  background: var(--vigla-amber-light);
}

/* Mobile footer v2 */
@media (max-width: 767px) {
  .footer-inner--v2 {
    padding: 24px 16px 12px;
    gap: 20px;
  }
  .footer-filter-row {
    flex-direction: column;
  }
  .footer-filter-btn {
    width: 100%;
    padding: 12px;
  }
  .footer-nav-row {
    gap: 8px;
  }
  .footer-nav-row a {
    font-size: 12px;
  }
}


/* ═══════════════════════════════════════════
   HOMEPAGE — ZONA 4: CAROUSEL CATEGORII
   ═══════════════════════════════════════════ */

.categories-carousel {
  max-width: 1200px;
  margin: 48px auto;
  padding: 40px 24px;
  background: var(--bg-sidebar);
  border-radius: 16px;
}
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.category-preview-card {
  min-width: 260px;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  scroll-snap-align: start;
  transition: box-shadow var(--transition-normal);
  border: 1px solid var(--border-light);
}
.category-preview-card:hover {
  box-shadow: var(--shadow-card-hover);
}
.cat-card-header {
  background: var(--cat-color);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 12px 16px;
}
.cat-card-stories {
  list-style: none;
  padding: 12px 16px;
  margin: 0;
}
.cat-card-stories li {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--vigla-charcoal);
  line-height: 1.4;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-divider);
}
.cat-card-stories li:last-child {
  border-bottom: none;
}


/* ═══════════════════════════════════════════
   PAGINA DE CATEGORIE
   ═══════════════════════════════════════════ */

.category-banner {
  max-width: 1200px;
  margin: 24px auto;
  padding: 32px;
  background: var(--bg-sidebar);
  border-radius: 16px;
  border-left: 4px solid var(--cat-color, var(--vigla-amber));
}
.category-feed {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.category-feed .day-separator {
  grid-column: 1 / -1;
}
@media (max-width: 767px) {
  .category-feed { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════
   PAGINA DE ARTICOL
   ═══════════════════════════════════════════ */

.article-page {
  max-width: 740px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

/* Breadcrumb */
.breadcrumb {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--vigla-grey);
  margin-bottom: 24px;
}
.breadcrumb a {
  color: var(--vigla-grey);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--vigla-amber);
}
.breadcrumb .sep {
  margin: 0 6px;
  color: var(--border-divider);
}

/* Meta top */
.article-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

/* Imagine hero articol */
.article-hero-image {
  margin: 0 0 32px;
}
.article-hero-image img {
  width: 100%;
  border-radius: 12px;
  display: block;
}
.article-hero-image figcaption {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--vigla-grey);
  font-style: italic;
  margin-top: 8px;
}

/* BLOCUL "CE ÎNSEAMNĂ" — MARCA PUBLICAȚIEI */
.citizen-impact-block {
  background: linear-gradient(135deg, #FDF6EC 0%, #FFFFFF 100%);
  border-left: 4px solid var(--vigla-amber);
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  margin: 32px 0;
}
.citizen-impact-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--vigla-amber);
  margin-bottom: 12px;
}
.citizen-impact-block p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--vigla-charcoal);
  margin: 0;
}

/* Sursa */
.article-source {
  background: var(--bg-page);
  border-radius: 8px;
  padding: 14px 20px;
  margin: 32px 0;
  font-family: var(--font-body);
  font-size: 14px;
}
.source-label {
  font-weight: 700;
  color: var(--vigla-charcoal);
}
.article-source a {
  color: var(--vigla-amber);
  text-decoration: none;
}
.article-source a:hover {
  text-decoration: underline;
}

/* Distribuire */
.article-share {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 24px 0;
  border-top: 1px solid var(--border-divider);
  border-bottom: 1px solid var(--border-divider);
  margin: 24px 0;
}
.share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}
.share-btn.facebook {
  background: #1877F2;
  color: #FFFFFF;
}
.share-btn.facebook:hover {
  background: #1664D9;
}
.share-btn.copy {
  background: var(--bg-nav-pill);
  color: var(--vigla-charcoal);
}
.share-btn.copy:hover {
  background: var(--border-divider);
}

/* Citește și */
.read-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 767px) {
  .read-more-grid { grid-template-columns: 1fr; }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--vigla-amber);
  width: 0%;
  z-index: var(--z-progress-bar);
  transition: width 50ms linear;
}


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.vigla-footer {
  background: var(--bg-footer);
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 24px 0; /* BUG-24 fix: redus de la 48px */
  margin-top: 64px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.5fr; /* BUG-24 fix: mai mult spațiu pentru județe */
  gap: 32px;
  padding-bottom: 24px;
}
@media (max-width: 767px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.footer-logo-container {
  display: inline-block;
  background: var(--bg-header);
  padding: 8px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
}
.footer-logo {
  height: 36px;
  width: auto;
  display: block;
}
.footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.footer-social {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.footer-social:hover {
  color: var(--vigla-amber-light);
}
.footer-heading {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px; /* BUG-24 fix: redus */
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px; /* BUG-24 fix: mai compact */
  padding: 3px 0;
  transition: color var(--transition-fast);
}
.footer-col a:hover {
  color: var(--vigla-amber-light);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}


/* ═══════════════════════════════════════════
   MOBILE DRAWER MENU
   ═══════════════════════════════════════════ */

.vigla-mobile-drawer {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: var(--bg-card);
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-dropdown);
}
.vigla-mobile-drawer.open {
  transform: translateX(0);
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
}
.drawer-logo {
  height: 32px;
  width: auto;
}
.drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--vigla-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}
.drawer-link {
  display: block;
  padding: 12px 16px;
  color: var(--vigla-charcoal);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}
.drawer-link:hover,
.drawer-link.active {
  background: var(--vigla-amber);
  color: #FFFFFF;
  padding-left: 20px;
}
.drawer-section {
  border-bottom: 1px solid var(--border-light);
}
.drawer-section-toggle {
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--vigla-charcoal);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
}
.drawer-section-toggle:hover {
  background: var(--bg-page);
}
.drawer-section-toggle .chevron {
  transition: transform var(--transition-fast);
}
.drawer-section-toggle.open .chevron {
  transform: rotate(180deg);
}
.drawer-section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}
.drawer-section-toggle.open + .drawer-section-content {
  max-height: 500px;
}
.drawer-section-content a {
  display: block;
  padding: 10px 16px 10px 32px;
  color: var(--vigla-slate);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px;
  border-bottom: 1px solid var(--border-divider);
  transition: all var(--transition-fast);
}
.drawer-section-content a:hover {
  color: var(--vigla-amber);
  padding-left: 36px;
}
.drawer-footer {
  padding: 16px;
  border-top: 1px solid var(--border-light);
}
.drawer-social {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--vigla-charcoal);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.drawer-social:hover {
  color: var(--vigla-amber);
}

/* Overlay */
.vigla-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: var(--z-drawer-overlay);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}
.vigla-drawer-overlay.open {
  background: rgba(0, 0, 0, 0.3);
  opacity: 1;
  pointer-events: auto;
}


/* ═══════════════════════════════════════════
   SEARCH OVERLAY MOBILE
   ═══════════════════════════════════════════ */

.vigla-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: var(--z-search-overlay);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}
.vigla-search-overlay.open {
  display: flex;
}
.search-overlay-inner {
  position: relative;
  width: 100%;
  max-width: 400px;
}
.search-overlay-input {
  width: 100%;
  padding: 16px 48px 16px 20px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--bg-card);
  color: var(--vigla-charcoal);
  outline: none;
  box-sizing: border-box;
}
.search-overlay-input::placeholder {
  color: var(--vigla-grey);
}
.search-overlay-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--vigla-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── SPRINT-2-C2: Animatie search overlay ─── */
.search-overlay-inner {
  animation: searchSlideDown 250ms ease forwards;
}
@keyframes searchSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
.search-overlay-input:focus {
  box-shadow: 0 0 0 3px rgba(187, 114, 40, 0.2);
}


/* ═══════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 767px) {
  /* Header mobile */
  .vigla-topbar {
    height: 52px;
    padding: 0 16px;
  }
  .vigla-topbar .logo img {
    height: 28px;
  }
  .vigla-topbar .search-input {
    display: none;
  }

  .vigla-navbar {
    padding: 4px 16px;
  }
  .vigla-nav-pill {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 3px;
  }
  .vigla-nav-pill a {
    font-size: 11px;
    padding: 6px 12px;
  }

  /* Hero mobile */
  .hero-block {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 16px;
  }
  .hero-article {
    border-radius: 12px;
  }
  .hero-image-wrapper {
    min-height: 280px;
  }
  .hero-title {
    font-size: 22px;
  }
  .hero-overlay {
    padding: 20px;
  }
  .now-sidebar {
    border-radius: 12px;
    margin-top: 16px;
    max-height: none;
    overflow-y: visible;
  }

  /* Feed mobile */
  .feed-section {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
  .feed-sidebar {
    position: static;
  }
  .story-card.horizontal .card-image {
    width: 100px;
    min-width: 100px;
    height: 70px;
  }

  /* Articol mobile */
  .article-page {
    padding: 16px 16px 32px;
  }
  .article-hero-image img {
    border-radius: 8px;
  }
  .article-body p {
    font-size: 16px;
  }
  .citizen-impact-block {
    padding: 16px 20px;
    margin: 24px -16px;
    border-radius: 0;
  }
  .article-share {
    flex-direction: column;
  }
}


/* ═══════════════════════════════════════════
   WIDGET „ȘTIRILE TALE"
   ═══════════════════════════════════════════ */

/* Desktop: buton floating stânga-jos */
@media (min-width: 768px) {
  .personalization-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: var(--vigla-amber);
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 24px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-card-hover);
    z-index: var(--z-widget);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
  }
  .personalization-widget:hover {
    background: var(--vigla-amber-light);
    transform: translateY(-2px);
  }
}

/* ─── TABLET-FIX-T2: Hero 1-col + ACUM fara scroll pe tableta ─── */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-block {
    grid-template-columns: 1fr;
  }
  .hero-article {
    min-height: 360px;
  }
  .now-sidebar {
    max-height: none !important;
    overflow-y: visible !important;
    height: auto !important;
    margin-top: 16px;
  }
}

/* Mobile: bottom bar fixă */
@media (max-width: 767px) {
  .personalization-widget {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
    z-index: var(--z-widget);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--vigla-charcoal);
  }
  .personalization-widget.expanded {
    flex-direction: column;
    padding: 24px 16px;
    max-height: 60vh;
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
    animation: slideUp 300ms ease;
  }
  @keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  body {
    padding-bottom: 56px;
  }
}


/* ═══════════════════════════════════════════
   LOAD MORE BUTTON
   ═══════════════════════════════════════════ */

.jeg_load_more_btn a {
  background: transparent !important;
  border: 2px solid var(--vigla-amber) !important;
  color: var(--vigla-amber) !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 12px 32px !important;
  border-radius: 24px !important;
  transition: all var(--transition-fast) !important;
}
.jeg_load_more_btn a:hover {
  background: var(--vigla-amber) !important;
  color: #FFFFFF !important;
}


/* ═══════════════════════════════════════════
   MICROINTERACȚIUNI
   ═══════════════════════════════════════════ */

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg,
    var(--bg-page) 25%,
    var(--bg-nav-pill) 50%,
    var(--bg-page) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-title { height: 24px; width: 80%; margin-bottom: 8px; }
.skeleton-text { height: 14px; width: 60%; }
.skeleton-image { aspect-ratio: 16/10; width: 100%; }

/* Lazy load fade-in */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity var(--transition-slow);
}
img[loading="lazy"].loaded {
  opacity: 1;
}


/* ═══════════════════════════════════════════
   MODAL PERSONALIZARE Z-INDEX FIX
   ═══════════════════════════════════════════ */

.punctult-prefs-modal,
.punctult-prefs-overlay,
#punctult-modal,
.punctult-modal-overlay {
  z-index: var(--z-modal) !important;
}


/* ═══════════════════════════════════════════
   JNEWS OVERRIDES — INTEGRARE CU TEMA EXISTENTĂ
   ═══════════════════════════════════════════ */

/* Ascunde copyright-ul JNews din mobile wrapper */
.jeg_aside_item.jeg_aside_copyright {
  display: none !important;
}

/* Override fundal JNews */
.jeg_viewport {
  background-color: var(--bg-page) !important;
}

/* Override font global JNews */
.jeg_viewport,
.jeg_viewport p,
.jeg_viewport span {
  font-family: var(--font-body);
}

/* Override titluri JNews la serif */
.jeg_viewport h1,
.jeg_viewport h2,
.jeg_viewport h3,
.jeg_post_title a,
.jeg_hero_title a,
.entry-header .jeg_post_title {
  font-family: var(--font-heading);
  color: var(--vigla-charcoal);
}

/* Override link-uri JNews */
.jeg_viewport a:hover {
  color: var(--vigla-amber);
}

/* Override header background JNews */
.jeg_header,
.jeg_header_wrapper {
  background-color: var(--bg-header) !important;
}

/* Override footer JNews */
.jeg_footer,
.footer-holder {
  background-color: var(--bg-footer) !important;
}

/* ═══════════════════════════════════════════
   PAGINI SECUNDARE — STILURI ADIȚIONALE
   ═══════════════════════════════════════════ */

/* Mesaj "nu am găsit" */
.no-results {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px;
  text-align: center;
  color: var(--vigla-slate);
  font-family: var(--font-body);
  font-size: 16px;
}
.no-results strong {
  color: var(--vigla-charcoal);
}

/* Paginare WordPress (fallback dacă JNews Load More nu e activ) */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
  padding: 0 24px;
}
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--vigla-charcoal);
  text-decoration: none;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  transition: all var(--transition-fast);
}
.nav-links .page-numbers:hover {
  background: var(--vigla-amber);
  color: #FFFFFF;
  border-color: var(--vigla-amber);
}
.nav-links .page-numbers.current {
  background: var(--vigla-charcoal);
  color: #FFFFFF;
  border-color: var(--vigla-charcoal);
}

/* Search input wrapper (desktop header) */
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-icon {
  position: absolute;
  left: 8px;
  color: var(--vigla-grey);
  opacity: 0.6;
  pointer-events: none;
}

/* Topbar layout helpers */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-search-form {
  display: flex;
  align-items: center;
}

/* Dropdown trigger */
.dropdown-trigger {
  cursor: pointer;
}

/* Articol — meta top */
.article-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

/* Articol — hero image */
.article-hero-image {
  margin: 0 0 32px;
  border-radius: 12px;
  overflow: hidden;
}
.article-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}
.article-hero-image figcaption {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--vigla-grey);
  padding: 8px 0;
  text-align: center;
}

/* Articol — article header */
.article-header {
  margin-bottom: 24px;
}
.article-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--vigla-charcoal);
  margin: 0 0 16px;
}

/* Citește și — grid */
.read-more {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-divider);
}
.read-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 767px) {
  .read-more-grid {
    grid-template-columns: 1fr;
  }
  .article-title {
    font-size: 24px;
  }
}

/* Section title */
.section-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--vigla-charcoal);
  margin-bottom: 4px;
}

/* Sidebar title */
.sidebar-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--vigla-charcoal);
}

/* Hide JNews default wrappers on our custom pages */
.vigla-homepage .jeg_main,
.vigla-archive .jeg_main,
.article-page ~ .post-wrapper {
  display: none;
}

/* Mobile topbar variant */
.vigla-topbar--mobile {
  /* Same as vigla-topbar but for mobile-builder context */
}

/* Ascunde blank space-ul JNews sticky pe mobile */
.vigla-mobile-header + .sticky_blankspace {
  display: none !important;
}


/* ═══════════════════════════════════════════
   BUG FIXES v3 — 6 aprilie 2026
   Override-uri JNews + fix-uri vizuale
   ═══════════════════════════════════════════ */

/* ─── BUG-01/07/20: Override JNews global `a { color: #f70d28 }` ─── */
.vigla-homepage a,
.vigla-homepage a:visited,
.story-card a,
.story-card a:visited,
.hero-block a,
.hero-block a:visited,
.hero-overlay a,
.hero-overlay a:visited,
.now-sidebar a,
.now-sidebar a:visited,
.important-stories a,
.important-stories a:visited,
.category-feed a,
.category-feed a:visited {
    color: inherit !important;
    text-decoration: none;
}

.vigla-homepage a:hover,
.story-card a:hover,
.hero-block a:hover,
.now-sidebar a:hover,
.important-stories a:hover,
.category-feed a:hover {
    color: var(--vigla-amber) !important;
}

/* ─── BUG-20: Hero overlay text — ALB pe gradient charcoal ─── */
.hero-overlay .hero-title {
    color: #FFFFFF !important;
}
.hero-overlay .hero-lead {
    color: rgba(255, 255, 255, 0.85) !important;
}
.hero-overlay .hero-meta {
    color: rgba(255, 255, 255, 0.6) !important;
}
.hero-overlay .category-badge {
    color: #FFFFFF !important;
}

/* ─── BUG-01 extins: Link-uri din body articol — amber ─── */
.entry-content a,
.jeg_inner_content a,
.article-body a {
    color: var(--vigla-amber) !important;
    text-decoration: underline;
    text-decoration-color: rgba(187, 114, 40, 0.3);
    text-underline-offset: 2px;
}
.entry-content a:hover,
.jeg_inner_content a:hover,
.article-body a:hover {
    text-decoration-color: var(--vigla-amber);
}

/* ─── BUG-03: Category badge full-width ─── */
.category-badge {
    display: inline-block !important;
    width: fit-content !important;
}

/* ─── BUG-04: REVERTED — selectorul de preferințe e necesar funcțional ─── */

/* ─── BUG-18: REVERTED — jeg_header_wrapper conține vigla-topbar, nu poate fi ascuns ─── */

/* ─── BUG-24: Footer compact — județe pe 2 coloane ─── */
.footer-col:last-child {
    columns: 2;
    column-gap: 16px;
}
.footer-col:last-child a {
    break-inside: avoid;
}

/* ─── BUG-05: Ascunde share buttons pe pagini statice ─── */
.page .jeg_share_button,
.page .jeg_post_share,
.page .jeg_share_top,
.page .jnews_social_share,
.page .jeg_meta_share {
    display: none !important;
}

/* ─── BUG-06: Limitează lățimea conținutului pe pagini statice ─── */
.page .entry-content,
.page .jeg_inner_content {
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── BUG-19: Override stiluri JNews pe pagina 404 ─── */
.error404 .jeg_block_title span {
    color: var(--vigla-charcoal) !important;
}
.error404 .jeg_block_title {
    border-color: var(--vigla-amber) !important;
}
.error404 .jeg_search_button,
.error404 .jnews_search_submit {
    background: var(--vigla-amber) !important;
    border: none !important;
    color: #FFFFFF !important;
}

/* ─── BUG-11/12: Ascunde elemente JNews reziduale ─── */
.jeg_menu_close,
.jeg_bg_overlay {
    display: none !important;
}

/* ═══════════════════════════════════════════
   SEARCH RESULTS PAGE — Override JNews (Sprint 2)
   ═══════════════════════════════════════════ */

/* Titlu pagina search */
.jeg_archive_title {
  font-family: var(--font-heading) !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  color: var(--vigla-charcoal) !important;
  margin-bottom: 16px !important;
}

/* Form search in pagina results */
.jeg_archive_search .search-form {
  display: flex;
  max-width: 600px;
  margin-bottom: 32px;
}
.jeg_archive_search .search-form .search-field {
  flex: 1;
  padding: 12px 16px !important;
  border: 1px solid var(--border-divider) !important;
  border-right: none !important;
  border-radius: 8px 0 0 8px !important;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  color: var(--vigla-charcoal) !important;
  background: var(--bg-card) !important;
  outline: none !important;
  box-sizing: border-box !important;
}
.jeg_archive_search .search-form .search-field:focus {
  border-color: var(--vigla-amber) !important;
  box-shadow: 0 0 0 3px rgba(187, 114, 40, 0.15) !important;
}
.jeg_archive_search .search-form .search-submit,
.jeg_archive_search .search-form .jnews_search_submit {
  padding: 12px 24px !important;
  background: var(--vigla-amber) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 0 8px 8px 0 !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background var(--transition-fast) !important;
}
.jeg_archive_search .search-form .search-submit:hover,
.jeg_archive_search .search-form .jnews_search_submit:hover {
  background: var(--vigla-amber-light) !important;
}

/* Container general search */
.search .jeg_main .jeg_container {
  max-width: 1200px;
}

/* Cards rezultate search */
.jnews_search_content_wrapper .jeg_post_title a {
  font-family: var(--font-heading) !important;
  color: var(--vigla-charcoal) !important;
  transition: color var(--transition-fast) !important;
}
.jnews_search_content_wrapper .jeg_post_title a:hover {
  color: var(--vigla-amber) !important;
}
.jnews_search_content_wrapper .jeg_post_excerpt p {
  font-family: var(--font-body) !important;
  color: var(--vigla-slate) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}
.jnews_search_content_wrapper .jeg_post_meta {
  font-family: var(--font-body) !important;
  color: var(--vigla-grey) !important;
  font-size: 12px !important;
}
.jnews_search_content_wrapper .jeg_thumb img {
  border-radius: 8px !important;
}

/* Mesaj "No Content" */
.jeg_empty_module {
  font-family: var(--font-body) !important;
  color: var(--vigla-slate) !important;
  padding: 48px 24px !important;
  text-align: center !important;
}

/* Sidebar search page */
.jeg_main .jeg_sidebar .widget-title {
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  color: var(--vigla-charcoal) !important;
}

/* Paginare */
.jeg_navigation .page_number.active {
  background: var(--vigla-amber) !important;
  color: #FFFFFF !important;
}

/* ─── Search Results Mobile ─── */
@media (max-width: 767px) {
  .jeg_archive_title {
    font-size: 22px !important;
    padding: 0 16px !important;
  }
  .jeg_archive_search {
    padding: 0 16px !important;
  }
  .jeg_archive_search .search-form {
    margin-bottom: 24px !important;
  }
  .jeg_archive_search .search-form .search-field {
    font-size: 14px !important;
    padding: 10px 14px !important;
  }
  .jnews_search_content_wrapper {
    padding: 0 8px !important;
  }
  .jeg_main .jeg_sidebar {
    padding: 0 16px !important;
    margin-top: 32px !important;
  }
}

/* ─── MOBILE-BUG-1: Ascunde header-ul JNews mobile duplicat ─── */
@media (max-width: 767px) {
  .jeg_navbar_mobile_wrapper {
    display: none !important;
  }
}

/* ─── TABLET-FIX-T1: Ascunde header-ul mobil redundant pe tableta ─── */
@media (min-width: 768px) and (max-width: 1023px) {
  .jeg_navbar_mobile_wrapper {
    display: none !important;
  }
}

/* ─── MOBILE-BUG-2: Ascunde nav pills pe mobile — navigarea e prin drawer ─── */
@media (max-width: 767px) {
  .vigla-navbar {
    display: none !important;
  }
}

/* ─── SPRINT-2-C2: Ascunde search form desktop pe mobile (lupa duplicata) ─── */
@media (max-width: 767px) {
  .topbar-search-form {
    display: none !important;
  }
}

/* ─── SPRINT-2-C2: Stilizare search icon mobile — 44px touch target WCAG ─── */
@media (max-width: 767px) {
  .search-icon-mobile {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-nav-pill);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--vigla-charcoal);
    padding: 0;
  }
  .search-icon-mobile:hover,
  .search-icon-mobile:active {
    background: var(--vigla-amber);
    color: #FFFFFF;
  }
  .search-icon-mobile svg {
    width: 20px;
    height: 20px;
  }
}

/* ─── MOBILE-BUG-4: REMOVED Sprint 2 — footer v2 uses .footer-inner--v2 ─── */
