/* ============================================
   GadgetHumans — Apple-Inspired Design System
   Clean, airy, minimal. Lots of whitespace.
   SF Pro display font stack. Subtle frosted glass.
   ============================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Apple's signature gray palette */
  --bg: #f5f5f7;
  --bg2: #ffffff;
  --card: #ffffff;
  --card-hover: #fafafa;
  --border: #d2d2d7;
  --border-hover: #a1a1a6;
  --text: #1d1d1f;
  --text2: #515154;
  --muted: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-dim: rgba(0, 113, 227, 0.08);
  --success: #1d9e6b;
  --danger: #ff375f;
  --warning: #ff9f0a;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Spacing & sizing */
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
  --max-w: 1100px;
  --nav-h: 56px;
  --section-gap: 56px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 16px;
}

/* ---------- Navigation (Apple-style frosted) ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 245, 247, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  height: var(--nav-h);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 22px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
}

.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.nav-links a:hover { color: var(--text); background: rgba(0, 0, 0, 0.05); }
.nav-links a.active { color: var(--accent); }

.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.2rem; cursor: pointer; padding: 4px; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 22px;
  width: 100%;
}

/* ---------- Hero Section (spacious, centered) ---------- */
.hero {
  text-align: center;
  padding: 80px 20px 48px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text2);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Apple-style Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border: none;
  border-radius: 980px; /* Apple pill shape */
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--accent-dim); border-color: var(--accent); }

.btn-outline {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: rgba(0, 0, 0, 0.04); border-color: var(--border-hover); }

.btn-sm { padding: 8px 18px; font-size: 0.78rem; }

/* ---------- Section Titles (minimal) ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 48px 0 20px;
  color: var(--text);
}

.section-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: -14px;
  margin-bottom: 24px;
}

/* ---------- Cards (clean, white, shadow) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.card-desc { font-size: 0.85rem; color: var(--text2); line-height: 1.5; }
.card-link { text-decoration: none; color: inherit; display: block; }

/* ---------- Category Cards (rounded, clean) ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.cat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cat-card .emoji { font-size: 1.4rem; margin-bottom: 2px; }
.cat-card .title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.cat-card .desc {
  font-size: 0.8rem;
  color: var(--text2);
  line-height: 1.5;
}

/* ---------- Gear / Product Cards ---------- */
.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.gear-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  text-align: center;
  gap: 8px;
  box-shadow: var(--shadow);
}

.gear-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.gear-card .emoji { font-size: 2rem; }
.gear-card .name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.gear-card .desc { font-size: 0.73rem; color: var(--muted); }
.gear-card .price { font-size: 0.8rem; color: var(--success); font-weight: 600; }

/* ---------- Content Articles (clean, readable) ---------- */
article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  margin-bottom: 24px;
  line-height: 1.8;
  box-shadow: var(--shadow);
}

article h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.2;
}

article h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 36px 0 14px;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

article h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--text);
}

article h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 18px 0 8px;
  color: var(--text2);
}

article p {
  color: var(--text2);
  margin-bottom: 18px;
  font-size: 0.95rem;
}

article ul, article ol {
  margin: 0 0 18px 22px;
  color: var(--text2);
  font-size: 0.95rem;
}
article li { margin-bottom: 8px; }
article strong { color: var(--text); font-weight: 600; }
article a { color: var(--accent); text-decoration: none; font-weight: 500; }
article a:hover { text-decoration: underline; }

article blockquote {
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  margin: 18px 0;
  background: var(--accent-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text2);
  font-style: italic;
}

article img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 18px 0;
}

/* ---------- Takeaways Box ---------- */
.takeaways {
  background: linear-gradient(135deg, var(--accent-dim), rgba(29, 158, 107, 0.06));
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin: 0 0 28px;
}

.takeaways h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 10px;
  border: none;
  padding: 0;
}

.takeaways ul { margin: 0; list-style: none; }
.takeaways li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text2);
}
.takeaways li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Specs Grid ---------- */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 18px 0;
  overflow: hidden;
}

.spec-grid dt {
  padding: 10px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--bg);
}

.spec-grid dd {
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.spec-grid dt:last-of-type, .spec-grid dd:last-of-type { border-bottom: none; }

/* ---------- Price Button ---------- */
.price-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: 980px; /* Apple pill */
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  margin: 10px 0;
}

.price-btn:hover {
  background: #23b076;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(29, 158, 107, 0.25);
}

