/* ============================================================
   ARTICLE.CSS | Plunge Depth
   Uses CSS variables defined in style.css.
   No :root redefinition. No Google Fonts import.
   ============================================================ */

/* ----------------------------------------------------------
   ARTICLE HERO
   ---------------------------------------------------------- */
.article-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.article-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 14, 34, 0.95) 0%,
    rgba(6, 14, 34, 0.7) 40%,
    rgba(6, 14, 34, 0.3) 100%
  );
}

.article-hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 5vw, 3rem) 0;
  width: 100%;
}

.article-hero-cat {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--space-2);
}

.article-hero-title {
  font-size: var(--fs-3xl);
  color: var(--white);
  margin-bottom: var(--space-2);
  max-width: 18ch;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-weight: 800;
}

.article-hero-sub {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.65);
  max-width: 52ch;
  line-height: 1.6;
  margin-bottom: var(--space-3);
  font-family: 'Literata', Georgia, serif;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.article-meta-item {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ----------------------------------------------------------
   ARTICLE LAYOUT
   ---------------------------------------------------------- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-8);
  align-items: start;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.article-main {
  min-width: 0;
}

.article-body {
  font-family: 'Literata', Georgia, serif;
  font-size: var(--fs-md);
  line-height: 1.75;
  color: var(--text);
}

.article-body h2 {
  font-family: 'Syne', sans-serif;
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 var(--space-3);
  padding-top: var(--space-3);
  border-top: 2px solid var(--border);
  color: var(--text);
}

.article-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: var(--space-5) 0 var(--space-2);
  color: var(--text);
}

.article-body p {
  margin-bottom: var(--space-3);
}

.article-body ul,
.article-body ol {
  margin-bottom: var(--space-3);
  padding-left: var(--space-4);
}

.article-body ul {
  list-style: disc;
}

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

.article-body li {
  margin-bottom: var(--space-1);
}

.article-body a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration-fast) var(--ease-out);
}

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

.article-intro {
  font-size: var(--fs-lg);
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
  font-family: 'Literata', Georgia, serif;
  font-style: italic;
}

/* ----------------------------------------------------------
   DISCLOSURE NOTICE
   ---------------------------------------------------------- */
.disclosure-notice {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

/* ----------------------------------------------------------
   AUTHOR BYLINE
   ---------------------------------------------------------- */
.author-byline {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-5);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-info .name {
  font-family: 'Syne', sans-serif;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text);
}

.author-info .title {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ----------------------------------------------------------
   TOC SIDEBAR
   ---------------------------------------------------------- */
.toc-sidebar {
  position: sticky;
  top: 96px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  font-size: var(--fs-sm);
}

.toc-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}

.toc-item {
  counter-increment: toc;
  margin-bottom: 6px;
}

.toc-item a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--fs-sm);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
  line-height: 1.4;
}

.toc-item a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cyan);
  opacity: 0.7;
  min-width: 20px;
  flex-shrink: 0;
}

.toc-item a:hover {
  color: var(--navy);
  background: var(--off-white);
}

/* ----------------------------------------------------------
   QUICK PICKS
   ---------------------------------------------------------- */
.qp {
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

.qp-heading {
  font-family: 'Syne', sans-serif;
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: var(--space-4);
  text-align: center;
}

.qp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: var(--space-3);
}

.qp-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  text-align: center;
  transition: background var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}

.qp-card:hover {
  background: rgba(0, 194, 212, 0.08);
  transform: translateY(-3px);
}

.qp-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}

.qp-name {
  font-family: 'Syne', sans-serif;
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.3;
}

.qp-note {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

/* ----------------------------------------------------------
   PRODUCT CARDS
   ---------------------------------------------------------- */
.prod {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--duration-base) var(--ease-out);
}

.prod:hover {
  box-shadow: var(--shadow-lg);
}

.prod-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  gap: var(--space-3);
  flex-wrap: wrap;
}

