/*
 * Homepage Styles
 * NYT-style homepage layout with hero section and mixed content sections
 */

/* ===== NYT HOMEPAGE STYLES ===== */

.nyt-homepage {
  background-color: var(--bg-primary);
}

/* Hero Section */
.nyt-hero-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.nyt-hero-article {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.nyt-hero-content {
  flex: 1;
  min-width: 0;
}

.nyt-hero-category {
  margin-bottom: 1rem;
}

.nyt-hero-category a {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.25rem;
}

.nyt-hero-category a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.nyt-hero-headline {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 1rem 0;
  color: var(--text-primary);
}

.nyt-hero-headline a {
  color: inherit;
  text-decoration: none;
}

.nyt-hero-headline a:hover {
  color: var(--link-color);
}

.nyt-hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--text-secondary);
  margin: 1.5rem 0;
  font-style: italic;
}

.nyt-hero-meta {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-byline a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
}

.hero-byline a:hover {
  text-decoration: underline;
}

.nyt-hero-image {
  flex: 0 0 400px;
  margin: 0;
}

.nyt-hero-image img {
  width: 100%;
  height: auto;
  max-width: 800px;
}

.nyt-hero-caption {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  text-align: left;
  padding-left: 1rem;
  border-left: 3px solid var(--border-color);
}

/* Latest Articles Section */
.nyt-latest-section {
  padding: 3rem 0;
}

.nyt-section-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.nyt-section-title {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nyt-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.nyt-article-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

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

.nyt-article-image {
  margin-bottom: 1rem;
}

.nyt-article-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.nyt-article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
}

.nyt-article-category {
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.nyt-article-category:hover {
  color: var(--text-primary);
}

.nyt-article-date {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nyt-article-headline {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.75rem 0;
}

.nyt-article-headline a {
  color: var(--text-primary);
  text-decoration: none;
}

.nyt-article-headline a:hover {
  text-decoration: underline;
}

.nyt-article-summary {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Popular Articles Section */
.nyt-popular-section {
  background-color: var(--bg-secondary);
  padding: 3rem 0;
  margin: 3rem 0;
}

.nyt-popular-list {
  display: grid;
  gap: 1.5rem;
}

.nyt-popular-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.nyt-popular-item:last-child {
  border-bottom: none;
}

.nyt-popular-number {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
  min-width: 2.5rem;
}

.nyt-popular-content {
  flex: 1;
}

.nyt-popular-headline {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.5rem 0;
}

.nyt-popular-headline a {
  color: var(--text-primary);
  text-decoration: none;
}

.nyt-popular-headline a:hover {
  text-decoration: underline;
}

.nyt-popular-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
}

.nyt-popular-category {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.nyt-popular-date {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Recent Articles Grid */
.nyt-recent-section {
  padding: 3rem 0;
}

.nyt-recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.nyt-recent-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.nyt-recent-image {
  flex-shrink: 0;
  width: 100px;
  height: 80px;
  overflow: hidden;
}

.nyt-recent-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nyt-recent-content {
  flex: 1;
  min-width: 0;
}

.nyt-recent-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
}

.nyt-recent-category {
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.nyt-recent-category:hover {
  color: var(--text-primary);
}

.nyt-recent-date {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nyt-recent-headline {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.nyt-recent-headline a {
  color: var(--text-primary);
  text-decoration: none;
}

.nyt-recent-headline a:hover {
  text-decoration: underline;
}

/* Mobile Responsive for Homepage */
@media (max-width: 768px) {
  .nyt-hero-article {
    flex-direction: column;
  }
  
  .nyt-hero-image {
    flex: none;
    order: -1;
  }
  
  .nyt-hero-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .nyt-articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .nyt-recent-grid {
    grid-template-columns: 1fr;
  }
  
  .nyt-popular-number {
    font-size: 1.5rem;
    min-width: 2rem;
  }
}
