/* ========================================
   BLOG LISTING PAGE
   ======================================== */

.blog-header {
  margin-top: var(--ticker-height);
  padding: 4rem 1.5rem 2.5rem;
  border-bottom: 2px solid var(--accent-red);
  background: linear-gradient(to bottom, #0f0000, var(--bg-primary));
}

.blog-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.blog-page-title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 64px);
  color: var(--text-primary);
  text-transform: uppercase;
  line-height: 1.1;
}

.blog-page-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  max-width: 600px;
}

/* Featured Article Card */
.blog-featured {
  padding: 2.5rem 1.5rem;
}

.blog-featured-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.blog-card {
  display: block;
  background: var(--bg-secondary);
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-2px);
  text-decoration: none;
}

.blog-card--featured {
  display: grid;
  grid-template-columns: 1fr;
}

.blog-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.03);
}

.blog-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-red);
  color: #fff;
  font-family: var(--font-subheadline);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 3px;
  text-transform: uppercase;
}

.blog-card-badge--soon {
  background: var(--accent-orange);
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-category {
  font-family: var(--font-subheadline);
  font-size: 12px;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.blog-card-title {
  font-family: var(--font-subheadline);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0.5rem 0 0.75rem;
}

.blog-card--featured .blog-card-title {
  font-family: var(--font-headline);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
}

.blog-card-excerpt {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.blog-card-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
}

/* Blog Grid */
.blog-grid-section {
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid #1a1a1a;
}

.blog-grid-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.blog-card--upcoming {
  opacity: 0.7;
  cursor: default;
}

.blog-card--upcoming:hover {
  transform: none;
  border-color: #1a1a1a;
}

.blog-card-image--placeholder {
  background: linear-gradient(135deg, #141414, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
}

/* Nav active state */
.nav-active {
  color: var(--accent-red) !important;
}

/* ========================================
   ARTICLE PAGE ENHANCEMENTS
   ======================================== */

.article-hero {
  position: relative;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  margin-top: var(--ticker-height);
}

.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 500px;
}

.article-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(10,10,10,0.9), transparent);
}

/* Article page override — tighter margin since hero is present */
.article-hero + .article-header {
  margin-top: 0;
}

.article-page {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.article-header {
  padding-top: 2rem;
  margin-bottom: 2rem;
}

.article-title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(26px, 4.5vw, 48px);
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 13px;
  color: var(--text-muted);
  align-items: center;
}

.article-meta > *:not(:last-child)::after {
  content: "\00B7";
  margin-left: 0.75rem;
  color: var(--text-muted);
}

/* AI Summary block */
.article-summary {
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent-red);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0 6px 6px 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.article-summary strong {
  color: var(--text-primary);
}

/* Table of Contents */
.article-toc {
  background: var(--bg-secondary);
  border: 1px solid #222;
  border-radius: 8px;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  margin-bottom: 2.5rem;
}

.article-toc h2 {
  font-family: var(--font-subheadline);
  font-size: 18px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.article-toc ol {
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-toc li {
  font-size: 14px;
  line-height: 1.5;
}

.article-toc a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.article-toc a:hover {
  color: var(--accent-orange);
}

/* Article body typography */
.article-body h2 {
  font-family: var(--font-subheadline);
  font-size: clamp(22px, 3vw, 30px);
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-body h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.article-body h3 {
  font-family: var(--font-subheadline);
  font-size: 20px;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
  font-weight: 600;
}

.article-body p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.article-body strong {
  color: var(--text-primary);
}

.article-body em {
  color: var(--text-secondary);
}

.article-body a {
  color: var(--accent-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: var(--accent-red);
}

.article-body ul,
.article-body ol {
  margin: 0.75rem 0 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.article-body li strong {
  color: var(--text-primary);
}

/* Figures */
.article-figure {
  margin: 2rem 0;
}

.article-figure img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #222;
}

.article-figure figcaption {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
  line-height: 1.5;
}

/* Timeline entries */
.timeline {
  margin: 1rem 0 2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent-red);
}

.timeline-entry {
  padding: 0.75rem 0 0.75rem 1.25rem;
  position: relative;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 1rem;
  width: 12px;
  height: 12px;
  background: var(--accent-red);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
}

.timeline-date {
  font-family: var(--font-subheadline);
  font-size: 14px;
  color: var(--accent-orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 0.4rem;
}

.timeline-entry p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Sources list */
.sources-list {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.sources-list ol {
  padding-left: 1.25rem;
}

.sources-list li {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.sources-list a {
  color: var(--accent-orange);
}

/* Article share section */
.article-share-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--accent-red);
}

/* Blog Filter Bar */
.blog-filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1.25rem 0 0;
}

.blog-filter-btn {
  font-family: var(--font-subheadline);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid #222;
  border-radius: 4px;
  padding: 6px 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.blog-filter-btn:hover {
  color: var(--text-primary);
  border-color: #444;
}

.blog-filter-btn--active {
  color: #fff;
  background: var(--accent-red);
  border-color: var(--accent-red);
}

/* Blog card visibility animation */
.blog-card--visible {
  animation: blogCardIn 0.3s ease forwards;
}

@keyframes blogCardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Load More Button */
.blog-load-more {
  text-align: center;
  padding: 2rem 0 1rem;
}

.load-more-btn {
  font-family: var(--font-subheadline);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  background: transparent;
  border: 2px solid var(--accent-red);
  border-radius: 6px;
  padding: 12px 32px;
  cursor: pointer;
  transition: all 0.2s;
}

.load-more-btn:hover {
  background: var(--accent-red);
  color: #fff;
}

.load-more-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  margin-top: 4px;
}

/* ========================================
   RESPONSIVE — TABLET (768px+)
   ======================================== */

@media (min-width: 768px) {
  .blog-card--featured {
    grid-template-columns: 1.2fr 1fr;
  }

  .blog-card--featured .blog-card-image {
    aspect-ratio: auto;
  }

  .blog-card--featured .blog-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .article-hero {
    max-height: 450px;
  }

  .blog-header {
    padding: 5rem 1.5rem 3rem;
  }
}

/* ========================================
   RESPONSIVE — DESKTOP (1024px+)
   ======================================== */

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .blog-card--featured .blog-card-title {
    font-size: 32px;
  }

  .blog-card--featured .blog-card-content {
    padding: 2.5rem;
  }
}