.prod-rank {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(11, 61, 145, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}

.prod-rank.gold {
  background: rgba(255, 185, 0, 0.15);
  color: #C08000;
  border: 1px solid rgba(255, 185, 0, 0.3);
}

.prod-title-area {
  flex: 1;
  min-width: 0;
}

.prod-title-area h3 {
  font-family: 'Syne', sans-serif;
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
  color: var(--text);
  line-height: 1.2;
}

.prod-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.prod-badge {
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 194, 212, 0.1);
  color: #0097A7;
  border: 1px solid rgba(0, 194, 212, 0.25);
}

.prod-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
  flex-shrink: 0;
}

.prod-score-num {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1;
}

.prod-score-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.star-row {
  display: flex;
  gap: 2px;
  margin-top: 3px;
}

.star-row svg {
  color: #F59E0B;
  width: 14px;
  height: 14px;
}

.prod-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.prod-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-5);
  padding: var(--space-4);
}

.prod-review {
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text);
  font-family: 'Literata', Georgia, serif;
}

.prod-review p {
  margin-bottom: var(--space-3);
}

.prod-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: fit-content;
  position: sticky;
  top: 100px;
  text-align: center;
}

.prod-price {
  font-family: 'Syne', sans-serif;
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}

.prod-price-note {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.prod-cta .btn {
  width: 100%;
}

/* ----------------------------------------------------------
   SPECS
   ---------------------------------------------------------- */
.specs {
  margin: var(--space-4) 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.specs-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-2) var(--space-3);
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}

.spec {
  display: flex;
  align-items: baseline;
  padding: 10px var(--space-3);
  border-bottom: 1px solid var(--border);
  gap: var(--space-2);
}

.spec:last-child {
  border-bottom: none;
}

.spec-label {
  font-family: 'Syne', sans-serif;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  min-width: 140px;
  flex-shrink: 0;
}

.spec-value {
  font-size: var(--fs-sm);
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}

/* ----------------------------------------------------------
   PROS / CONS
   ---------------------------------------------------------- */
.pc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.pros {
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.cons {
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.pc-heading {
  font-family: 'Syne', sans-serif;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.pros .pc-heading {
  color: #059669;
}

.cons .pc-heading {
  color: #DC2626;
}

.pc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pc-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--text);
  line-height: 1.5;
  font-family: 'Literata', Georgia, serif;
}

.pc-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
}

/* ----------------------------------------------------------
   FAQ
   ---------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: var(--space-4) 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3);
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  list-style: none;
  background: var(--surface-elevated);
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
  user-select: none;
  width: 100%;
  text-align: left;
  border: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  background: var(--off-white);
  color: var(--navy);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--cyan);
}

.faq-answer {
  display: none;
  padding: 0 var(--space-3) var(--space-3);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text-muted);
  background: var(--surface-elevated);
  font-family: 'Literata', Georgia, serif;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ----------------------------------------------------------
   COMPARISON TABLE
   ---------------------------------------------------------- */
.comparison-table-wrap {
  overflow-x: auto;
  margin: var(--space-4) 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.comparison-table th {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px;
  background: var(--off-white);
  border-bottom: 2px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
  white-space: normal;
}

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

.comparison-table tr:hover td {
  background: var(--off-white);
}

.check {
  color: #10B981;
  display: flex;
  align-items: center;
}

.cross {
  color: #EF4444;
  display: flex;
  align-items: center;
}

.winner-cell {
  background: rgba(0, 194, 212, 0.06);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--navy);
}

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

  .toc-sidebar {
    position: static;
  }

  .prod-body {
    grid-template-columns: 1fr;
  }

  .prod-cta {
    position: static;
  }
}

@media (max-width: 640px) {
  .pc {
    grid-template-columns: 1fr;
  }

  .article-hero {
    min-height: 320px;
  }

  .prod-hdr {
    flex-direction: column;
    align-items: flex-start;
  }

  .prod-score {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2);
    min-width: unset;
  }

  .comparison-table {
    font-size: 0.75rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
  }
}