/* ---------- Pros/Cons ---------- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}

.pros, .cons {
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.pros {
  background: rgba(29, 158, 107, 0.06);
  border: 1px solid rgba(29, 158, 107, 0.15);
}
.cons {
  background: rgba(255, 55, 95, 0.06);
  border: 1px solid rgba(255, 55, 95, 0.15);
}

.pros h4, .cons h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 10px; }
.pros h4 { color: var(--success); }
.cons h4 { color: var(--danger); }
.pros ul, .cons ul { margin: 0; list-style: none; }
.pros li, .cons li {
  padding: 4px 0 4px 18px;
  position: relative;
  font-size: 0.85rem;
  color: var(--text2);
}
.pros li::before { content: '+'; position: absolute; left: 0; font-weight: 700; color: var(--success); }
.cons li::before { content: '−'; position: absolute; left: 0; font-weight: 700; color: var(--danger); }

/* ---------- Comparison Table (clean, minimal) ---------- */
.table-wrap { overflow-x: auto; margin: 18px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
thead th {
  background: var(--bg);
  color: var(--muted);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}
tbody tr:hover { background: rgba(0, 113, 227, 0.03); }
tbody tr:last-child td { border-bottom: none; }

/* ---------- Affiliate Disclosure ---------- */
.affiliate-disclosure {
  font-size: 0.72rem;
  color: var(--muted);
  font-style: italic;
  padding: 8px 0;
  margin: 8px 0;
}

/* ---------- CTA Section (soft gradient, clean) ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--card), rgba(0, 113, 227, 0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  text-align: center;
  margin: 36px 0;
  box-shadow: var(--shadow);
}

.cta-section h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.cta-section p {
  color: var(--text2);
  font-size: 0.9rem;
  margin-bottom: 20px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-group { justify-content: center; }

/* ---------- Blog List ---------- */
.blog-list { list-style: none; }

.blog-item {
  display: block;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.blog-item:hover { border-color: var(--accent); transform: translateX(4px); }
.blog-item .title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.blog-item .meta { font-size: 0.75rem; color: var(--muted); }
.blog-item .excerpt { font-size: 0.82rem; color: var(--text2); margin-top: 8px; }

/* ---------- Review List ---------- */
.review-list { list-style: none; }

.review-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.review-item:hover { border-color: var(--accent); transform: translateX(4px); }
.review-item .emoji { font-size: 1.6rem; }
.review-item .info { flex: 1; }
.review-item .info .name { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.review-item .info .desc { font-size: 0.78rem; color: var(--muted); }
.review-item .rating { color: var(--warning); font-size: 0.85rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 24px;
  padding-top: 16px;
}
.breadcrumbs a { color: var(--accent); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { color: var(--border); }

/* ---------- Footer (minimal, like Apple) ---------- */
footer {
  margin-top: 64px;
  padding: 36px 22px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.8;
}

footer a { color: var(--text2); text-decoration: none; }
footer a:hover { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--text2);
}

/* ---------- Tags ---------- */
.tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 980px; /* pill */
  font-size: 0.72rem;
  font-weight: 600;
  margin-right: 4px;
}

/* ---------- Navigation badge (new!) ---------- */
.nav-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
  margin-left: 4px;
  vertical-align: top;
}

/* ---------- Trending section (clean Apple modules) ---------- */
.trending-section {
  margin-bottom: 28px;
}

.trending-section .section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 14px;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero { padding: 48px 16px 32px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }

  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(245, 245, 247, 0.98);
    backdrop-filter: blur(20px);
    padding: 12px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }

  .cat-grid, .card-grid { grid-template-columns: 1fr; }

  article { padding: 28px 20px; }
  article h1 { font-size: 1.5rem; }

  .pros-cons { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }

  .cta-section { padding: 28px 20px; }

  .section-title { font-size: 1.3rem; }
}

/* ---------- Dark Mode (automatic) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e;
    --bg2: #2c2c2e;
    --card: #2c2c2e;
    --card-hover: #3a3a3c;
    --border: #38383a;
    --border-hover: #48484a;
    --text: #f5f5f7;
    --text2: #aeaeb2;
    --muted: #8e8e93;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.25);
  }

  nav { background: rgba(28, 28, 30, 0.88); border-bottom-color: rgba(255,255,255,0.06); }
  .nav-links a.active { color: #2997ff; }
  .nav-links a:hover { background: rgba(255,255,255,0.06); }

  .btn-primary { background: #2997ff; }
  .btn-primary:hover { background: #47a8ff; }
  .btn-secondary { color: #2997ff; border-color: #38383a; }
  .btn-secondary:hover { background: rgba(41, 151, 255, 0.08); border-color: #2997ff; }
  .btn-outline:hover { background: rgba(255,255,255,0.06); }

  .spec-grid dt { background: var(--bg); }
  thead th { background: var(--bg2); }

  .cta-section { background: linear-gradient(135deg, var(--card), rgba(41, 151, 255, 0.06)); }

  .blog-item, .review-item, .card, .cat-card, .gear-card {
    box-shadow: none; /* dark mode: no shadows, cleaner */
  }

  tbody tr:hover { background: rgba(41, 151, 255, 0.04); }
}
