/**
 * Newspaper-style news page - mobile-first responsive design with category sections.
 */

/* Base container */
.news-paper {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.news-header {
  border-bottom: 3px double #333;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.news-header__title {
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-header__date {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
  font-style: italic;
}

/* Category sections */
.news-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
}

.news-section:last-child {
  border-bottom: none;
}

.news-section__title {
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #333;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Category-specific accent colors */
.news-section--politics .news-section__title { border-color: #c41e3a; }
.news-section--business .news-section__title { border-color: #1e5c97; }
.news-section--community .news-section__title { border-color: #2e7d32; }
.news-section--health .news-section__title { border-color: #7b1fa2; }
.news-section--environment .news-section__title { border-color: #388e3c; }
.news-section--sports .news-section__title { border-color: #e65100; }
.news-section--technology .news-section__title { border-color: #0277bd; }

.news-section__articles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Individual articles */
.news-article {
  padding: 0.75rem 0;
  border-bottom: 1px dotted #ccc;
}

.news-article:last-child {
  border-bottom: none;
}

.news-article__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-article__link:hover .news-article__title {
  color: #0056b3;
}

.news-article__title {
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  transition: color 0.15s ease;
}

.news-article__summary {
  font-size: 0.9375rem;
  color: #444;
  margin: 0 0 0.5rem 0;
  line-height: 1.5;
}

.news-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: #666;
}

.news-article__source {
  font-weight: 500;
}

.news-article__date {
  font-style: italic;
}

/* Empty state */
.news-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
}

.news-empty p {
  margin: 0;
  font-size: 1rem;
}

/* Footer */
.news-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  text-align: center;
}

.news-footer p {
  font-size: 0.8125rem;
  color: #888;
  margin: 0;
  font-style: italic;
}

/* Tablet and up */
@media (min-width: 600px) {
  .news-paper {
    padding: 1.5rem;
  }

  .news-header__title {
    font-size: 2.5rem;
  }

  .news-section__title {
    font-size: 1.375rem;
  }

  .news-article__title {
    font-size: 1.25rem;
  }

  /* Two-column layout for articles within a section */
  .news-section__articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.5rem;
  }
}

/* Desktop */
@media (min-width: 900px) {
  .news-paper {
    padding: 2rem;
  }

  .news-header__title {
    font-size: 3rem;
  }

  .news-header__date {
    font-size: 1rem;
  }
}
