/* Shared styles for the guide pages (fakespot-alternative, reviewmeta-alternative,
   how-to-spot-fake-amazon-reviews). Tokens, header, buttons and footer match index.html. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg-base: #090d16;
  --bg-surface: #0e1424;
  --bg-card: #131b2e;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 102, 241, 0.35);

  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --primary: #4f6ef7;
  --primary-hover: #3d5be8;
  --primary-glow: rgba(79, 110, 247, 0.35);
  --link: #93c5fd;
  --green: #10b981;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 760px; }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  padding: 4px 12px;
  background: rgba(79, 110, 247, 0.1);
  border: 1px solid rgba(79, 110, 247, 0.2);
  border-radius: 20px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 24px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79, 110, 247, 0.5);
}

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 10, 16, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.nav-brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4f6ef7, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 2px 10px rgba(79, 110, 247, 0.4);
}

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--text-main); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Page hero ── */
.page-hero {
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(79, 110, 247, 0.16), transparent 70%);
  padding: 72px 0 56px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(34px, 5.5vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.lede {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.cta-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}

.hero-link {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: -12px;
}

.hero-link a {
  color: var(--link);
  font-weight: 600;
}

.hero-link a:hover { color: var(--text-main); }

/* ── Article body ── */
.prose {
  padding-bottom: 80px;
}

.prose h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 48px 0 14px;
}

.prose h2:first-child { margin-top: 8px; }

.prose p,
.prose li {
  color: var(--text-body);
  font-size: 17px;
}

.prose p { margin-bottom: 14px; }

.prose ul,
.prose ol {
  margin: 0 0 16px 22px;
}

.prose li { margin-bottom: 8px; padding-left: 4px; }

.prose strong { color: var(--text-main); }

.prose a:not(.btn-primary) {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:not(.btn-primary):hover { color: var(--text-main); }

.source {
  font-size: 14px;
  color: var(--text-muted);
}

/* Numbered tips */
.tip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 16px;
}

.prose .tip h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 20px;
  margin: 0 0 8px;
}

.tip-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(79, 110, 247, 0.12);
  border: 1px solid rgba(79, 110, 247, 0.25);
  color: #93c5fd;
  font-size: 14px;
  font-weight: 800;
  transform: translateY(-2px);
}

.prose .tip p { margin-bottom: 0; font-size: 16px; }

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  margin-left: 0 !important;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px !important;
  margin-bottom: 14px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: rgba(79, 110, 247, 0.12);
  border: 1px solid rgba(79, 110, 247, 0.25);
  color: #93c5fd;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Call-to-action card */
.cta-card {
  margin-top: 56px;
  background: linear-gradient(180deg, #161c30 0%, #121727 100%);
  border: 1px solid var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 20px 48px -12px rgba(79, 110, 247, 0.25);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
}

.prose .cta-card h2 { margin: 0 0 10px; }

.prose .cta-card p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 24px;
}

.prose .cta-card .cta-note { margin: 14px 0 0; font-size: 13px; color: var(--text-muted); }

.related {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.prose .related p { font-size: 15px; color: var(--text-secondary); }

/* ── Footer ── */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
}

.footer-left .wordmark {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.footer-left .copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
}

.footer-right a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-right a:hover { color: var(--text-main); }

/* ── Responsive ── */
@media (max-width: 920px) {
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .page-hero { padding: 52px 0 40px; }
  .lede { font-size: 16px; }
  .prose p, .prose li { font-size: 16px; }
  .tip { padding: 20px; }
  .cta-card { padding: 28px 20px; }
  .btn-primary { width: 100%; padding: 14px 20px; }
  footer { padding: 40px 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-right { justify-content: center; }
}
