/* 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; }
}
