/*
Theme Name: Top10
Theme URI: https://example.com
Author: Top10 Site
Description: Comparison-list theme inspired by Top10.com — category hubs, ranked cards, and affiliate CTAs.
Version: 1.5.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: top10
*/

:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --cta: #059669;
  --cta-dark: #047857;
  --gold: #eab308;
  --ok: #12805c;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  --radius: 16px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.custom-logo-link img,
.custom-logo { height: 36px; width: auto; }

.disclosure-bar {
  background: #fff8e8;
  color: #7a5b12;
  font-size: 0.82rem;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid #f1e0b0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}
.logo {
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.05em;
  flex-shrink: 0;
}
.logo span { color: var(--brand); }
.nav-desktop { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 600; font-size: 0.95rem; }
.site-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a:hover { color: var(--brand); }
.nav-toggle { display: none; }
.nav-toggle summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.nav-toggle summary::-webkit-details-marker { display: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.search-form { margin-left: auto; display: flex; }
.search-form input {
  border: 1px solid var(--line);
  border-radius: 999px 0 0 999px;
  padding: 10px 16px;
  min-width: 220px;
  background: #f8fafc;
}
.search-form button {
  border: 0;
  background: var(--brand);
  color: #fff;
  border-radius: 0 999px 999px 0;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 700;
}

body.home,
body.front-page {
  background: linear-gradient(180deg, #fff4e8 0%, #ffe0c4 280px, #f4f6fa 640px);
}
.hero {
  background:
    radial-gradient(920px 380px at 50% -8%, rgba(255, 186, 122, 0.55) 0%, transparent 68%),
    linear-gradient(180deg, #fff7ed 0%, #ffd7b0 48%, #ffe8d0 100%);
  padding: 72px 0 28px;
  text-align: center;
  position: relative;
}
.hero.hero-has-image {
  color: var(--ink);
  background:
    radial-gradient(920px 380px at 50% -8%, rgba(255, 186, 122, 0.55) 0%, transparent 68%),
    linear-gradient(180deg, #fff7ed 0%, #ffd7b0 48%, #ffe8d0 100%);
  padding: 72px 0 28px;
}
.hero.hero-has-image::before { display: none; }
.hero.hero-has-image .hero-inner { position: relative; z-index: 1; }
.hero.hero-has-image p.lede { color: var(--muted); }
.peach-band {
  background:
    radial-gradient(920px 380px at 50% -8%, rgba(255, 186, 122, 0.55) 0%, transparent 68%),
    linear-gradient(180deg, #fff7ed 0%, #ffd7b0 48%, #ffe8d0 100%);
}
.hero-inner { max-width: 760px; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.hero p.lede,
.lede { color: var(--muted); font-size: 1.12rem; max-width: 640px; }
.hero p.lede { margin: 0 auto; }

.section { padding: 48px 0; }
.section-tight { padding-top: 8px; }
.section h2, .picks-head h3 {
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  font-size: 1.7rem;
}

.cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.cat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  min-height: 92px;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.04);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.cat-icon svg { width: 26px; height: 26px; fill: currentColor; }
.cat-icon img.cat-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-icon-hero {
  margin: 0 auto 12px;
}
.cat-copy { display: grid; gap: 2px; }
.cat-copy strong { font-size: 0.98rem; }
.cat-copy em { font-style: normal; color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.tone-blue { background: #dbeafe; color: #1d4ed8; }
.tone-violet { background: #ede9fe; color: #6d28d9; }
.tone-teal { background: #ccfbf1; color: #0f766e; }
.tone-amber { background: #fef3c7; color: #b45309; }
.tone-rose { background: #ffe4e6; color: #be123c; }
.tone-green { background: #dcfce7; color: #15803d; }
.tone-slate { background: #e2e8f0; color: #334155; }

.trust-strip { padding: 12px 0 36px; text-align: center; }
.trust-kicker { color: var(--muted); font-weight: 600; margin: 0 0 14px; }
.trust-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.trust-pills span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  color: #475467;
  font-size: 0.9rem;
}

.brand-strip {
  padding: 28px 0 40px;
  background: #fff;
  overflow: hidden;
}
.brand-copy { text-align: center; margin-bottom: 28px; }
.brand-copy h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}
.brand-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}
.brand-track {
  display: flex;
  width: max-content;
  animation: brand-scroll 48s linear infinite;
}
.brand-strip:hover .brand-track { animation-play-state: paused; }
.brand-set {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 0 28px;
}
.brand-logo {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
}
@keyframes brand-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-track { animation: none; }
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.split-intro h2 { font-size: 2rem; }
.split-intro-image {
  margin: 0 0 20px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.split-intro-image img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: linear-gradient(180deg, #fff7ed, #ffe8d0);
}
.picks { display: grid; gap: 12px; }
.pick-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
}
.pick-cover img {
  width: 100%;
  height: 148px;
  object-fit: cover;
}
.pick-body { padding: 16px 18px; }
.pick-card h3 { margin: 4px 0 6px; font-size: 1.05rem; }
.pick-card h3 a:hover { color: var(--brand); }
.kicker { color: var(--brand); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.meta { color: var(--muted); font-size: 0.88rem; margin: 0; }

.why { background: #fff; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.stat {
  background: #fffaf5;
  border: 1.5px solid #fdba74;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.stat b { display: block; font-size: 2rem; letter-spacing: -0.04em; }
.stat span { color: var(--muted); font-size: 0.9rem; }

.experts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.expert { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.expert h3 { margin: 0 0 4px; font-size: 1.05rem; }
.expert p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: #dbeafe; color: var(--brand-dark);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 12px;
}

.faq-wrap { max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 10px 0 0; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card .body { padding: 18px; }
.card h3 { margin: 6px 0 8px; font-size: 1.15rem; }
.card-cover img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.list-hero {
  background: linear-gradient(180deg, #fff, var(--bg));
  padding: 48px 0 8px;
  position: relative;
}
.list-hero.list-hero-has-image {
  background-color: #101828;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 64px 0 36px;
  color: #fff;
}
.list-hero.list-hero-has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.5), rgba(16, 24, 40, 0.78));
  pointer-events: none;
}
.list-hero.list-hero-has-image .wrap { position: relative; z-index: 1; }
.list-hero.list-hero-has-image .lede,
.list-hero.list-hero-has-image .list-meta { color: rgba(255, 255, 255, 0.88); }
.list-hero.list-hero-has-image .kicker { color: #93c5fd; }
.list-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  margin: 8px 0 12px;
}
.list-meta { color: var(--muted); font-size: 0.9rem; }

.compare-hero {
  background:
    radial-gradient(700px 280px at 15% -20%, rgba(147, 197, 253, 0.35), transparent 70%),
    linear-gradient(120deg, #1e3a8a 0%, #312e81 55%, #1e1b4b 100%);
  color: #fff;
  padding: 48px 0 40px;
  overflow: hidden;
}
.compare-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.compare-hero .kicker { color: #93c5fd; }
.compare-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.04em;
  margin: 8px 0 12px;
  color: #fff;
}
.compare-hero .lede { color: rgba(255,255,255,0.88); max-width: none; }
.compare-hero .list-meta { color: rgba(255,255,255,0.75); }
.compare-hero-art {
  justify-self: end;
  max-width: 420px;
}
.compare-hero-art img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.25));
}
.compare-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
  padding: 28px 0 64px;
}
.compare-side { display: grid; gap: 16px; }
.side-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 0.92rem;
  color: var(--muted);
}
.side-box h3 { margin: 0 0 10px; color: var(--ink); font-size: 1rem; }
.side-box ul { margin: 0; padding-left: 18px; }
.side-box li { margin: 6px 0; }
.side-reviews { list-style: none; padding: 0; }
.side-reviews li {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}
.side-reviews img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  background: #fff;
}
.rank-reviews { margin: 0 0 8px; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.btn-visit { background: #f59e0b; color: #1a1404; }
.btn-visit:hover { background: #d97706; color: #fff; }

.rank-wrap { padding: 24px 0 56px; }
.rank-card {
  display: grid;
  grid-template-columns: 88px 1fr 200px;
  gap: 20px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
}
.rank-card.has-logo { grid-template-columns: 88px 80px 1fr 200px; }
.rank-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.rank-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.rank-card.is-top { border-color: #f5d0a0; box-shadow: 0 10px 28px rgba(234, 179, 8, 0.12); }
.rank-col { display: grid; justify-items: center; gap: 8px; }
.rank-badge {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.rank-badge.is-1 { background: var(--gold); color: #1a1404; }
.rank-badge.is-2 { background: #94a3b8; color: #0f172a; }
.rank-badge.is-3 { background: #c2410c; }
.rank-flag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #92400e;
  background: #fef3c7;
  border-radius: 999px;
  padding: 4px 8px;
  text-align: center;
}
.rank-body h2 { margin: 0 0 6px; font-size: 1.35rem; }
.rank-body h2 a:hover { color: var(--brand); }
.rank-best { margin: 0 0 12px; color: var(--muted); }
.rank-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rank-points li {
  padding-left: 22px;
  position: relative;
  color: #344054;
}
.rank-points li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cta);
  position: absolute;
  left: 0; top: 0.55em;
}
.rank-aside { display: grid; justify-items: stretch; gap: 10px; }
.score-box {
  background: #eff6ff;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}
.score-box strong { display: block; font-size: 2rem; letter-spacing: -0.04em; color: var(--brand-dark); line-height: 1; }
.score-box span { color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.score-stars { margin-top: 4px; }
.rank-price { margin: 0; text-align: center; font-weight: 700; color: #344054; font-size: 0.9rem; }
.stars { color: var(--gold); letter-spacing: 1px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-weight: 700;
  border-radius: 10px; padding: 11px 14px; border: 0; cursor: pointer;
}
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: #eef3ff; color: var(--brand-dark); }
.btn-cta { background: var(--cta); }
.btn-cta:hover { background: var(--cta-dark); }

.article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.article .content { max-width: 72ch; }
.method { margin-top: 36px; }
.page-title { padding: 36px 0 8px; }
.provider-header { display: flex; gap: 24px; align-items: flex-start; }
.provider-logo-lg {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.provider-logo-lg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.provider-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin: 16px 0; box-shadow: var(--shadow);
}

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1.2fr; gap: 32px; }
.footer-brand { font-size: 1.3rem; font-weight: 800; color: var(--ink); letter-spacing: -0.04em; margin: 0 0 8px; }
.footer-brand span { color: var(--brand); }
.footer-links { display: grid; gap: 8px; }
.site-footer h2 { color: var(--ink); font-size: 0.95rem; margin: 0 0 12px; }
.disclosure { font-size: 0.85rem; background: #fff8e8; border: 1px solid #f1e0b0; padding: 12px 16px; border-radius: 12px; margin: 16px 0 0; color: #7a5b12; }

@media (max-width: 900px) {
  .split, .rank-card, .rank-card.has-logo, .footer-grid, .stats, .compare-hero-inner, .compare-layout { grid-template-columns: 1fr; }
  .provider-header { flex-direction: column; }
  .rank-aside { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .nav-desktop, .search-form { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-toggle .site-nav {
    display: grid;
    gap: 10px;
    position: absolute;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 20px;
    margin-top: 12px;
  }
  .header-inner { position: relative; }
}
