/* ----------------------------------------
   Daily News Page — Editorial / Newspaper style
   Extends style.css design system
---------------------------------------- */

/* Playfair Display for editorial headings */
.news-article h1,
.news-article h2,
.masthead-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* ----------------------------------------
   Masthead
---------------------------------------- */
.news-masthead {
  background: var(--text);
  padding: 2.5rem 0 2rem;
  border-bottom: 3px solid var(--primary);
}

.masthead-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.masthead-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 0.5rem;
}

.masthead-title {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
  margin-bottom: 0.75rem;
}

.masthead-tagline {
  color: #94a3b8;
  font-size: 0.97rem;
  max-width: 55ch;
  line-height: 1.65;
}

.masthead-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.masthead-date {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.masthead-sources-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.msource {
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

/* ----------------------------------------
   Layout
---------------------------------------- */
.news-layout {
  padding: 2.5rem 0 4rem;
  background: var(--bg);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

/* ----------------------------------------
   Main Article
---------------------------------------- */
.news-main {
  min-height: 400px;
}

.news-article {
  /* intentionally no card chrome — clean editorial look */
}

/* Article header */
.article-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: rgba(10, 102, 194, 0.1);
  color: var(--primary);
  border: 1px solid rgba(10, 102, 194, 0.2);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.article-headline {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.article-subheadline {
  font-size: 1.15rem;
  color: var(--subtext);
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--border);
}

.article-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.byline-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.byline-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.byline-avatar i { color: #fff; font-size: 0.85rem; }

.byline-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.byline-name {
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--text);
}

.byline-role {
  font-size: 0.78rem;
  color: var(--subtext);
  font-weight: 600;
}

.byline-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.byline-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}

.byline-meta-item i { color: var(--primary); font-size: 0.75rem; }

/* Article intro / lede */
.article-lede {
  font-size: 1.13rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--primary);
  background: rgba(10, 102, 194, 0.04);
  border-radius: 0 10px 10px 0;
}

/* Sections */
.article-section {
  margin-bottom: 2rem;
}

.article-section-heading {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.article-section-body {
  font-size: 1rem;
  line-height: 1.85;
  color: #1e293b;
}

.article-section-body p {
  margin-bottom: 1.1rem;
}

.article-section-body p:last-child {
  margin-bottom: 0;
}

/* Conclusion */
.article-conclusion {
  background: var(--muted-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin: 2rem 0;
}

.conclusion-label {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.conclusion-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  font-weight: 500;
}

/* Editor note */
.editor-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 10px;
  margin: 1.5rem 0 2rem;
}

.editor-note-icon {
  color: #f59e0b;
  font-size: 1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.editor-note-text {
  font-size: 0.9rem;
  color: #92400e;
  line-height: 1.65;
  font-style: italic;
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.article-tag-item {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--subtext);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.18s;
}

.article-tag-item:hover {
  border-color: rgba(10, 102, 194, 0.3);
  color: var(--primary);
  background: rgba(10, 102, 194, 0.04);
}

/* Sources at bottom of article */
.article-sources {
  background: var(--muted-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.sources-label {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subtext);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sources-label i { color: var(--primary); }

.sources-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sources-items li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.sources-items .source-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(10, 102, 194, 0.1);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.sources-items a {
  font-size: 0.88rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

.sources-items a:hover { text-decoration: underline; }

.source-pub {
  font-size: 0.78rem;
  color: var(--subtext);
  font-weight: 700;
  display: block;
  margin-top: 0.1rem;
}

/* ----------------------------------------
   Skeleton Loaders
---------------------------------------- */
@keyframes shimmer {
  0%   { background-position: -700px 0; }
  100% { background-position: 700px 0; }
}

.skel-line,
.skel-block,
.archive-skeleton {
  background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%);
  background-size: 700px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 8px;
  margin-bottom: 0.85rem;
}

.skel-h1  { height: 3rem;  width: 90%; }
.skel-h2  { height: 1.2rem; width: 70%; }
.skel-meta { height: 1rem; width: 50%; margin-bottom: 1.5rem; }
.skel-block { height: 120px; }
.skel-block.short { height: 80px; width: 80%; }

.archive-skeleton { height: 44px; border-radius: 8px; margin-bottom: 0.5rem; }

/* ----------------------------------------
   No-article state
---------------------------------------- */
.no-article {
  text-align: center;
  padding: 4rem 1rem;
}

.no-article-icon {
  font-size: 3rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.no-article h2 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.no-article p {
  color: var(--subtext);
  max-width: 42ch;
  margin: 0 auto 1.5rem;
}

/* ----------------------------------------
   Sidebar
---------------------------------------- */
.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.about-card p {
  font-size: 0.9rem;
  color: var(--subtext);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.about-card p:last-child { margin-bottom: 0; }

.sidebar-heading {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subtext);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-heading i { color: var(--primary); }

/* Archive list */
.archive-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.archive-item a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.18s;
  border: 1px solid transparent;
}

.archive-item a:hover {
  background: var(--muted-bg);
  border-color: var(--border);
}

.archive-item.is-today a {
  background: rgba(10, 102, 194, 0.06);
  border-color: rgba(10, 102, 194, 0.2);
}

.archive-date {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.archive-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-unavailable {
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  color: #cbd5e1;
  font-style: italic;
}

/* Source list */
.source-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.source-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--subtext);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.18s;
}

.source-list li:last-child a { border-bottom: none; }
.source-list a:hover { color: var(--primary); }
.source-list a i { font-size: 0.7rem; color: var(--primary); }

/* CTA card */
.cta-card {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  border-color: rgba(255,255,255,0.08);
  text-align: center;
}

.cta-icon {
  font-size: 2rem;
  color: #60a5fa;
  margin-bottom: 0.75rem;
  display: block;
}

.cta-card h3 {
  font-size: 1rem;
  font-weight: 900;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
}

.cta-card p {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.6rem 0.9rem;
}

/* ----------------------------------------
   Responsive
---------------------------------------- */
@media (min-width: 768px) {
  .masthead-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .masthead-right {
    align-items: flex-end;
    text-align: right;
  }

  .article-headline { font-size: 2.8rem; }
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
  }
}
