/* ============================================================
   BestSupplement.org — review.css
   Used on ALL individual review/blog pages
   Linked as: css/review.css
   ============================================================ */

/* ── Review page wrapper ── */
.review-page-wrap {
  padding: 0 0 72px;
  background: var(--white);
}

/* ── Two-column layout: main + sidebar ── */
.review-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}

/* ════════════════════════════════
   REVIEW MAIN CONTENT
════════════════════════════════ */
.review-main { min-width: 0; }

/* Author / date meta bar */
.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .85rem;
  color: var(--text-muted);
  margin: 14px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.review-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.review-meta svg { color: var(--teal); flex-shrink: 0; }

/* Star rating display bar */
.review-rating-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.rating-stars .star { font-size: 1.3rem; color: #E6A817; }
.rating-stars .star.partial { opacity: .4; }
.rating-score {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}
.rating-count {
  font-size: .82rem;
  color: var(--text-muted);
}

/* Hero image */
.review-hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  margin: 20px 0 28px;
  box-shadow: var(--shadow-md);
}

/* Content images within review */
.review-content-img {
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}

.review-bottle-img {
  max-width: 280px;
  margin: 0 auto 24px;
  display: block;
}

/* ════════════════════════════════
   OVERVIEW TABLE
════════════════════════════════ */
.overview-table-wrap {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  margin: 28px 0;
}

.overview-title {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal);
}

.overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
}

.overview-table tr { border-bottom: 1px solid var(--border); }
.overview-table tr:last-child { border-bottom: none; }

.overview-table td {
  padding: 10px 12px;
  vertical-align: top;
  line-height: 1.5;
}

.overview-table td:first-child {
  width: 42%;
  color: var(--navy);
  font-weight: 600;
  background: rgba(42,157,143,.05);
}

.overview-table a { color: var(--teal); font-weight: 600; }

/* ════════════════════════════════
   TABLE OF CONTENTS
════════════════════════════════ */
.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.toc-title {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.toc-list {
  padding-left: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-list li { font-size: .9rem; }
.toc-list a { color: var(--teal-dark); }
.toc-list a:hover { color: var(--teal); text-decoration: underline; }

/* ════════════════════════════════
   REVIEW SECTIONS
════════════════════════════════ */
.review-section {
  margin-bottom: 44px;
  scroll-margin-top: 90px;
}

.review-section h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal-light);
  color: var(--navy);
}

.review-section h3 {
  font-size: 1.1rem;
  margin: 20px 0 10px;
  color: var(--navy);
}

.review-section p { margin-bottom: 14px; }

.review-list {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}

.review-list li {
  padding-left: 22px;
  position: relative;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
}

.review-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* Ingredient items */
.ingredient-list { display: flex; flex-direction: column; gap: 20px; margin: 20px 0; }

.ingredient-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 20px;
}

.ingredient-item h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 0;
  color: var(--navy);
}

.ingredient-item p {
  font-size: .92rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.ingredient-item a {
  color: var(--teal);
  text-decoration: underline;
}

/* ════════════════════════════════
   CUSTOMER REVIEWS
════════════════════════════════ */
.customer-review {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin: 16px 0;
}

.customer-review.complaint {
  border-left: 3px solid #E57373;
  background: #FFF8F8;
}

.customer-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  font-size: .88rem;
  color: var(--text-muted);
}

.customer-review-header strong { color: var(--navy); }

.review-stars { color: #E6A817; letter-spacing: 2px; }

.customer-review p {
  font-size: .92rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 0;
  line-height: 1.7;
}

/* ════════════════════════════════
   CTA BOXES
════════════════════════════════ */
.review-cta-box {
  background: var(--teal-light);
  border: 1px solid var(--teal-mid);
  border-radius: var(--r-md);
  padding: 28px 24px;
  text-align: center;
  margin: 32px 0;
}

.review-cta-box p { color: var(--navy); font-weight: 500; margin-bottom: 16px; max-width: 100%; }

.review-cta-btn {
  font-size: 1.05rem;
  padding: 14px 36px;
  display: inline-flex;
  margin: 0 auto;
}

.review-cta-inline {
  display: inline-flex;
  margin-top: 16px;
}

.cta-sub {
  font-size: .8rem !important;
  color: var(--text-muted) !important;
  margin-top: 10px !important;
  font-weight: 400 !important;
}

/* ════════════════════════════════
   PRICING GRID
════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 24px 0;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 18px;
  text-align: center;
  position: relative;
}

.pricing-card.pricing-popular {
  border-color: var(--teal);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-label {
  font-size: .75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.pricing-card h3 {
  font-size: 1.15rem;
  font-family: var(--font-body);
  margin-bottom: 4px;
}

.pricing-supply { font-size: .82rem; color: var(--text-muted); margin-bottom: 12px; }

.pricing-price strong { font-size: 1.8rem; color: var(--navy); }
.pricing-price span   { font-size: .85rem; color: var(--text-muted); }

.pricing-total   { font-size: .8rem; color: var(--teal-dark); font-weight: 600; margin-top: 3px; }
.pricing-shipping{ font-size: .8rem; color: var(--text-muted); margin: 8px 0 12px; }

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
  font-size: .82rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pricing-card .btn { width: 100%; justify-content: center; font-size: .88rem; }

/* ════════════════════════════════
   VERDICT BOX
════════════════════════════════ */
.verdict-box {
  background: var(--bg-alt);
  border: 2px solid var(--teal);
  border-radius: var(--r-md);
  padding: 28px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin: 20px 0;
}

.verdict-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
}

