/* ── TrueTechRate — Global Styles (Light default, Dark toggle) ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── LIGHT MODE (default) ── */
:root {
  --gold:        #c8950a;
  --gold-dim:    #a87c08;
  --gold-bg:     #FFBF00;
  --olive:       #9a7e1a;
  --lavender:    #8b5bbf;
  --lav-bg:      #E0B0FF;

  --bg:          #fafaf7;
  --bg2:         #f3f1ea;
  --bg3:         #ede9df;
  --surface:     #ffffff;
  --surface2:    #f7f5ef;
  --border:      #e0dbd0;
  --border-soft: #ede9df;

  --text:        #1a1710;
  --text-mid:    #5a5440;
  --text-dim:    #9a9278;

  --shadow:      0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.12);
  --nav-bg:      rgba(250,250,247,0.93);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui:      'Outfit', sans-serif;
  --radius:       10px;
  --radius-lg:    16px;
}

/* ── DARK MODE ── */
html.dark {
  --gold:        #FFBF00;
  --gold-dim:    #c49500;
  --gold-bg:     #FFBF00;
  --olive:       #CFB53B;
  --lavender:    #E0B0FF;
  --lav-bg:      #E0B0FF;

  --bg:          #0e0d0a;
  --bg2:         #161410;
  --bg3:         #1e1b14;
  --surface:     #252218;
  --surface2:    #2e2a1e;
  --border:      #3a3520;
  --border-soft: #2a2618;

  --text:        #f0ead8;
  --text-mid:    #a09870;
  --text-dim:    #6a6240;

  --shadow:      0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.5);
  --nav-bg:      rgba(14,13,10,0.93);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  font-size: 16px; line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
  height: 68px; display: flex; align-items: center;
  padding: 0 5%; gap: 1.5rem;
  transition: background 0.3s, border-color 0.3s;
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 700;
  color: var(--text); text-decoration: none;
  letter-spacing: -0.01em; white-space: nowrap; flex-shrink: 0;
}
.nav-logo span { background: var(--gold-bg); padding: 0 4px; font-style: italic; color: #1a1710; }
.nav-center { display: flex; align-items: center; gap: 0.2rem; flex: 1; justify-content: center; }
.nav-center a {
  text-decoration: none; color: var(--text-mid);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.45rem 0.8rem; border-radius: 6px;
  transition: color 0.2s, background 0.2s; white-space: nowrap;
}
.nav-center a:hover, .nav-center a.active { color: var(--gold); background: rgba(200,149,10,0.08); }
.nav-right { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.nav-social { display: flex; gap: 0.4rem; }
.nav-social a {
  width: 32px; height: 32px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 0.8rem;
  transition: background 0.2s, border-color 0.2s;
}
.nav-social a:hover { background: var(--surface2); border-color: var(--gold-dim); }

/* ── THEME TOGGLE BUTTON ── */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--surface); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.05rem; flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  user-select: none;
}
.theme-toggle:hover { background: var(--surface2); border-color: var(--gold-dim); transform: scale(1.1) rotate(15deg); }

