/*
Theme Name: LeviNguyen Affiliate
Theme URI: https://levinguyen.com
Author: Levi Nguyen
Description: Standalone affiliate review theme focused on SEO, comparison, product discovery, and conversion.
Version: 0.1.0
Text Domain: levinguyen-affiliate
*/

:root {
  --lv-max: 1200px;
  --lv-border: #e7e8ec;
  --lv-muted: #667085;
  --lv-text: #101828;
  --lv-bg: #f7f8fa;
  --lv-bg-soft: #f1f4f7;
  --lv-surface: #ffffff;
  --lv-accent: #ff5a1f;
  --lv-accent-dark: #d94710;
  --lv-dark: #111827;
  --lv-radius: 22px;
  --lv-shadow: 0 14px 34px rgba(16,24,40,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--lv-text); line-height: 1.65; background: var(--lv-bg); }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.lv-container { width: min(calc(100% - 32px), var(--lv-max)); margin-inline: auto; }
.lv-site-header { border-bottom: 1px solid rgba(231,232,236,.9); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 30; }
.lv-header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.lv-brand { font-size: 1.2rem; font-weight: 900; letter-spacing: -.02em; text-decoration: none; }
.lv-nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.lv-nav a { text-decoration: none; font-weight: 700; font-size: .95rem; color: #344054; }
.lv-nav a:hover { color: var(--lv-accent); }
.lv-main { min-height: 60vh; padding: 34px 0 72px; }
.lv-hero { position: relative; overflow: hidden; padding: 72px 56px; background: linear-gradient(135deg,#101828 0%,#1d2939 70%,#344054 100%); color: #fff; border: 0; box-shadow: var(--lv-shadow); }
.lv-hero:after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; right: -90px; top: -120px; background: rgba(255,90,31,.22); filter: blur(1px); }
.lv-hero > * { position: relative; z-index: 1; }
.lv-hero h1 { font-size: clamp(2.4rem, 5vw, 4.7rem); line-height: .98; letter-spacing: -.05em; margin: 0 0 20px; max-width: 920px; }
.lv-hero p { font-size: 1.12rem; max-width: 760px; color: #d0d5dd; }
.lv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.lv-card { border: 1px solid var(--lv-border); border-radius: var(--lv-radius); padding: 24px; background: var(--lv-surface); box-shadow: 0 4px 16px rgba(16,24,40,.035); }
.lv-card:hover { border-color: #d0d5dd; box-shadow: var(--lv-shadow); transform: translateY(-2px); transition: .2s ease; }
.lv-card h2, .lv-card h3 { margin-top: 0; }
.lv-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 20px; border-radius: 999px; background: var(--lv-accent); color: #fff; text-decoration: none; font-weight: 800; box-shadow: 0 8px 22px rgba(255,90,31,.22); }
.lv-btn:hover { background: var(--lv-accent-dark); transform: translateY(-1px); }
.lv-article { max-width: 840px; }
.lv-article h1 { line-height: 1.15; }
.lv-meta { color: var(--lv-muted); font-size: .92rem; margin-bottom: 18px; }
.lv-site-footer { border-top: 1px solid var(--lv-border); padding: 32px 0; color: var(--lv-muted); }
.lv-product-verdict { margin-bottom: 24px; }
.lv-review-kicker { font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--lv-accent); }
.lv-score { font-size: 2.5rem; font-weight: 900; line-height: 1; margin: 12px 0; }
.lv-score span { font-size: 1rem; color: var(--lv-muted); margin-left: 4px; }
.lv-verdict-copy { font-size: 1.08rem; }
.lv-buy-row { display: flex; gap: 12px; align-items: center; justify-content: flex-start; flex-wrap: wrap; margin-top: 24px; }
.lv-deal-note { padding: 10px 12px; background: var(--lv-bg-soft); border-radius: 10px; }
.lv-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.lv-review-nav { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 0 24px; }
.lv-review-nav a { padding: 8px 12px; border: 1px solid var(--lv-border); border-radius: 999px; text-decoration: none; font-weight: 700; }
.lv-featured-product-image { margin: 8px 0 28px; }
.lv-review-content h2 { scroll-margin-top: 90px; }
.lv-review-action, .lv-final-cta { margin-top: 28px; }
.lv-final-cta { text-align: center; }
.lv-compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 28px 0; }
.lv-table-wrap { overflow-x: auto; margin: 28px 0; }
.lv-compare-table { width: 100%; border-collapse: collapse; background: #fff; }
.lv-compare-table th, .lv-compare-table td { border: 1px solid var(--lv-border); padding: 14px; text-align: left; vertical-align: top; }
.lv-compare-table thead th { background: var(--lv-bg-soft); }
.lv-fit-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end; }
.lv-fit-form label { display: grid; gap: 7px; font-weight: 700; }
.lv-fit-form select, .lv-fit-form input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--lv-border); border-radius: 9px; background: #fff; }
.lv-fit-results { margin-top: 32px; }
.lv-finder-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end; }
.lv-finder-form label { display: grid; gap: 7px; font-weight: 700; }
.lv-finder-form select, .lv-finder-form input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--lv-border); border-radius: 9px; background: #fff; }
.lv-finder-results { margin-top: 32px; }
.lv-brand-hero { margin-bottom: 46px; border-radius: 30px; }
.lv-money-section { margin-top: 54px; }
.lv-money-section > h2 { margin: 0 0 20px; font-size: clamp(1.6rem,2.3vw,2.35rem); line-height: 1.08; letter-spacing: -.035em; }
.lv-money-section > h2 + .lv-card { max-width: 100%; }
.lv-money-section .lv-card h2 { font-size: 1.25rem; line-height: 1.2; }
.lv-money-section .lv-card h3 { font-size: 1.1rem; line-height: 1.25; }
.lv-money-section .lv-card p:last-child { margin-bottom: 0; }
.lv-product-card-media { display: block; margin: -24px -24px 18px; overflow: hidden; border-radius: var(--lv-radius) var(--lv-radius) 0 0; background: var(--lv-bg-soft); aspect-ratio: 4 / 3; }
.lv-product-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.lv-card:hover .lv-product-card-media img { transform: scale(1.025); }
.lv-fit-status { display: inline-block; margin: 0 0 10px; padding: 5px 9px; border-radius: 999px; background: var(--lv-bg-soft); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.lv-btn-secondary { margin-left: 0; background: rgba(255,255,255,.08); color: inherit; border: 1px solid rgba(255,255,255,.24); box-shadow: none; }
.lv-card .lv-btn-secondary { background: #fff; color: var(--lv-text); border-color: var(--lv-border); }
.lv-topic-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 0; }
.lv-topic-links a { padding: 9px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--lv-border); text-decoration: none; font-weight: 700; font-size: .92rem; }
.lv-section-intro { max-width: 760px; color: var(--lv-muted); margin-top: -10px; margin-bottom: 22px; }
.lv-mobile-toggle { display: none; border: 1px solid var(--lv-border); background: #fff; border-radius: 12px; padding: 9px 12px; font: inherit; font-weight: 800; }

@media (max-width: 900px) {
  .lv-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .lv-hero { padding: 56px 34px; }
}

@media (max-width: 700px) {
  .lv-container { width: min(calc(100% - 24px), var(--lv-max)); }
  .lv-main { padding-top: 20px; }
  .lv-header-inner { min-height: 64px; }
  .lv-mobile-toggle { display: inline-flex; }
  .lv-nav { display: none; position: absolute; top: 64px; left: 12px; right: 12px; background: #fff; border: 1px solid var(--lv-border); border-radius: 18px; box-shadow: var(--lv-shadow); padding: 14px; }
  .lv-nav.is-open { display: block; }
  .lv-nav ul { flex-direction: column; gap: 0; }
  .lv-nav a { display: block; padding: 11px 8px; }
  .lv-grid, .lv-pros-cons, .lv-compare-grid, .lv-fit-form, .lv-finder-form { grid-template-columns: 1fr; }
  .lv-hero { padding: 44px 24px; border-radius: 22px; }
  .lv-hero h1 { font-size: clamp(2.2rem,11vw,3.35rem); }
  .lv-hero p { font-size: 1rem; }
  .lv-brand-hero { margin-bottom: 32px; }
  .lv-money-section { margin-top: 38px; }
  .lv-card { border-radius: 18px; padding: 20px; }
  .lv-product-card-media { margin: -20px -20px 16px; border-radius: 18px 18px 0 0; }
  .lv-btn { width: 100%; }
  .lv-buy-row { align-items: stretch; }
}

/* AffiliateCMS-inspired information architecture (original styling). */
.lv-disclosure-bar { background: #0f172a; color: #cbd5e1; font-size: .78rem; padding: 7px 0; }
.lv-disclosure-bar a { color: #fff; font-weight: 700; text-decoration: none; }
.lv-site-search { flex: 1; max-width: 420px; }
.lv-site-search input { width: 100%; min-height: 42px; border: 1px solid var(--lv-border); border-radius: 12px; background: #f8fafc; padding: 0 14px; font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.lv-home { background: #fff; }
.lv-home-hero { padding: 64px 0 56px; border-bottom: 1px solid var(--lv-border); background: #fff; }
.lv-eyebrow { margin: 0 0 10px; color: var(--lv-accent); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.lv-home-hero h1 { margin: 0; max-width: 860px; font-size: clamp(2.5rem,5vw,4.6rem); line-height: 1.02; letter-spacing: -.05em; }
.lv-home-lead { max-width: 780px; margin: 20px 0 0; color: var(--lv-muted); font-size: 1.12rem; }
.lv-home-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 26px; }
.lv-text-link { color: #172554; font-weight: 800; text-decoration: none; }
.lv-text-link:hover { color: var(--lv-accent); }
.lv-category-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.lv-category-pills a { padding: 9px 13px; border: 1px solid var(--lv-border); border-radius: 999px; background: #fff; text-decoration: none; font-size: .9rem; font-weight: 700; }

.lv-home-section { padding: 58px 0; background: #fff; }
.lv-home-section-soft { background: #f8fafc; border-block: 1px solid var(--lv-border); }
.lv-section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.lv-section-head h2 { margin: 0; font-size: clamp(1.8rem,3vw,2.55rem); letter-spacing: -.035em; line-height: 1.05; }
.lv-directory-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.lv-directory-card { overflow: hidden; border: 1px solid var(--lv-border); border-radius: 18px; background: #fff; }
.lv-directory-media { display: flex; align-items: center; justify-content: center; min-height: 180px; background: #f8fafc; text-decoration: none; color: #475467; font-weight: 900; font-size: 1.25rem; }
.lv-directory-media img { width: 100%; height: 180px; object-fit: contain; padding: 16px; }
.lv-directory-body { padding: 18px; }
.lv-directory-body h3 { margin: 4px 0 10px; font-size: 1.02rem; line-height: 1.25; }
.lv-directory-body h3 a { text-decoration: none; }
.lv-directory-body p { margin: 0 0 12px; color: var(--lv-muted); font-size: .92rem; }
.lv-card-meta { margin: 0 0 7px !important; color: var(--lv-muted) !important; font-size: .77rem !important; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

.lv-guide-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.lv-guide-card { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px; border: 1px solid var(--lv-border); border-radius: 16px; background: #fff; text-decoration: none; }
.lv-guide-card > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff4ef; color: var(--lv-accent); font-weight: 900; }
.lv-guide-card h3 { margin: 0 0 6px; }
.lv-guide-card p { margin: 0; color: var(--lv-muted); }
.lv-tool-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.lv-tool-card { padding: 20px; border: 1px solid var(--lv-border); border-radius: 16px; text-decoration: none; background: #fff; }
.lv-tool-card strong { display: block; margin-bottom: 7px; }
.lv-tool-card span { display: block; color: var(--lv-muted); }

.lv-review-page { background: #fff; }
.lv-breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; color: var(--lv-muted); font-size: .87rem; }
.lv-breadcrumbs a { text-decoration: none; }
.lv-review-header { display: grid; grid-template-columns: minmax(220px,320px) 1fr; gap: 36px; align-items: center; padding-bottom: 30px; border-bottom: 1px solid var(--lv-border); }
.lv-review-logo { min-height: 230px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--lv-border); border-radius: 18px; background: #f8fafc; overflow: hidden; color: #475467; font-weight: 900; font-size: 1.5rem; }
.lv-review-logo img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.lv-review-summary h1 { margin: 4px 0 12px; font-size: clamp(2.2rem,4vw,3.7rem); line-height: 1; letter-spacing: -.045em; }
.lv-review-deck { max-width: 760px; margin: 14px 0; color: #475467; font-size: 1.05rem; }
.lv-review-rating-row { display: grid; grid-template-columns: 180px 1fr; gap: 12px; margin-top: 20px; }
.lv-rating-box,.lv-best-box { padding: 14px 16px; border: 1px solid var(--lv-border); border-radius: 14px; background: #fff; }
.lv-rating-box span,.lv-best-box span,.lv-spec-strip span { display: block; color: var(--lv-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }
.lv-rating-box strong { font-size: 1.5rem; }
.lv-best-box strong { font-size: .98rem; line-height: 1.3; }
.lv-spec-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 24px 0 36px; border: 1px solid var(--lv-border); border-radius: 16px; background: #f8fafc; overflow: hidden; }
.lv-spec-strip > div { padding: 15px 18px; border-right: 1px solid var(--lv-border); }
.lv-spec-strip > div:last-child { border-right: 0; }
.lv-review-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 34px; align-items: start; }
.lv-review-main { min-width: 0; }
.lv-content-surface { max-width: 760px; }
.lv-content-surface h2 { margin-top: 36px; font-size: 1.7rem; letter-spacing: -.025em; }
.lv-content-surface p,.lv-content-surface li { color: #344054; }
.lv-review-sidebar { position: sticky; top: 110px; display: grid; gap: 14px; }
.lv-sidebar-card { padding: 18px; border: 1px solid var(--lv-border); border-radius: 16px; background: #fff; }
.lv-sidebar-card > a:not(.lv-btn) { display: block; padding: 9px 0; border-top: 1px solid #eef0f3; text-decoration: none; font-weight: 700; font-size: .9rem; }
.lv-sidebar-card > strong { display: block; margin-bottom: 8px; }

.lv-site-footer { background: #0f172a; color: #94a3b8; border-top: 0; margin-top: 0; }
.lv-site-footer a { color: #e2e8f0; }

@media (max-width: 980px) {
  .lv-site-search { display: none; }
  .lv-directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .lv-review-layout { grid-template-columns: 1fr; }
  .lv-review-sidebar { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .lv-disclosure-bar { font-size: .72rem; }
  .lv-home-hero { padding: 42px 0 38px; }
  .lv-home-actions { align-items: stretch; }
  .lv-home-actions .lv-btn { width: auto; }
  .lv-section-head { align-items: start; flex-direction: column; gap: 10px; }
  .lv-directory-grid,.lv-guide-grid,.lv-tool-grid,.lv-review-header,.lv-review-rating-row,.lv-spec-strip,.lv-review-sidebar { grid-template-columns: 1fr; }
  .lv-directory-media { min-height: 150px; }
  .lv-review-header { gap: 20px; }
  .lv-review-logo { min-height: 190px; }
  .lv-spec-strip > div { border-right: 0; border-bottom: 1px solid var(--lv-border); }
  .lv-spec-strip > div:last-child { border-bottom: 0; }
}