/* ─── Variables ─────────────────────────────── */
:root {
  --bg:        #0f1117;
  --bg2:       #181c25;
  --bg3:       #1f2433;
  --border:    #2a3044;
  --accent:    #e05c1a;
  --accent2:   #ff7a3d;
  --text:      #d8dce8;
  --text-dim:  #8892a4;
  --text-head: #ffffff;
  --radius:    6px;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-w:     1140px;
  --transition: 0.2s ease;
}

/* ─── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent2); }

/* ─── Layout ─────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; padding: 3rem 0; }

/* ─── Header ─────────────────────────────────── */
.site-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-head);
  letter-spacing: -0.5px;
}
.site-logo span { color: var(--accent); }
.site-nav { display: flex; gap: 0.25rem; align-items: center; }
.site-nav a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.site-nav a:hover { color: var(--text-head); background: var(--bg3); }
.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  font-weight: 600 !important;
  margin-left: 0.5rem;
}
.nav-cta:hover { background: var(--accent2) !important; }

/* hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 5px 0;
  transition: all var(--transition);
}

/* ─── Hero ───────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(224,92,26,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { max-width: 640px; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(224,92,26,0.15);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--text-head);
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  max-width: 520px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent2); color: white; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(224,92,26,0.35); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── Section headings ───────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.section-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-head);
}
.section-header a { font-size: 0.875rem; color: var(--accent); }

/* ─── Post Cards ─────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg3);
}
.card-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-head);
  line-height: 1.4;
  margin-bottom: 0.6rem;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--accent); }
.card-excerpt {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.card-read-time { color: var(--accent); font-weight: 600; }

/* Featured card (first post) */
.card-featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
.card-featured .card-img-placeholder,
.card-featured .card-img {
  width: 380px;
  height: auto;
  min-height: 220px;
  flex-shrink: 0;
}
.card-featured .card-title { font-size: 1.4rem; }
.card-featured .card-excerpt { font-size: 0.95rem; }

/* ─── Affiliate / CTA Box ────────────────────── */
.affiliate-box {
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.affiliate-box-icon { font-size: 2.5rem; flex-shrink: 0; }
.affiliate-box-content { flex: 1; min-width: 200px; }
.affiliate-box-content strong { display: block; color: var(--text-head); font-size: 1rem; margin-bottom: 0.25rem; }
.affiliate-box-content p { color: var(--text-dim); font-size: 0.875rem; margin: 0; }
.affiliate-box .btn { flex-shrink: 0; }

/* ─── Ad Slots ───────────────────────────────── */
.ad-slot {
  background: var(--bg2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.78rem;
  margin: 1.5rem 0;
}

/* ─── Article page ───────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.article-header { margin-bottom: 2.5rem; }
.article-category {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.article-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text-head);
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}
.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.article-body { font-size: 1.05rem; line-height: 1.85; }
.article-body h2 { font-size: 1.5rem; font-weight: 700; color: var(--text-head); margin: 2.5rem 0 1rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.article-body h3 { font-size: 1.2rem; font-weight: 600; color: var(--text-head); margin: 2rem 0 0.75rem; }
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin: 0 0 1.25rem 1.5rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body strong { color: var(--text-head); }
.article-body a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(224,92,26,0.4); }
.article-body a:hover { color: var(--accent2); }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  background: var(--bg2);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  color: var(--text-dim);
  font-style: italic;
}
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg3);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: var(--accent2);
}
.article-body pre {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.article-body pre code { background: none; padding: 0; color: var(--text); }

/* Rating stars */
.rating { display: flex; gap: 3px; margin: 0.5rem 0; }
.star { color: #f59e0b; font-size: 1.1rem; }
.star.empty { color: var(--border); }

/* Pros/cons */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.pros, .cons {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.pros { border-top: 2px solid #22c55e; }
.cons { border-top: 2px solid #ef4444; }
.pros h4 { color: #22c55e; margin-bottom: 0.75rem; font-size: 0.9rem; }
.cons h4 { color: #ef4444; margin-bottom: 0.75rem; font-size: 0.9rem; }
.pros li, .cons li { font-size: 0.875rem; margin-bottom: 0.4rem; list-style: none; padding-left: 1.25rem; position: relative; }
.pros li::before { content: '✓'; color: #22c55e; position: absolute; left: 0; }
.cons li::before { content: '✗'; color: #ef4444; position: absolute; left: 0; }

/* ─── Sidebar ─────────────────────────────────── */
.sidebar { position: sticky; top: 80px; }
.sidebar-widget {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-posts { list-style: none; }
.sidebar-posts li { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.sidebar-posts li:last-child { border-bottom: none; }
.sidebar-posts a { color: var(--text); font-size: 0.875rem; line-height: 1.4; }
.sidebar-posts a:hover { color: var(--accent); }

/* ─── Newsletter ─────────────────────────────── */
.newsletter-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  margin: 4rem 0;
}
.newsletter-section h2 { color: var(--text-head); font-size: 1.6rem; margin-bottom: 0.75rem; }
.newsletter-section p { color: var(--text-dim); margin-bottom: 1.5rem; }
.newsletter-form { display: flex; gap: 0.75rem; max-width: 420px; margin: 0 auto; }
.newsletter-form input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form input::placeholder { color: var(--text-dim); }

/* ─── Footer ─────────────────────────────────── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .site-logo { font-size: 1.2rem; margin-bottom: 0.75rem; display: block; }
.footer-brand p { color: var(--text-dim); font-size: 0.875rem; line-height: 1.6; }
.footer-col h4 {
  color: var(--text-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a { color: var(--text-dim); font-size: 0.875rem; }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-dim);
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  line-height: 1.6;
}

/* ─── Breadcrumb ─────────────────────────────── */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border); }

/* ─── List page ──────────────────────────────── */
.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 2rem; font-weight: 800; color: var(--text-head); margin-bottom: 0.5rem; }
.page-header p { color: var(--text-dim); }

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-featured { flex-direction: column; }
  .card-featured .card-img-placeholder,
  .card-featured .card-img { width: 100%; height: 200px; }
  .pros-cons { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border); flex-direction: column; padding: 1rem; gap: 0.25rem; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .hero { padding: 3rem 0 2.5rem; }
  .affiliate-box { flex-direction: column; }
}