.nav-deals-btn {
  background: var(--text); color: var(--gold-bg);
  padding: 0.5rem 1.1rem; border-radius: 6px;
  text-decoration: none; font-weight: 700;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.2s, transform 0.15s; white-space: nowrap;
}
.nav-deals-btn:hover { background: var(--gold); color: #1a1710; transform: translateY(-1px); }

.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

.mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 1.5rem 5%; z-index: 199; flex-direction: column; gap: 0.5rem;
  transition: background 0.3s;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none; color: var(--text-mid);
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.6rem 0.8rem; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover { color: var(--gold); background: rgba(200,149,10,0.06); }

/* ── PAGE ── */
.page { padding-top: 68px; }
.section { padding: 5rem 7%; }
.section-sm { padding: 3rem 7%; }

.section-tag {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: #1a1710; background: var(--gold-bg);
  padding: 0.25rem 0.7rem; border-radius: 3px; margin-bottom: 0.9rem;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
  color: var(--text); margin-bottom: 0.8rem;
}
.section-sub { color: var(--text-mid); font-size: 0.95rem; max-width: 520px; line-height: 1.75; }
.section-header-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem;
}
.view-all {
  text-decoration: none; color: var(--text-mid);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.3rem;
  border-bottom: 1px solid var(--border); padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.view-all:hover { color: var(--gold); border-color: var(--gold); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.8rem 1.8rem; border-radius: 6px;
  font-family: var(--font-ui); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-gold { background: var(--gold-bg); color: #1a1710; }
.btn-gold:hover { background: var(--olive); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,149,10,0.25); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(200,149,10,0.05); }

/* ── REVIEW CARD ── */
.review-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.6rem; position: relative;
  text-decoration: none; color: inherit; display: block;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, background 0.3s;
  overflow: hidden;
}
.review-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold-bg), var(--lav-bg));
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold-dim); }
.review-score {
  position: absolute; top: 1.4rem; right: 1.4rem;
  background: var(--gold-bg); color: #1a1710;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.review-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.review-brand { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.2rem; }
.review-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.review-stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 0.7rem; letter-spacing: 2px; }
.review-summary { font-size: 0.875rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 1.2rem; }
.pros-cons { display: flex; gap: 1rem; margin-bottom: 1.3rem; }
.pros, .cons { flex: 1; }
.pros-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.4rem; display: block; color: #4a8a1a; }
.cons-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.4rem; display: block; color: #c03030; }
html.dark .pros-label { color: #7ab648; }
html.dark .cons-label { color: #e05555; }
.pros li, .cons li { font-size: 0.78rem; color: var(--text-mid); list-style: none; padding-left: 1rem; position: relative; margin-bottom: 0.2rem; }
.pros li::before { content: '+'; position: absolute; left: 0; color: #4a8a1a; font-weight: 700; }
.cons li::before { content: '−'; position: absolute; left: 0; color: #c03030; font-weight: 700; }
html.dark .pros li::before { color: #7ab648; }
html.dark .cons li::before { color: #e05555; }
.amazon-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--gold-bg); color: #1a1710;
  padding: 0.75rem; border-radius: 6px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; transition: background 0.2s, transform 0.15s;
}
.amazon-btn:hover { background: var(--olive); color: #fff; transform: translateY(-1px); }
.amazon-badge { font-size: 0.62rem; color: var(--text-dim); text-align: center; margin-top: 0.5rem; }

/* ── POST CARD ── */
.post-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: inherit; display: block;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, background 0.3s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold-dim); }
.post-thumb { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 2.8rem; }
.post-thumb.t-laptops { background: linear-gradient(135deg, #fff3cc, #ffe080); }
.post-thumb.t-phones  { background: linear-gradient(135deg, #e8e0ff, #c8b0ff); }
.post-thumb.t-audio   { background: linear-gradient(135deg, #d0f0e0, #a0d8c0); }
.post-thumb.t-wear    { background: linear-gradient(135deg, #fde0f0, #f0b0d8); }
.post-thumb.t-gaming  { background: linear-gradient(135deg, #ffe8d0, #ffcc99); }
.post-thumb.t-deals   { background: linear-gradient(135deg, #d0e8ff, #a0c8f0); }
html.dark .post-thumb.t-laptops { background: linear-gradient(135deg, #1a1500, #3d2e00); }
html.dark .post-thumb.t-phones  { background: linear-gradient(135deg, #0d0d1a, #1e1040); }
html.dark .post-thumb.t-audio   { background: linear-gradient(135deg, #0d1a10, #0f3020); }
html.dark .post-thumb.t-wear    { background: linear-gradient(135deg, #1a0d1a, #320a32); }
html.dark .post-thumb.t-gaming  { background: linear-gradient(135deg, #1a0a0a, #3d1010); }
html.dark .post-thumb.t-deals   { background: linear-gradient(135deg, #0a1a1a, #103030); }
.post-body { padding: 1.3rem; }
.post-cat {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #1a1710; background: var(--gold-bg);
  padding: 0.2rem 0.55rem; border-radius: 3px; display: inline-block; margin-bottom: 0.7rem;
}
.post-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; line-height: 1.35; margin-bottom: 0.6rem; color: var(--text); }
.post-excerpt { font-size: 0.83rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 1rem; }
.post-meta { font-size: 0.72rem; color: var(--text-dim); font-weight: 500; display: flex; gap: 0.5rem; align-items: center; }
.post-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); }

/* ── BADGE ── */
.badge { display: inline-block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.22rem 0.6rem; border-radius: 3px; }
.badge-gold { background: var(--gold-bg); color: #1a1710; }
.badge-lav  { background: rgba(139,91,191,0.1); color: var(--lavender); border: 1px solid rgba(139,91,191,0.2); }
html.dark .badge-lav { background: rgba(224,176,255,0.15); color: #E0B0FF; border-color: rgba(224,176,255,0.25); }
.badge-hot  { background: rgba(192,48,48,0.08); color: #c03030; border: 1px solid rgba(192,48,48,0.18); }
html.dark .badge-hot { background: rgba(224,85,85,0.15); color: #e05555; border-color: rgba(224,85,85,0.25); }

.divider { border: none; border-top: 1px solid var(--border-soft); margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }

.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--text-dim); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--border); }

/* ── FOOTER ── */
footer { background: var(--bg2); border-top: 1px solid var(--border-soft); padding: 4rem 7% 0; transition: background 0.3s; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand p { font-size: 0.82rem; color: var(--text-dim); line-height: 1.7; max-width: 260px; margin-top: 0.8rem; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 7px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 0.85rem;
  transition: background 0.2s, border-color 0.2s;
}
.footer-social a:hover { background: var(--surface2); border-color: var(--gold-dim); }
footer h4 { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
footer ul a { color: var(--text-dim); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
footer ul a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border-soft); padding: 1.2rem 0; font-size: 0.72rem; color: var(--text-dim); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--gold); }
.disclosure-bar { background: rgba(139,91,191,0.06); border: 1px solid rgba(139,91,191,0.15); border-radius: 8px; padding: 0.9rem 1.2rem; margin-bottom: 1.5rem; }
html.dark .disclosure-bar { background: rgba(224,176,255,0.06); border-color: rgba(224,176,255,0.12); }
.disclosure-bar p { font-size: 0.73rem; color: var(--lavender); line-height: 1.6; }
.disclosure-bar strong { font-weight: 700; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.anim-1 { animation: fadeUp 0.6s 0.05s both; }
.anim-2 { animation: fadeUp 0.6s 0.15s both; }
.anim-3 { animation: fadeUp 0.6s 0.25s both; }
.anim-4 { animation: fadeUp 0.6s 0.35s both; }

@media (max-width: 900px) {
  .nav-center { display: none; }
  .nav-social { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 4rem 5%; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  nav { padding: 0 4%; }
  .section { padding: 3rem 4%; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}
