/* =============================================
   STIRI — Stylesheet
   ============================================= */

/* Navbar forțat în modul scrolled pe pagina de știri */
.navbar.scrolled .logo-text { color: var(--primary); }
.navbar.scrolled .nav-links a { color: var(--text-muted); }
.navbar.scrolled .nav-links a:hover,
.nav-links a.nav-active {
  color: var(--primary) !important;
  font-weight: 600;
}
.navbar.scrolled .nav-toggle span { background: var(--text); }

/* ===== HERO ===== */
.stiri-hero {
  background: var(--primary-dark);
  padding: 120px 0 48px;
  text-align: center;
}
.stiri-hero .section-label { margin-bottom: 12px; }
.stiri-hero h1 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
}
.stiri-hero h1 em { color: var(--accent-light); font-style: italic; }
.stiri-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
}


/* ===== MAIN ===== */
.stiri-main {
  padding: 48px 0 96px;
  background: var(--bg);
  min-height: 60vh;
}

/* ===== FEATURED ARTICLE ===== */
.featured-article-wrapper {
  margin-bottom: 48px;
}
.featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.featured-img {
  height: 360px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.featured-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.1), transparent);
}
.featured-img-placeholder {
  height: 360px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.featured-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.featured-badge {
  background: var(--accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.featured-source {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}
.featured-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-left: auto;
}
.featured-content h2 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-dark);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.35;
  margin-bottom: 16px;
}
.featured-excerpt {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.2s ease;
}
.featured-link:hover { gap: 10px; }

/* ===== STIRI GRID ===== */
.stiri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stire-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.stire-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.stire-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.stire-img-placeholder {
  height: 180px;
  background: linear-gradient(135deg, #e8e0d0, #d4c8b4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}
.stire-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.stire-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.stire-source {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stire-date {
  font-size: 0.75rem;
  color: var(--text-light);
}
.stire-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--primary-dark);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.stire-excerpt {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: 16px;
}
.stire-read-more {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}


/* ===== LOADING ===== */
.stiri-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 0;
  color: var(--text-muted);
}
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== ERROR / EMPTY ===== */
.stiri-error, .stiri-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
}
.stiri-error span, .stiri-empty span { font-size: 3rem; display: block; margin-bottom: 16px; }
.stiri-error p, .stiri-empty p { margin-bottom: 24px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .stiri-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-img, .featured-img-placeholder { height: 220px; }
  .featured-content { padding: 24px; }
  .stiri-grid { grid-template-columns: 1fr; }
  .stiri-filters-bar { top: 54px; }
}
