/* --- News Article Styles --- */
.news-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-height) + 60px) 24px 60px;
}
.news-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0a0f1a 0%, #0f172a 50%, #1a1040 100%);
  z-index: 0;
}
.news-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(6,182,212,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(139,92,246,0.10) 0%, transparent 60%);
}
#news-particles {
  position: absolute; inset: 0; z-index: 1;
}
.news-hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 800px;
}
.news-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(6,182,212,0.12);
  border: 1px solid rgba(6,182,212,0.25);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.news-hero-content h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #e2e8f0, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.news-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.news-meta span { display: flex; align-items: center; gap: 6px; }
.news-meta i { color: var(--accent-cyan); font-size: 0.85rem; }

/* Article body */
.article-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.article-body p {
  text-align: justify;
  text-indent: 2em;
  margin-bottom: 1.2em;
  color: var(--text-primary);
  line-height: 1.9;
  font-size: 1rem;
}
.article-body figure {
  margin: 2.5em 0;
  text-align: center;
}
.article-body figure img {
  max-width: 90%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  margin-bottom: 8px;
}
.article-body figure img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 40px rgba(6,182,212,0.15);
}
.article-body figcaption {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 10px;
  font-style: italic;
}

/* Highlight card for background section */
.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 2em 0;
  position: relative;
  overflow: hidden;
}
.highlight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-main);
}
.highlight-card .highlight-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}
.highlight-card p {
  text-indent: 0 !important;
  margin-bottom: 0 !important;
  color: var(--text-secondary) !important;
  font-size: 0.95rem !important;
  line-height: 1.85 !important;
}

/* Warning timeline */
.warning-timeline {
  position: relative;
  padding-left: 32px;
  margin: 2em 0;
}
.warning-timeline::before {
  content: '';
  position: absolute;
  left: 11px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #10b981, #f59e0b, #ef4444);
  border-radius: 2px;
}
.warning-item {
  position: relative;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.warning-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.12);
  transform: translateX(4px);
}
.warning-item::before {
  content: '';
  position: absolute;
  left: -27px; top: 22px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  z-index: 1;
}
.warning-item.level-1::before { background: #10b981; box-shadow: 0 0 12px rgba(16,185,129,0.5); }
.warning-item.level-2::before { background: #f59e0b; box-shadow: 0 0 12px rgba(245,158,11,0.5); }
.warning-item.level-3::before { background: #ef4444; box-shadow: 0 0 12px rgba(239,68,68,0.5); }
.warning-level {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.warning-item.level-1 .warning-level { color: #10b981; }
.warning-item.level-2 .warning-level { color: #f59e0b; }
.warning-item.level-3 .warning-level { color: #ef4444; }
.warning-item .warning-detail {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}
.warning-item .warning-time {
  font-family: var(--font-mono);
  color: var(--text-primary);
}

/* GIF grid */
.media-grid {
  display: grid;
  gap: 16px;
  margin: 2em 0;
}
.media-grid.two-col {
  grid-template-columns: 1fr 1fr;
}
.media-grid img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.media-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 40px rgba(6,182,212,0.15);
}
.media-caption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 8px;
  grid-column: 1 / -1;
}

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(59,130,246,0.15));
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: var(--radius-xl);
  color: var(--accent-cyan);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition);
  margin-top: 40px;
}
.back-btn:hover {
  background: linear-gradient(135deg, rgba(6,182,212,0.25), rgba(59,130,246,0.25));
  border-color: rgba(6,182,212,0.5);
  transform: translateX(-4px);
  color: #22d3ee;
}

/* News footer */
.news-footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 24px;
  text-align: center;
}
.news-footer .footer-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}
.news-footer .footer-icons a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all var(--transition);
}
.news-footer .footer-icons a:hover {
  color: var(--accent-cyan);
  border-color: rgba(6,182,212,0.4);
  transform: translateY(-2px);
}
.news-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.news-footer a { color: var(--text-secondary); }
.news-footer a:hover { color: var(--accent-cyan); }

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.15s; }
.fade-in-delay-2 { transition-delay: 0.3s; }
.fade-in-delay-3 { transition-delay: 0.45s; }

@media (max-width: 640px) {
  .news-hero { min-height: 40vh; padding-top: calc(var(--nav-height) + 40px); }
  .media-grid.two-col { grid-template-columns: 1fr; }
  .article-container { padding: 40px 16px 60px; }
  .warning-timeline { padding-left: 28px; }
}
