/* Nightshift — Affiliate Site Styles */
/* Vibe: Dark editorial, warm amber accent, premium tech publication */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Satoshi:wght@300;400;500;600&display=swap');

:root {
  --bg: #0c0c0e;
  --bg-surface: #141417;
  --bg-card: #1a1a1f;
  --bg-card-hover: #1f1f26;
  --border: #2a2a32;
  --border-subtle: #222228;
  --text: #f0ede8;
  --text-muted: #7a7a8a;
  --text-dim: #4a4a5a;
  --accent: #e8a430;
  --accent-dim: #b8821f;
  --accent-glow: rgba(232, 164, 48, 0.12);
  --green: #22c55e;
  --red: #ef4444;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Satoshi', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #000; }

::-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(--text-muted); }

a { color: inherit; text-decoration: none; }

/* ─── Navigation ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--text); background: var(--bg-surface); }
.nav-links a.active { color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: #000 !important;
  font-weight: 600;
  padding: 0.4rem 1rem !important;
  border-radius: 6px !important;
  transition: background 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  background: #f0b840 !important;
  box-shadow: 0 0 16px rgba(232, 164, 48, 0.3);
}

/* ─── Container ─── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Hero ─── */
.hero {
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(232, 164, 48, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(232, 164, 48, 0.2);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #000;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-primary:hover {
  background: #f0b840;
  box-shadow: 0 0 20px rgba(232, 164, 48, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  text-decoration: none;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--bg-surface);
}

/* ─── Article Grid ─── */
.section {
  padding: 3rem 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  border-color: rgba(232, 164, 48, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.article-card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.article-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.article-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.article-card-arrow {
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  color: var(--accent);
  font-size: 1.2rem;
}

.article-card:hover .article-card-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* ─── Comparison Section ─── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .compare-grid { grid-template-columns: 1fr; }
}

.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  position: relative;
  transition: border-color 0.2s;
}

.compare-card:hover { border-color: rgba(232, 164, 48, 0.25); }

.compare-badge {
  position: absolute;
  top: -10px;
  right: 1.25rem;
  background: var(--accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
}

.compare-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.compare-card-price {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.compare-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}

.compare-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 2px;
}

.compare-cta {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.compare-cta a {
  display: block;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.compare-cta a:hover {
  background: var(--accent-glow);
  border-color: rgba(232, 164, 48, 0.3);
  color: var(--accent);
}

/* ─── Article Page ─── */
.article-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.article-header {
  margin-bottom: 2.5rem;
}

.article-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.article-eyebrow span { color: var(--border); }

.article-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.article-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-meta strong { color: var(--text); font-weight: 600; }

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.article-body p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-body li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  background: var(--accent-glow);
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
}

/* ─── Tool Table ─── */
.tool-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

.tool-table th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.tool-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  vertical-align: middle;
}

.tool-table tr:last-child td { border-bottom: none; }

.tool-table tr:hover td { background: var(--bg-surface); }

.tool-name { font-weight: 600; color: var(--text); }
.tool-rating { color: var(--accent); font-weight: 600; }
.tool-price { color: var(--green); }
.tool-check { color: var(--green); }
.tool-x { color: var(--text-dim); }

/* ─── Affiliate Disclosure Banner ─── */
.disclosure-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 2rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.disclosure-banner::before {
  content: 'ℹ';
  color: var(--accent);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── CTA Card ─── */
.cta-card {
  background: var(--bg-card);
  border: 1px solid rgba(232, 164, 48, 0.2);
  border-radius: 12px;
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(232, 164, 48, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.cta-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cta-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* ─── Resources Page ─── */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  transition: border-color 0.2s, transform 0.2s;
}

.resource-card:hover {
  border-color: rgba(232, 164, 48, 0.3);
  transform: translateY(-2px);
}

.resource-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-glow);
  border: 1px solid rgba(232, 164, 48, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.resource-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.resource-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  transition: gap 0.2s;
}

.resource-link:hover { gap: 0.5rem; }

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand { max-width: 280px; }

.footer-brand .nav-logo { margin-bottom: 0.75rem; }

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-link-group h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.footer-link-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-link-group a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-link-group a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ─── Tag/Badge ─── */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.tag-best { background: rgba(34, 197, 94, 0.1); color: var(--green); border: 1px solid rgba(34, 197, 94, 0.2); }
.tag-review { background: rgba(232, 164, 48, 0.1); color: var(--accent); border: 1px solid rgba(232, 164, 48, 0.2); }
.tag-comparison { background: rgba(100, 100, 255, 0.1); color: #8888ff; border: 1px solid rgba(100, 100, 255, 0.2); }

/* ─── Divider ─── */
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 3rem 0;
}

/* ─── Mobile ─── */
@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .section { padding: 2rem 1.25rem; }
  .article-page { padding: 2rem 1.25rem 4rem; }
  .site-nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}