/* ==========================================================================
   SEABOOK - Article pages
   Builds on style.css (tokens, nav, buttons, footer). Loaded after it.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Article hero
   -------------------------------------------------------------------------- */
.article-hero {
  padding: 9rem 2rem 4rem;
  text-align: center;
}

.article-hero .hero-content {
  max-width: 820px;
}

.article-hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  color: white;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.article-hero h1 span {
  color: var(--teal);
}

.article-hero .hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 680px;
  margin: 0 auto 1.5rem;
}

.article-meta {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Article body
   -------------------------------------------------------------------------- */
.article-section {
  background: white;
  padding: 4rem 1.5rem 5rem;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-medium);
}

.article-body > * + * {
  margin-top: 1.1rem;
}

.article-body h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  color: var(--text-dark);
  margin-top: 3.5rem;
}

.article-body h2 span {
  color: var(--coral);
}

.article-body h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-top: 2.5rem;
}

.article-body strong {
  color: var(--text-dark);
}

.article-body a {
  color: var(--ocean-blue);
  font-weight: 700;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

.article-body ul,
.article-body ol {
  padding-left: 1.4rem;
}

.article-body li + li {
  margin-top: 0.5rem;
}

.disclosure {
  font-size: 0.95rem;
  color: var(--text-light);
  border-left: 4px solid var(--sunny);
  padding: 0.25rem 0 0.25rem 1rem;
}

/* --------------------------------------------------------------------------
   Quick picks
   -------------------------------------------------------------------------- */
.quick-picks {
  background: var(--foam);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 10px 40px var(--shadow-blue);
}

.quick-picks h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.quick-picks ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.quick-picks li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.quick-picks li + li {
  margin-top: 1rem;
}

.pick-icon {
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  background: white;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px var(--shadow-dark);
}

/* --------------------------------------------------------------------------
   Comparison table
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 20px;
  box-shadow: 0 10px 40px var(--shadow-blue);
  margin-top: 1.5rem;
}

.compare-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: white;
}

.compare-table caption {
  caption-side: top;
  text-align: left;
  font-family: 'Fredoka', cursive;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark);
  padding: 1rem 1.25rem 0.75rem;
  background: var(--sand);
}

.compare-table th,
.compare-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(25, 55, 109, 0.08);
}

.compare-table thead th {
  background: var(--deep-sea);
  color: white;
  font-family: 'Fredoka', cursive;
  font-weight: 500;
  white-space: nowrap;
}

.compare-table tbody th {
  color: var(--text-dark);
  font-weight: 700;
  white-space: nowrap;
}

.compare-table tbody tr:nth-child(even) {
  background: var(--foam);
}

.compare-table tr.is-top {
  background: rgba(0, 217, 192, 0.12) !important;
}

/* --------------------------------------------------------------------------
   Photo test scores
   -------------------------------------------------------------------------- */
.score-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.score-card {
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  text-align: center;
  background: var(--sand);
}

.score-card.is-top {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--deep-sea);
}

.score-number {
  display: block;
  font-family: 'Fredoka', cursive;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
}

.score-label {
  font-weight: 700;
}

.source-line {
  font-size: 0.95rem;
  color: var(--text-light);
  background: var(--foam);
  border-radius: 14px;
  padding: 0.75rem 1rem;
}

/* --------------------------------------------------------------------------
   App picks
   -------------------------------------------------------------------------- */
.pick-rank {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--coral);
  color: white;
  font-size: 1.05rem;
  vertical-align: 0.1em;
}

.good-to-know {
  background: var(--sand);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  font-size: 1rem;
}

.good-to-know strong {
  font-family: 'Fredoka', cursive;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Steps + FAQ + sources
   -------------------------------------------------------------------------- */
.collect-steps {
  list-style: none;
  padding: 0 !important;
  counter-reset: step;
}

.collect-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.5rem;
  min-height: 2.6rem;
}

.collect-steps li + li {
  margin-top: 1.25rem;
}

.collect-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Fredoka', cursive;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
}

.collect-steps li:nth-child(2)::before { background: linear-gradient(135deg, var(--coral), var(--coral-dark)); }
.collect-steps li:nth-child(3)::before { background: linear-gradient(135deg, var(--sunny), var(--sunny-dark)); color: var(--text-dark); }
.collect-steps li:nth-child(4)::before { background: linear-gradient(135deg, var(--purple-depth), #5B3F9C); }

.faq-item h3 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
}

.faq-item p {
  margin-top: 0.4rem;
}

.sources-list {
  font-size: 0.98rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .article-hero {
    padding: 7.5rem 1rem 3rem;
  }

  .article-section {
    padding: 3rem 1rem 4rem;
  }

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

  .quick-picks {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .score-row {
    grid-template-columns: 1fr;
  }
}
