/* TechOfEra — lightweight static styles. No frameworks. Mobile-first. */

:root {
  --text: #1f2933;
  --muted: #5b6570;
  --accent: #0b5fff;
  --amazon: #e8840c;
  --amazon-dark: #c96f0a;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --border: #e2e8f0;
  --header-bg: #141c2b;
  --disclosure-bg: #fff8e6;
  --disclosure-border: #e8b93c;
  --radius: 10px;
  --max-width: 820px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--header-bg);
  color: #fff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-name {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.site-name:hover { color: #ffd9a0; }

.site-header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px 22px;
  flex-wrap: wrap;
}

.site-header nav a {
  color: #dbe4f0;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-header nav a:hover { color: #fff; text-decoration: underline; }

/* ---------- Main / article ---------- */
main { padding: 28px 0 48px; }

article h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 0.4em 0 0.6em;
}

article h2 {
  font-size: 1.45rem;
  margin: 1.8em 0 0.6em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid var(--border);
}

article h3 { font-size: 1.15rem; margin: 1.4em 0 0.5em; }

article p { margin: 0 0 1em; }

article ul, article ol { margin: 0 0 1em; padding-left: 1.4em; }

article li { margin-bottom: 0.35em; }

article a { color: var(--accent); }

article img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.updated { color: var(--muted); font-size: 0.9rem; }

/* ---------- Disclosure box ---------- */
.disclosure-box {
  background: var(--disclosure-bg);
  border: 1px solid var(--disclosure-border);
  border-left: 5px solid var(--disclosure-border);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.92rem;
  margin: 1.2em 0 1.6em;
}

.disclosure-box a { color: var(--accent); }

/* ---------- Product cards ---------- */
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 1.6em 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.product-card h3 { margin-top: 0; font-size: 1.25rem; }

.product-card .pick-badge {
  display: inline-block;
  background: var(--header-bg);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.specs {
  list-style: none;
  padding: 0;
  margin: 0.8em 0;
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 12px 16px;
}

.specs li { margin-bottom: 0.25em; font-size: 0.95rem; }

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0.8em 0 1em;
}

.pros, .cons {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.93rem;
}

