/* ============================================================
   Legión4Ever DE LAS SOMBRAS — Article Reader
   Cinematic editorial layout for individual articles
   ============================================================ */

.article-page {
  padding-bottom: var(--space-4xl);
  background: var(--bg-abyss);
}

/* ── Article Hero Image ── */
.article-hero {
  position: relative;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  margin-bottom: var(--space-2xl);
}

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

.article-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, var(--bg-abyss));
}

/* ── Article Container ── */
.article-container {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.breadcrumb a {
  color: var(--cyan-primary);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--cyan-light);
}

.breadcrumb-sep {
  color: var(--text-muted);
  opacity: 0.5;
}

/* ── Article Header ── */
.article-header {
  margin-bottom: var(--space-2xl);
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.article-title {
  font-size: var(--fs-h1);
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--gold-bright);
  text-shadow: 0 0 20px rgba(229, 193, 88, 0.3);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-md);
}

.article-excerpt {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: var(--lh-loose);
  font-style: italic;
  border-left: 3px solid var(--gold-primary);
  padding-left: var(--space-lg);
}

/* ── Article Content Body ── */
.article-content {
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--gold-bright);
  margin: var(--space-2xl) 0 var(--space-md);
  text-shadow: 0 0 10px rgba(229, 193, 88, 0.2);
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--cyan-light);
  margin: var(--space-xl) 0 var(--space-md);
}

.article-content p {
  margin-bottom: var(--space-lg);
}

.article-content strong {
  color: var(--gold-bright);
  font-weight: var(--fw-semibold);
}

.article-content em {
  color: var(--cyan-pale);
}

.article-content a {
  color: var(--cyan-primary);
  border-bottom: 1px solid rgba(0, 191, 255, 0.3);
  transition: all var(--transition-fast);
}

.article-content a:hover {
  color: var(--cyan-light);
  border-bottom-color: var(--cyan-light);
}

.article-content ul,
.article-content ol {
  margin: var(--space-md) 0 var(--space-lg);
  padding-left: var(--space-xl);
}

.article-content ul {
  list-style: none;
}

.article-content ul li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.article-content ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--cyan-primary);
  font-size: 0.6rem;
  top: 0.5em;
}

.article-content ol {
  list-style: decimal;
}

.article-content ol li {
  margin-bottom: var(--space-sm);
}

/* Blockquotes (Blizzard style) */
.article-content blockquote {
  position: relative;
  margin: var(--space-xl) 0;
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-card);
  border-left: 4px solid var(--gold-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-content blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 15px;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold-primary);
  opacity: 0.3;
  line-height: 1;
}

/* Responsive video embed */
.article-content .video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: var(--space-xl) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-gold);
}

.article-content .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Images in articles */
.article-content img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: var(--space-lg) 0;
}

/* ── Article Navigation (Prev/Next) ── */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.article-nav-link {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.article-nav-link:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.article-nav-link--next {
  text-align: right;
}

.article-nav-label {
  font-size: var(--fs-xs);
  color: var(--cyan-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-nav-title {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  color: var(--text-primary);
  font-weight: var(--fw-semibold);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .article-hero {
    max-height: 300px;
  }

  .article-hero img {
    height: 300px;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav-link--next {
    text-align: left;
  }
}