.verdict-score {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.verdict-stars { color: #E6A817; font-size: 1.1rem; letter-spacing: 2px; }
.verdict-rating span:last-child { font-size: .78rem; color: var(--text-muted); }

.verdict-text p { font-size: .97rem; margin-bottom: 12px; }
.verdict-text p:last-child { margin-bottom: 0; }

/* ════════════════════════════════
   SOURCES
════════════════════════════════ */
.sources-section { border-top: 1px solid var(--border); padding-top: 32px; }

.sources-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.sources-list li { font-size: .85rem; }
.sources-list a { color: var(--teal-dark); word-break: break-all; }
.sources-list a:hover { text-decoration: underline; }

/* ════════════════════════════════
   SIDEBAR
════════════════════════════════ */
.review-sidebar {
  position: sticky;
  top: calc(var(--header) + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
}

.sidebar-card h4 {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.sidebar-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: .88rem;
  color: var(--navy);
  font-weight: 600;
}

.stars-sm { color: #E6A817; }

.sidebar-buy-btn {
  width: 100%;
  justify-content: center;
  font-size: .9rem;
}

.sidebar-links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.sidebar-links ul li a {
  font-size: .88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}

.sidebar-links ul li a:hover { color: var(--teal); }

.sidebar-links ul li a::before {
  content: '›';
  color: var(--teal);
  font-weight: 700;
  font-size: 1rem;
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1024px) {
  .review-layout  { grid-template-columns: 1fr; }
  .review-sidebar { position: static; }
  .pricing-grid   { grid-template-columns: 1fr; gap: 14px; }
  .pricing-card.pricing-popular { order: -1; }
}

@media (max-width: 768px) {
  .verdict-box    { flex-direction: column; gap: 16px; align-items: center; text-align: center; }
  .pros-cons      { grid-template-columns: 1fr; }
  .overview-table td:first-child { width: 40%; }
  .review-meta    { gap: 10px; }
}

@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .review-cta-btn { width: 100%; justify-content: center; }
}

/* ── Pricing table (replaces cards) ── */
.pricing-table-wrap {
  margin: 20px 0;
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
}

.pricing-table thead tr {
  background: var(--navy);
  color: var(--white);
}

.pricing-table thead th {
  padding: 12px 14px;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .04em;
}

.pricing-table tbody tr {
  border-bottom: 1px solid var(--border);
}

.pricing-table tbody tr:last-child { border-bottom: none; }

.pricing-table tbody td {
  padding: 14px;
  vertical-align: middle;
  color: var(--text);
  line-height: 1.4;
}

.pricing-table tbody td strong { color: var(--navy); font-size: 1.05rem; }
.pricing-table tbody td small  { color: var(--teal-dark); font-size: .78rem; }

.pricing-row-best { background: var(--teal-light); }
.pricing-row-best td:first-child { border-left: 3px solid var(--teal); }

.pricing-tag {
  display: inline-block;
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.pricing-tag.best {
  color: var(--teal-dark);
  font-weight: 600;
}

.btn-sm {
  padding: 8px 16px;
  font-size: .82rem;
}

.pricing-note {
  font-size: .83rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

/* ── FTC disclosure at bottom ── */
.ftc-notice-bottom {
  margin-top: 40px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.ftc-notice-bottom strong { color: var(--text); }

/* ── Sidebar categories ── */
.sidebar-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.sidebar-cats .filter-btn {
  font-size: .76rem;
  padding: 4px 11px;
}

/* ── Affiliate disclosure at TOP of article ── */
.ftc-notice-top {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 10px 16px;
  margin-bottom: 24px;
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.ftc-notice-top strong { color: var(--text); }
.ftc-notice-top a { color: var(--teal); text-decoration: underline; }