/* ===========================
   ARTICLE PAGE STYLES
   =========================== */

/* ARTICLE HERO */
.article-hero {
  position: relative;
  padding: 100px 0 72px;
  overflow: hidden;
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    #06030e 0%,
    #0d0920 30%,
    #1a0640 60%,
    #2d0f5e 100%
  );
  z-index: 0;
}

.article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 80% 50%,
    rgba(192, 38, 211, 0.15) 0%,
    transparent 60%
  );
  z-index: 1;
  pointer-events: none;
}

.article-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.article-category {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.article-tag-pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--magenta);
  background: rgba(192, 38, 211, 0.12);
  border: 1px solid rgba(192, 38, 211, 0.3);
  padding: 4px 12px;
  border-radius: 2px;
}

.article-hero h1 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.93;
  letter-spacing: 0.01em;
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-bottom: 28px;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.article-meta-row a {
  color: inherit;
  text-decoration: none;
}

.article-meta-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-meta-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(244, 114, 182, 0.4);
  flex-shrink: 0;
}

.article-meta-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-meta-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
}

.article-meta-title {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

.article-meta-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}

.article-meta-info {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ARTICLE LAYOUT */
.article-layout {
  padding: 72px 0 100px;
}

.article-layout-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 72px;
  align-items: start;
}

/* ARTICLE BODY */
.article-body {
  max-width: 720px;
}

.article-body p {
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--off-white);
  margin-bottom: 24px;
}

.article-body h2 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1;
  color: var(--white);
  margin: 60px 0 20px;
  letter-spacing: 0.01em;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  margin: 36px 0 14px;
  letter-spacing: 0.01em;
}

.article-body strong {
  color: var(--white);
  font-weight: 700;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 56px 0;
}

/* Section divider rule under H2 */
.article-body h2 + .section-rule {
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--magenta));
  border-radius: 2px;
  margin-bottom: 24px;
}

/* Numbered question list */
.article-body .question-list {
  list-style: none;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-body .question-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}

.question-num {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--magenta);
  line-height: 1.4;
}

/* Blockquote */
.article-body blockquote {
  border-left: 3px solid var(--magenta);
  padding: 20px 28px;
  margin: 36px 0;
  background: rgba(192, 38, 211, 0.06);
  border-radius: 0 4px 4px 0;
}

.article-body blockquote p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.65;
}

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

.article-body blockquote cite {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Comparison table */
.article-table-wrap {
  overflow-x: auto;
  margin: 36px 0;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.article-table th {
  background: rgba(30, 13, 66, 0.8);
  color: var(--pink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.article-table td {
  padding: 14px 20px;
  color: var(--off-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
  line-height: 1.55;
}

.article-table tr:last-child td {
  border-bottom: none;
}

.article-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.article-table .col-avoid {
  color: var(--muted);
  font-size: 0.85rem;
}

.article-table .col-track {
  color: var(--off-white);
}

/* Six markers numbered list */
.article-markers {
  list-style: none;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-markers li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color 0.2s;
}

.article-markers li:hover {
  border-color: rgba(192, 38, 211, 0.3);
}

.marker-num {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--magenta);
  line-height: 1.3;
  min-width: 32px;
}

.marker-text {
  font-size: 0.95rem;
  color: var(--off-white);
  line-height: 1.6;
  padding-top: 2px;
}

/* Inline book CTA within article */
.article-inline-cta {
  background: linear-gradient(
    135deg,
    rgba(30, 13, 66, 0.8) 0%,
    rgba(91, 33, 182, 0.2) 100%
  );
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 8px;
  padding: 32px 36px;
  margin: 48px 0;
  display: flex;
  gap: 28px;
  align-items: center;
}

.article-inline-cta-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 80px;
  background: linear-gradient(135deg, #1e0d42, #7c3aed, #c026d3);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.article-inline-cta-thumb::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px 0 0 3px;
}

.article-inline-cta-thumb span {
  font-family: var(--display);
  font-size: 0.5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  line-height: 1.2;
  padding: 0 6px;
  letter-spacing: 0.05em;
}

.article-inline-cta-text {
  flex: 1;
}

.article-inline-cta-text p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.article-inline-cta-text strong {
  color: var(--white);
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
}

/* SIDEBAR */
.article-sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-book-card {
  background: linear-gradient(
    145deg,
    rgba(30, 13, 66, 0.9) 0%,
    rgba(13, 9, 32, 0.95) 100%
  );
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 8px;
  padding: 28px 24px;
  margin-bottom: 24px;
}

.sidebar-book-cover {
  width: 100%;
  aspect-ratio: 3/4;
  max-height: 200px;
  background: linear-gradient(145deg, #1e0d42, #5b21b6, #7c3aed, #c026d3);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 20px;
  text-align: center;
}

.sidebar-book-cover .cover-pre {
  font-family: var(--display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sidebar-book-cover .cover-title {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.04em;
}

.sidebar-book-cover .cover-divider {
  width: 32px;
  height: 2px;
  background: rgba(244, 114, 182, 0.7);
  margin: 10px auto;
}

.sidebar-book-cover .cover-author {
  font-family: var(--display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
}

.sidebar-book-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 8px;
}

.sidebar-book-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.sidebar-book-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-book-actions .btn {
  width: 100%;
  text-align: center;
}

.sidebar-author-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.sidebar-author-inner {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.sidebar-author-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(244, 114, 182, 0.3);
  flex-shrink: 0;
}

.sidebar-author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-author-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--white);
}

.sidebar-author-role {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 3px;
}

.sidebar-author-bio {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.sidebar-author-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--purple-hi);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.sidebar-author-link:hover {
  color: var(--pink);
}

/* ARTICLE FOOTER CTA */
.article-footer-cta {
  padding: 80px 0;
  background: linear-gradient(160deg, #06030e 0%, #0d0920 40%, #1a0640 100%);
  border-top: 1px solid var(--line);
}

.article-footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.article-footer-cta-text .label {
  margin-bottom: 14px;
}

.article-footer-cta-text h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 16px;
}

.article-footer-cta-text p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.65;
}

.article-footer-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .article-layout-inner {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .article-sidebar .sidebar-book-card,
  .article-sidebar .sidebar-author-card {
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  .article-hero {
    padding: 72px 0 52px;
  }

  .article-meta-row {
    gap: 14px;
  }

  .article-meta-divider {
    display: none;
  }

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

  .article-inline-cta {
    flex-direction: column;
    gap: 20px;
    padding: 24px 20px;
  }

  .article-inline-cta-thumb {
    width: 48px;
    height: 60px;
  }

  .article-footer-cta-inner {
    flex-direction: column;
  }

  .article-body h2 {
    margin-top: 44px;
  }
}
