/* ==========================================================================
   Batomon Showdown - Article & Real Sample Styles (article.css)
   Conforming to 00B Visual Contract & Longform Editorial Typographic Standards
   ========================================================================== */

/* Article Layout Container */
.article-container {
  width: 100%;
  max-width: var(--article-max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 40px 20px 60px 20px;
}

/* Article Header */
.article-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-title {
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 16px;
}

.article-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 0;
}

/* Table of Contents / Outline Box */
.toc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 32px 0 40px 0;
  box-shadow: var(--shadow-sm);
}

.toc-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-list li {
  font-size: 0.94rem;
}

.toc-list a {
  color: var(--text-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.toc-list a:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.toc-list a::before {
  content: "→";
  color: var(--accent-cyan);
  font-size: 0.85em;
}

/* Article Body Typography */
.article-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e2e8f0;
}

.article-body h2 {
  font-size: 1.65rem;
  color: #ffffff;
  margin-top: 2.2em;
  margin-bottom: 0.6em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-body h3 {
  font-size: 1.28rem;
  color: #f8fafc;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

.article-body p {
  margin-bottom: 1.25em;
}

.article-body ul, 
.article-body ol {
  margin: 1.2em 0 1.5em 1.4em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-body li {
  padding-left: 4px;
}

.article-body li strong {
  color: #ffffff;
}

/* Checklist Cards (for Patch Verification) */
.checklist-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 1.6em 0;
  box-shadow: var(--shadow-sm);
}

.checklist-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}

.checklist-card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checklist-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.checklist-item:first-of-type {
  border-top: none;
}

.checklist-tag {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  align-self: start;
  white-space: nowrap;
}

.checklist-tag.old {
  background: rgba(240, 101, 149, 0.15);
  color: var(--accent-pink);
  border: 1px solid rgba(240, 101, 149, 0.3);
}

.checklist-tag.new {
  background: rgba(56, 217, 214, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 217, 214, 0.3);
}

.checklist-tag.action {
  background: rgba(252, 196, 25, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(252, 196, 25, 0.3);
}

/* Comparison Table Styling in Article */
.article-body .table-scroll-wrapper {
  margin: 2em 0;
}

.article-body table th {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.article-body table td {
  font-size: 0.92rem;
  line-height: 1.5;
}

.table-badge {
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.table-badge.nerf {
  background: rgba(240, 101, 149, 0.2);
  color: #ff8787;
}

.table-badge.buff {
  background: rgba(56, 217, 214, 0.2);
  color: #63e6be;
}

.table-badge.fix {
  background: rgba(252, 196, 25, 0.2);
  color: #ffd43b;
}

/* Return / Back Link */
.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.article-back-link:hover {
  color: var(--accent-cyan);
}

/* Contextual Citation Footnote (00B 4B.1) */
.contextual-citation-note {
  margin-top: 36px;
  padding: 16px 20px;
  background: rgba(16, 28, 38, 0.6);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
  font-size: 0.88rem;
  color: var(--text-dim);
}

.contextual-citation-note p {
  margin-bottom: 6px;
}

.contextual-citation-note p:last-child {
  margin-bottom: 0;
}

/* Mobile responsiveness */
.support-flow {
  overflow-x: auto;
}

.support-flow img {
  min-width: 650px;
}

.symptom-table {
  table-layout: fixed;
  min-width: 680px;
}

.symptom-table th[scope="row"] {
  width: 34%;
  white-space: normal;
  vertical-align: top;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 1.6rem;
    overflow-wrap: break-word;
  }
  
  .article-lead {
    font-size: 1rem;
  }

  .article-container {
    padding: 20px 14px 44px 14px;
  }

  .checklist-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
