/* ============================================
   v2 additions: author bio, grade badges,
   animated rating bars, Amazon CTA, explainer
   section (What is / Benefits / Consider / Avoid)
   ============================================ */

/* Brighter gold + a slightly narrower page width, scoped to v2 only
   (base.css's tokens still drive the live index.html — do not change
   them there). */
:root {
  --color-gold: #ffb400;
  --container-width: 960px;
}

.author-section {
  padding: 24px 0;
}

/* Author bio — kept small/compact per reference, left-aligned (not
   centered) within the page column. */
.author-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 14px;
  max-width: 560px;
  margin: 0;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.author-card__avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.author-card__name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.author-card__name {
  font-size: 0.95rem;
  font-weight: 800;
}

.author-card__role {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.author-card__bio {
  color: var(--color-text);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Grade badge (letter grade, distinct from the numeric score circle) */
.grade-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.grade-badge__letter {
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--color-gold);
}

.grade-badge__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* Light variant, used on runner-up cards (white background context) */
.grade-badge--light {
  background: #fff;
  border-color: var(--color-border);
}

.grade-badge--light .grade-badge__letter {
  color: var(--color-navy);
}

.grade-badge--light .grade-badge__label {
  color: var(--color-text-muted);
}

.winner__head-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.winner__head-row h2 {
  margin-bottom: 0;
}

/* Animated rating bars */
.rating-bars {
  display: grid;
  gap: 14px;
  margin: 20px 0 8px;
}

.rating-bar__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 14px;
}

.rating-bar__label {
  font-size: 0.88rem;
  font-weight: 700;
}

.rating-bar__value {
  font-size: 0.85rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.rating-bar__track {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.rating-bar__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--color-gold);
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.rating-bars.is-visible .rating-bar__fill {
  width: var(--fill, 0%);
}

/* Light variant for runner-up mini bars (on --color-bg-alt background) */
.rating-bars--light .rating-bar__label {
  color: var(--color-text);
}

.rating-bars--light .rating-bar__value {
  color: var(--color-navy);
}

.rating-bars--light .rating-bar__track {
  background: var(--color-border);
}

.rating-bars--light .rating-bar__fill {
  background: var(--color-blue);
}

/* Amazon CTA button — visually distinct from the primary brand button so
   readers can tell "official site" and "marketplace" links apart at a glance. */
.btn-amazon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #131921;
  color: #fff;
  padding: 12px 20px;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.btn-amazon:hover,
.btn-amazon:focus-visible {
  background: #232f3e;
}

.btn-amazon__accent {
  color: #ff9900;
}

.runner-up-card__cta {
  margin-top: 16px;
}

/* Explainer section: What is / Benefits / Consider / Avoid */
.explainer-intro {
  margin: 0 0 32px;
  text-align: left;
  color: var(--color-text);
  font-size: 1.02rem;
}

.explainer-block {
  margin-top: 40px;
}

.explainer-block h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  text-align: center;
}

.benefit-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .benefit-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .benefit-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.benefit-list .check {
  color: var(--color-success);
  font-weight: 800;
  flex-shrink: 0;
}

.consider-grid,
.avoid-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 700px) {
  .consider-grid,
  .avoid-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.consider-card,
.avoid-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.consider-card__icon,
.avoid-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.consider-card__icon svg,
.avoid-card__icon svg {
  width: 20px;
  height: 20px;
}

.consider-card__icon {
  background: #e2f3e9;
  color: var(--color-blue-dark);
}

.avoid-card__icon {
  background: #fdeaea;
  color: #c62828;
}

.consider-card h4,
.avoid-card h4 {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.consider-card p,
.avoid-card p {
  font-size: 0.88rem;
  color: var(--color-text);
}

/* ============================================
   verifiedguide.org-style layout: disclosure bar,
   plain intro (no photo hero), one big card per
   ranked product with analysis + ratings + pros/cons.
   ============================================ */

.disclosure-bar {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
}

.disclosure-bar__text {
  font-size: 0.5rem;
  color: var(--color-text-muted);
  text-align: center;
}

.intro-section {
  padding-top: 20px;
  padding-bottom: 24px;
}

.intro-section .container {
  max-width: var(--container-width);
  text-align: left;
}

.intro-section h1 {
  font-size: 2.1rem;
  margin: 16px 0;
}

@media (min-width: 900px) {
  .intro-section h1 {
    font-size: 2.2rem;
  }
}

/* Intro text, hero image, and the product cards below all use the same
   --container-width (1120px) — nothing here should read narrower or
   wider than anything else on the page. */
.intro-copy {
  color: var(--color-text);
  font-size: 1.02rem;
  margin-top: 14px;
}

.intro-copy:first-of-type {
  margin-top: 20px;
}

.intro-copy strong {
  color: var(--color-text);
}

/* Hero image — same rough aspect ratio as the reference (~2.1:1),
   placed right under the H1. */
.intro-hero-image {
  margin: 24px 0 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 21 / 10;
}

.intro-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ranked product card */
.product-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  margin-bottom: 32px;
}

@media (min-width: 900px) {
  .product-card {
    padding: 40px;
  }
}

.product-card--winner {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-card-hover);
}

.product-card__ribbon {
  position: absolute;
  top: -14px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-gold);
  color: var(--color-navy);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: 999px;
}

.product-card__rank {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.product-card__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 22px;
  align-items: center;
}

@media (min-width: 700px) {
  .product-card__header {
    grid-template-columns: 300px 1fr;
  }
}

.product-card__media {
  text-align: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 300px;
  margin: 0 auto;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}

.product-card__title {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.product-card__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
}

.product-card__rating .stars {
  font-size: 1.5rem;
}

.product-card__analysis h3,
.product-card__ratings-title,
.product-card__bottom-line h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-blue-dark);
  margin-bottom: 10px;
}

.product-card__analysis p + p {
  margin-top: 12px;
}

.product-card__analysis p {
  color: var(--color-text);
}

.product-card__price-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 24px 0;
  padding: 16px 18px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
}

.product-card__price {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.product-card__price strong {
  color: var(--color-text);
  font-size: 1.05rem;
}

.product-card__ratings {
  margin: 26px 0;
}

.product-card__bottom-line {
  margin-top: 26px;
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-blue);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
}

.product-card__bottom-line p {
  color: var(--color-text);
}

.product-card__cta-row {
  margin-top: 22px;
  text-align: center;
}

/* Pros/Cons redesign for product cards only — overrides the shared
   .pros-cons component from sections.css (which the live index.html
   still uses as-is) without touching that shared file. */
.product-card .pros-cons__col {
  background: #fff;
  border-left: none;
  box-shadow: var(--shadow-card);
}

.product-card .pros-cons__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
}

.product-card .pros-cons__label svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.product-card .pros-cons__col li {
  color: var(--color-text);
}

.product-card .pros-cons__col--pros li::before {
  content: "✓";
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
  top: 0;
  font-weight: 800;
  color: var(--color-blue-dark);
  opacity: 1;
}

.product-card .pros-cons__col--cons li::before {
  content: "✕";
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
  top: 0;
  font-weight: 800;
  color: #c62828;
  opacity: 1;
}

/* Score badge: one rectangle holding both the % and the product name,
   replacing the earlier circle + separate label. Kept as a light,
   bordered chip on purpose — a solid dark fill reads as a clickable
   button (like .btn-amazon right below it), and this isn't one. */
.product-card__score-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  padding: 14px 20px;
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.product-card__score-badge strong {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-blue-dark);
  line-height: 1;
}

.product-card__score-badge span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
