/* TechLink Deals by TechClick — clean, fast, mobile-first */
:root {
  --bg: #0f1419;
  --surface: #1a222c;
  --surface-2: #243040;
  --text: #e8eef5;
  --muted: #9aabbc;
  --accent: #ff9900;
  --accent-2: #ffb84d;
  --amazon: #ff9900;
  --amazon-ink: #111;
  --border: #2e3a48;
  --ok: #3dd68c;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max: 1100px;
  --narrow: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
main { flex: 1; padding-bottom: 3rem; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2rem, var(--narrow)); }
.center { text-align: center; padding: 4rem 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #e47911);
  font-size: 1rem;
}
.logo-text strong { color: var(--accent-2); font-weight: 700; }
.nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover, .nav a.is-active { color: var(--text); }

/* Hero */
.hero {
  padding: 2.5rem 0 1.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255, 153, 0, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(61, 214, 140, 0.08), transparent 55%);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.2;
}
.hero-sub {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0.75rem;
}
.filter-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-btn:hover { color: var(--text); border-color: #455566; }
.filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--amazon-ink);
  font-weight: 600;
}
.results-count {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

/* Cards */
.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}
.deal-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s, border-color 0.15s;
}
.deal-card:hover {
  transform: translateY(-2px);
  border-color: #4a5d72;
}
.card-icon {
  display: grid;
  place-items: center;
  height: 5.5rem;
  font-size: 2.4rem;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border-bottom: 1px solid var(--border);
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
}
.card-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}
.badge-deal {
  background: rgba(255, 153, 0, 0.15);
  color: var(--accent-2);
}
.card-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent-2); }
.card-blurb {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn:active { transform: scale(0.98); }
.btn-amazon {
  background: linear-gradient(180deg, #ffb84d, var(--amazon));
  color: var(--amazon-ink);
  box-shadow: 0 2px 0 #c77700;
}
.btn-sm { padding: 0.5rem 0.85rem; font-size: 0.85rem; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-2); }

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}

/* Deal page */
.deal-page { padding-top: 1.5rem; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--muted); }
.deal-hero-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.deal-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.deal-page h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.25;
}
.lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}
.cta-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 2rem;
  text-align: center;
}
.cta-block .btn-amazon {
  width: 100%;
  max-width: 28rem;
  padding: 0.95rem 1.25rem;
  font-size: 1.05rem;
}
.cta-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.faq-section h2 { font-size: 1.25rem; margin: 0 0 1rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--accent);
  font-weight: 700;
}
.faq-item[open] summary::before { content: "–"; }
.faq-item p { margin: 0.65rem 0 0.15rem; color: var(--muted); }
.back-link { margin-top: 2rem; }

/* About / prose */
.prose { padding: 2rem 0; }
.prose h1 { margin-top: 0; }
.prose h2 { margin-top: 1.75rem; font-size: 1.2rem; }
.prose p { color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  margin-top: auto;
  background: #0c1015;
}
.disclosure {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-links {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent-2); }

@media (max-width: 560px) {
  .header-inner { flex-wrap: wrap; }
  .card-actions { flex-direction: column; }
  .card-actions .btn { width: 100%; }
}