.pros { background: #eef7ee; border: 1px solid #bfe3bf; }
.cons { background: #fdf0ef; border: 1px solid #f0c4c0; }

.pros h4, .cons h4 { margin: 0 0 0.4em; font-size: 0.95rem; }
.pros ul, .cons ul { margin: 0; padding-left: 1.2em; }
.pros li, .cons li { margin-bottom: 0.2em; }

/* ---------- Buttons ---------- */
.btn-amazon {
  display: inline-block;
  background: var(--amazon);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 8px;
  margin: 0.4em 0 0.2em;
  transition: background 0.15s ease;
}

.btn-amazon:hover { background: var(--amazon-dark); }

/* ---------- Comparison tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.4em 0; }

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 560px;
}

table.compare th, table.compare td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

table.compare th { background: var(--header-bg); color: #fff; }

table.compare tr:nth-child(even) td { background: var(--bg-soft); }

/* ---------- FAQ ---------- */
.faq h3 { font-size: 1.05rem; }
.faq p { margin-bottom: 1.2em; }

/* ---------- Homepage cards ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin: 1.6em 0;
}

.article-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.article-card h2, .article-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5em;
  border: none;
  padding: 0;
}

.article-card p { font-size: 0.93rem; color: var(--muted); margin: 0 0 0.8em; flex: 1; }

.article-card a.read-more {
  font-weight: 700;
  text-decoration: none;
  color: var(--accent);
}

.hero {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 28px 26px;
  margin: 0.5em 0 1em;
}

.hero h1 { margin-top: 0; }
.hero p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--header-bg);
  color: #aeb9c9;
  padding: 30px 0;
  font-size: 0.9rem;
}

.site-footer nav { margin-top: 10px; }

.site-footer nav a {
  color: #dbe4f0;
  text-decoration: none;
  margin-right: 18px;
}

.site-footer nav a:hover { text-decoration: underline; }

.site-footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  article h1 { font-size: 1.6rem; }
  .pros-cons { grid-template-columns: 1fr; }
  .product-card { padding: 16px; }
  .site-header .container { flex-direction: column; align-items: flex-start; }
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs { font-size: .85rem; color: #6b7280; margin: 18px 0 4px; }
.breadcrumbs a { color: #b47608; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- related guides ---------- */
.related-guides { margin: 44px 0 8px; padding: 26px 28px; background: #f4f6fb; border: 1px solid #e6eaf2; border-radius: 14px; }
.related-guides h2 { margin: 0 0 12px; font-size: 1.25rem; }
.related-guides ul { margin: 0; padding-left: 20px; }
.related-guides li { margin-bottom: 8px; }
.related-guides a { color: #0f1420; font-weight: 600; text-decoration: none; }
.related-guides a:hover { color: #b47608; text-decoration: underline; }

/* ---------- category pages ---------- */
.cat-desc { font-size: 1.05rem; color: #3c4457; max-width: 720px; }

/* ---------- guides index ---------- */
.guide-list { display: grid; gap: 18px; }
.guide-item { border: 1px solid #e6eaf2; border-radius: 12px; padding: 20px 22px; background: #fff; transition: box-shadow .25s, transform .25s; }
.guide-item:hover { box-shadow: 0 12px 28px rgba(15,20,32,.1); transform: translateY(-3px); }
.guide-item h3 { margin: 0 0 4px; font-size: 1.1rem; }
.guide-item a { color: #0f1420; text-decoration: none; }
.guide-item a:hover h3 { color: #b47608; }
.guide-item .gcat { font-size: .75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #b47608; margin: 0 0 6px; }
.guide-item p { margin: 0; color: #3c4457; font-size: .95rem; }

/* ================= ARTICLE V2 — premium review design ================= */

/* Layout: sticky TOC sidebar + content */
.a-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 44px; align-items: start; margin-top: 8px; }
.a-toc .toc-card { position: sticky; top: 84px; background: #f8fafc; border: 1px solid #e6eaf2; border-radius: 16px; padding: 22px 20px; }
.toc-title { font-size: .78rem; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: #b47608; margin: 0 0 12px; }
.toc-card ul { list-style: none; margin: 0; padding: 0; }
.toc-card li { margin-bottom: 2px; }
.toc-card a { display: block; padding: 7px 10px; border-radius: 8px; color: #3c4457; text-decoration: none; font-size: .9rem; line-height: 1.35; }
.toc-card a:hover { background: #fff; color: #0f1420; box-shadow: 0 2px 8px rgba(15,20,32,.08); }
.toc-n { color: #b47608; font-weight: 700; }
@media (max-width: 999px) {
  .a-layout { grid-template-columns: 1fr; gap: 0; }
  .a-toc .toc-card { position: static; margin-bottom: 28px; }
}

/* Verdict box */
.verdict-box { background: linear-gradient(135deg, #101828 0%, #1c2a4d 70%, #2b2110 100%); border-radius: 20px; padding: 36px 34px; color: #fff; margin: 30px 0 34px; position: relative; overflow: hidden; }
.verdict-box::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(245,166,35,.22), transparent 70%); top: -140px; right: -100px; pointer-events: none; }
.v-kicker { font-size: .75rem; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: #f5a623; margin: 0 0 10px; }
.verdict-box h3 { margin: 0 0 6px; font-size: 1.7rem; color: #fff; }
.v-award { display: inline-block; background: rgba(245,166,35,.16); border: 1px solid rgba(245,166,35,.5); color: #ffd47e; font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.v-why { color: #c9d2e8; margin: 0 0 22px; max-width: 640px; }
.verdict-box .pnote { color: #8a93ad; }

/* Comparison table */
.compare-sec { margin: 34px 0; }
.table-wrap { overflow-x: auto; border: 1px solid #e6eaf2; border-radius: 16px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.cmp-table th { background: #0f1420; color: #fff; text-align: left; padding: 14px 16px; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; }
.cmp-table td { padding: 14px 16px; border-top: 1px solid #eef1f7; vertical-align: middle; }
.cmp-table tbody tr:hover { background: #fafbfe; }
.c-rank { font-weight: 800; color: #b47608; font-size: 1.05rem; white-space: nowrap; }
.c-award { display: block; font-size: .75rem; color: #b47608; font-weight: 700; margin-top: 2px; }
.c-specs { color: #3c4457; font-size: .85rem; }

/* Product cards v2 */
.pcard { border: 1px solid #e6eaf2; border-radius: 20px; overflow: hidden; margin: 30px 0; background: #fff; box-shadow: 0 4px 18px rgba(15,20,32,.05); }
.pcard-head { display: flex; align-items: center; gap: 16px; padding: 24px 28px; background: linear-gradient(120deg, #f8fafc, #eef2f9); border-bottom: 1px solid #e6eaf2; }
.prank { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #0f1420; color: #f5a623; font-weight: 800; font-size: 1.25rem; display: flex; align-items: center; justify-content: center; }
.pvisual { flex: none; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, #f5a623, #d98a0b); display: flex; align-items: center; justify-content: center; }
.pvisual span { color: #fff; font-weight: 800; font-size: 1.5rem; }
.pcard-titles h3 { margin: 0; font-size: 1.35rem; }
.paward { display: inline-block; margin-top: 4px; font-size: .78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #b47608; }
.pcard > p { padding: 0 28px; color: #3c4457; }
.pc-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 6px 28px 0; }
@media (max-width: 640px) { .pc-proscons { grid-template-columns: 1fr; } }
.pc-pros, .pc-cons { border-radius: 14px; padding: 18px 20px; }
.pc-pros { background: #f0f9f1; border: 1px solid #cde8d2; }
.pc-cons { background: #fdf3f0; border: 1px solid #f3d9d2; }
.pc-pros h4, .pc-cons h4 { margin: 0 0 10px; font-size: .85rem; letter-spacing: 1.5px; text-transform: uppercase; }
.pc-pros h4 { color: #1e7a34; } .pc-pros h4::before { content: "✓ "; }
.pc-cons h4 { color: #b3402a; } .pc-cons h4::before { content: "✕ "; }
.pc-pros ul, .pc-cons ul { margin: 0; padding-left: 18px; font-size: .92rem; color: #2b3245; }
.pc-pros li, .pc-cons li { margin-bottom: 6px; }
.pc-specs { margin: 18px 28px 0; border: 1px solid #e6eaf2; border-radius: 12px; padding: 0 18px; background: #fafbfe; }
.pc-specs summary { cursor: pointer; font-weight: 700; padding: 14px 0; font-size: .95rem; }
.pc-specs ul { margin: 0 0 16px; padding-left: 20px; font-size: .9rem; color: #3c4457; }
.pcta { padding: 24px 28px 28px; text-align: center; background: linear-gradient(180deg, #fff, #fafbfe); }
.pnote { font-size: .8rem; color: #8a93ad; margin: 10px 0 0; }

/* CTA buttons */
.btn-buy { display: inline-block; background: linear-gradient(180deg, #ffb63d, #f5a623); color: #14100a !important; font-weight: 800; font-size: 1.08rem; padding: 16px 44px; border-radius: 999px; text-decoration: none; box-shadow: 0 10px 26px rgba(245,166,35,.38); transition: transform .2s, box-shadow .2s; border: none; cursor: pointer; }
.btn-buy:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(245,166,35,.48); color: #14100a !important; }
.btn-buy.btn-lg { font-size: 1.15rem; padding: 17px 52px; }
.btn-buy.btn-sm { font-size: .85rem; padding: 10px 22px; box-shadow: 0 6px 16px rgba(245,166,35,.3); white-space: nowrap; }

/* Final verdict */
.final-verdict { background: #f8fafc; border: 2px solid #e6eaf2; border-radius: 20px; padding: 38px 34px; text-align: center; margin: 40px 0 10px; }
.final-verdict h2 { margin-top: 0; }
.final-verdict p { max-width: 640px; margin: 0 auto 24px; color: #3c4457; font-size: 1.05rem; }

/* ================= CATEGORY PAGES V2 ================= */
.cat-hero { position: relative; background: linear-gradient(120deg, #101828, #1c2a4d 60%, #3a2b12); color: #fff; overflow: hidden; }
.cat-hero.has-img { min-height: 340px; display: flex; align-items: flex-end; }
.cat-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-hero-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,11,20,.35) 0%, rgba(8,11,20,.88) 100%); }
.cat-hero-inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 64px 24px 48px; width: 100%; }
.cat-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin: 8px 0 10px; }
.cat-hero-inner > p { color: #c9d2e8; max-width: 640px; margin: 0 0 8px; font-size: 1.08rem; }
.cat-count { font-size: .85rem !important; letter-spacing: 1.5px; text-transform: uppercase; color: #f5a623 !important; font-weight: 700; }
.breadcrumbs.light { color: #aeb8d0; }
.breadcrumbs.light a { color: #ffd47e; }
.cat-grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; padding: 48px 0 70px; }
.cat-card { display: block; background: #fff; border: 1px solid #e6eaf2; border-radius: 18px; padding: 28px 26px; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; position: relative; overflow: hidden; }
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15,20,32,.12); }
.cc-num { font-size: .8rem; font-weight: 800; letter-spacing: 2px; color: #b47608; }
.cat-card h3 { margin: 10px 0 8px; font-size: 1.18rem; line-height: 1.35; color: #0f1420; }
.cat-card p { color: #3c4457; font-size: .93rem; margin: 0 0 14px; }
.cc-more { font-weight: 700; color: #b47608; font-size: .92rem; }

/* ================= GUIDES PAGE V2 ================= */
.guides-hero { background: linear-gradient(120deg, #101828, #1c2a4d 60%, #3a2b12); color: #fff; text-align: center; padding: 70px 24px 46px; }
.guides-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 10px; }
.guides-hero p { color: #c9d2e8; margin: 0 0 22px; }
#guide-search { width: 100%; max-width: 560px; padding: 15px 22px; font-size: 1.02rem; border: none; border-radius: 999px; margin-bottom: 20px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
#guide-search:focus { outline: 3px solid rgba(245,166,35,.5); }
.gfilter-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; margin: 0 auto; }
.gfilter { display: inline-block; padding: 8px 18px; border: 1.5px solid rgba(255,255,255,.25); border-radius: 999px; color: #dfe5f2; text-decoration: none; font-size: .85rem; font-weight: 600; transition: all .2s; }
.gfilter:hover { border-color: #f5a623; color: #f5a623; }
