/* ===== Article Layout ===== */

/* Breadcrumb */
.article-breadcrumb {
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.article-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
}

.article-breadcrumb li {
  display: flex;
  align-items: center;
}

.article-breadcrumb li:not(:last-child)::after {
  content: "›";
  margin: 0 8px;
  color: #8899a6;
}

.article-breadcrumb a {
  color: #00729e;
  text-decoration: none;
}

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

.article-breadcrumb li:last-child {
  color: #5f6b7a;
}

/* Article Content Container */
.article-content {
  background: #fff;
  border-radius: 12px;
  padding: 40px 48px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  max-width: 820px;
  margin: 0 auto;
}

/* Header */
.article-header {
  margin-bottom: 32px;
  border-bottom: 1px solid #e8edf2;
  padding-bottom: 24px;
}

.article-header h1 {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  color: #1a2936;
  margin-bottom: 8px;
}

.article-subtitle {
  font-size: 1.15rem;
  color: #5f6b7a;
  margin-bottom: 12px;
  line-height: 1.5;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: #8899a6;
}

.article-meta time::before {
  content: "📅 ";
}

.article-reading-time::before {
  content: "⏱ ";
}

/* Table of Contents */
.article-toc {
  background: #f6f8fa;
  border: 1px solid #e8edf2;
  border-radius: 8px;
  padding: 16px 24px;
  margin-bottom: 32px;
}

.article-toc summary {
  cursor: pointer;
  font-size: 1rem;
  color: #1a2936;
}

.article-toc nav > ul,
.article-toc #TableOfContents > ul {
  margin-top: 12px;
  padding-left: 20px;
}

.article-toc li {
  margin-bottom: 6px;
  line-height: 1.5;
}

.article-toc a {
  color: #00729e;
  text-decoration: none;
  font-size: 0.95rem;
}

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

/* Article Body Typography */
.article-body {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2d3748;
}

.article-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a2936;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8edf2;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a2936;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-body p {
  margin-bottom: 18px;
}

.article-body ul,
.article-body ol {
  margin-bottom: 18px;
  padding-left: 28px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body strong {
  color: #1a2936;
}

.article-body a {
  color: #00729e;
  text-decoration: underline;
  text-decoration-color: rgba(0,114,158,0.3);
  text-underline-offset: 2px;
}

.article-body a:hover {
  text-decoration-color: #00729e;
}

/* Tables */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.article-body thead {
  background: #1a2936;
  color: #fff;
}

.article-body th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-body td {
  padding: 12px 16px;
  border-bottom: 1px solid #e8edf2;
}

.article-body tbody tr:nth-child(even) {
  background: #f6f8fa;
}

.article-body tbody tr:hover {
  background: #eef5fa;
}

/* Blockquotes / Callouts */
.article-body blockquote {
  background: #f0f7fb;
  border-left: 4px solid #00729e;
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  color: #2d3748;
  font-style: normal;
}

.article-body blockquote p {
  margin-bottom: 0;
}

/* Code */
.article-body code {
  background: #f0f2f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Related Articles */
.article-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid #e8edf2;
}

.article-related h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a2936;
  margin-bottom: 20px;
  border-bottom: none;
  padding-bottom: 0;
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.article-related-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #f6f8fa;
  border-radius: 10px;
  border: 1px solid #e8edf2;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.article-related-title {
  font-weight: 600;
  color: #1a2936;
  margin-bottom: 6px;
  font-size: 1rem;
}

.article-related-desc {
  font-size: 0.88rem;
  color: #5f6b7a;
  line-height: 1.5;
}

/* CTA Section */
.article-cta {
  margin-top: 48px;
  padding: 32px;
  background: linear-gradient(135deg, #00729e 0%, #005a7e 100%);
  border-radius: 12px;
  text-align: center;
  color: #fff;
}

.article-cta h2 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 12px;
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 0;
}

.article-cta p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.article-cta-btn {
  display: inline-block;
  padding: 14px 36px;
  background: #fff;
  color: #00729e;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* Mobile */
@media (max-width: 768px) {
  .article-content {
    padding: 24px 20px;
    border-radius: 0;
  }

  .article-header h1 {
    font-size: 1.6rem;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .article-body {
    font-size: 1rem;
  }

  .article-body h2 {
    font-size: 1.35rem;
    margin-top: 36px;
  }

  .article-body h3 {
    font-size: 1.1rem;
    margin-top: 24px;
  }

  .article-body table {
    font-size: 0.85rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .article-body th,
  .article-body td {
    padding: 8px 12px;
  }

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

  .article-cta {
    padding: 24px 20px;
  }

  /* Add bottom padding to account for mobile CTA bar */
  .article-content {
    padding-bottom: 80px;
  }
}

/* ===== Sidebar Game CTA ===== */
.sidebar-game-cta {
  background: linear-gradient(135deg, #00729e 0%, #005a7e 100%);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
  position: sticky;
  top: 16px;
  z-index: 10;
}

.sidebar-game-cta-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  line-height: 1;
}

.sidebar-game-cta-heading {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.sidebar-game-cta-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.sidebar-game-cta-btn {
  display: inline-block;
  width: 100%;
  padding: 12px 20px;
  background: #fff;
  color: #00729e;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.sidebar-game-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* ===== Mobile Fixed Bottom CTA Bar ===== */
.mobile-game-cta-bar {
  display: none;
}

@media (max-width: 900px) {
  .mobile-game-cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: linear-gradient(135deg, #00729e 0%, #005a7e 100%);
    padding: 10px 16px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
    gap: 12px;
  }

  .mobile-game-cta-label {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
  }

  .mobile-game-cta-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    color: #00729e;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.15s;
    text-align: center;
  }

  .mobile-game-cta-btn:hover {
    transform: translateY(-1px);
  }
}

/* Key Takeaways block (GEO-optimized summary) */
.key-takeaways {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.06));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-left: 4px solid #6366f1;
  border-radius: 10px;
  padding: 0;
  margin: 1.2rem 0 1.8rem 0;
  overflow: hidden;
}

.key-takeaways-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(99, 102, 241, 0.06);
  border-bottom: 1px solid rgba(99, 102, 241, 0.12);
  font-size: 0.95rem;
  color: #c4b5fd;
}

.key-takeaways-icon {
  font-size: 1.1rem;
}

.key-takeaways-body {
  padding: 14px 18px;
}

.key-takeaways-body ul {
  margin: 0;
  padding-left: 1.2em;
}

.key-takeaways-body li {
  margin-bottom: 6px;
  line-height: 1.55;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.88);
}

.key-takeaways-body li:last-child {
  margin-bottom: 0;
}
