@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=DM+Serif+Display&display=swap');

:root {
  --bg: #0a0a0b;
  --bg-card: #141416;
  --bg-hover: #1c1c20;
  --text: #e4e4e7;
  --text-dim: #8b8b94;
  --accent: #c4f83a;
  --accent-dim: #a3d62f;
  --border: #27272a;
  --code-bg: #1e1e22;
  --max-width: 740px;
  --wide-width: 1100px;
}

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

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* === HEADER === */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  background: rgba(10,10,11,0.9);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.header-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: -0.5px;
}
.site-logo span { color: var(--accent); }
.site-nav { display: flex; gap: 2rem; }
.site-nav a { color: var(--text-dim); font-size: 0.9rem; font-weight: 500; }
.site-nav a:hover { color: var(--accent); }
.lang-switch { display: flex; gap: 0.5rem; }
.lang-switch a {
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.lang-switch a:hover, .lang-switch a.active {
  border-color: var(--accent);
  color: var(--accent);
}

/* === HERO === */
.hero {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
}
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 3.2rem;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
}
.hero h1 span { color: var(--accent); }
.hero p { color: var(--text-dim); font-size: 1.15rem; max-width: 600px; }

.article-archive { max-width: var(--wide-width); margin: 0 auto; padding: 0 2rem 2rem; }
.article-archive summary { cursor: pointer; color: var(--accent); padding: 1rem 0; font-size: 1.1rem; }
.article-archive .articles-grid { padding: 1rem 0; }
.article-archive summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
/* === ARTICLE GRID === */
.articles-grid {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196,248,58,0.06);
}
.card-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(196,248,58,0.1);
  color: var(--accent);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
  width: fit-content;
}
.card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.card-excerpt {
  color: var(--text-dim);
  font-size: 0.9rem;
  flex-grow: 1;
  margin-bottom: 1rem;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
}
.read-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}
.read-time {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* === HERO STATS STRIP === */
.hero-stats {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 2rem 3.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.hero-stat {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0) 100%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.85rem 1.25rem 1.5rem;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.hero-stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.hero-stat:hover {
  border-color: rgba(196,248,58,0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.hero-stat:hover::before { opacity: 1; }
.top-picks { margin: 2.5rem 0 1rem; }
.picks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.pick { border: 1px solid var(--border, #2a2a2a); border-radius: 12px; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; }
.pick h3 { margin: .35rem 0 .5rem; font-size: 1.15rem; }
.pick p { font-size: .9rem; line-height: 1.55; color: var(--text-dim, #9a9a9a); flex: 1; }
.pick-tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent, #c4f83a); font-weight: 600; }
.pick-cta { margin-top: .9rem; display: inline-block; text-align: center; padding: .55rem .9rem; border-radius: 8px;
            background: var(--accent, #c4f83a); color: #111; font-weight: 600; font-size: .85rem; text-decoration: none; }
.pick-cta:hover { filter: brightness(1.08); }
.picks-note { margin-top: .9rem; font-size: .8rem; color: var(--text-dim, #9a9a9a); }
.hero-stat strong {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 2.85rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.65rem;
  letter-spacing: -1.5px;
}
.hero-stat span {
  display: block;
  color: var(--text-dim);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-weight: 600;
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; padding-bottom: 2rem; }
  .hero-stat { padding: 1.4rem 0.75rem 1.15rem; border-radius: 12px; }
  .hero-stat strong { font-size: 2.25rem; margin-bottom: 0.5rem; }
  .hero-stat span { font-size: 0.7rem; letter-spacing: 1.2px; }
}

/* === CATEGORY FILTER === */
.category-filter {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 2rem 1.5rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.category-filter button {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}
.category-filter button:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(196,248,58,0.06);
}
.category-filter button.active {
  background: var(--accent);
  color: #0a0a0b;
  border-color: var(--accent);
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(196,248,58,0.3), 0 4px 18px rgba(196,248,58,0.18);
}

/* === HOMEPAGE NEWSLETTER BANNER === */
.newsletter-banner {
  max-width: var(--wide-width);
  margin: 3rem auto;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, rgba(196,248,58,0.08) 0%, rgba(196,248,58,0.02) 100%);
  border: 1px solid rgba(196,248,58,0.25);
  border-radius: 16px;
  text-align: center;
}
.newsletter-banner h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}
.newsletter-banner p {
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.newsletter-banner form {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.newsletter-banner input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 0.8rem 1.2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.newsletter-banner input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}
.newsletter-banner button {
  padding: 0.8rem 1.6rem;
  background: var(--accent);
  color: #0a0a0b;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}
.newsletter-banner button:hover { opacity: 0.9; }
.newsletter-banner .tiny {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* === SECTION HEADING === */
.section-heading {
  max-width: var(--wide-width);
  margin: 4rem auto 1.5rem;
  padding: 0 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-heading h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  letter-spacing: -1px;
  line-height: 1;
  position: relative;
  padding-bottom: 0.6rem;
}
.section-heading h2::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 2.5rem;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-heading .subtitle {
  color: var(--text-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-weight: 600;
  padding-bottom: 0.65rem;
}
@media (max-width: 720px) {
  .section-heading { margin: 2.5rem auto 1rem; }
  .section-heading h2 { font-size: 1.9rem; }
}

/* === IMPROVED CARD HOVER === */
.article-card { position: relative; overflow: hidden; }
.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.article-card:hover::before { transform: translateX(0); }

/* === PRODUCT CROSS-SELL BLOCK (end of articles) === */
.product-crosssell {
  margin: 3.5rem 0 2rem;
  padding: 2rem 2rem 2.2rem;
  border: 1px solid var(--accent);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(196,248,58,0.08), rgba(196,248,58,0.02));
}
.product-crosssell .product-label {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--accent);
  color: #0a0a0b;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.product-crosssell h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.product-crosssell p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}
.product-crosssell .product-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #0a0a0b;
  font-weight: 700;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: opacity 0.2s, transform 0.2s;
}
.product-crosssell .product-cta:hover { opacity: 0.95; transform: translateY(-1px); }
.product-crosssell .product-price {
  display: inline-block;
  margin-left: 0.8rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.product-crosssell .product-price del { opacity: 0.6; margin-right: 0.3rem; }
.product-crosssell .product-alt {
  display: block;
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(196,248,58,0.15);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* === ARTICLE PAGE === */
.article-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.article-page h1, .article-content h2, .article-content h3 { overflow-wrap: anywhere; }
.article-page h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2.6rem;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}
.article-meta {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.article-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.7rem;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.5px;
}
.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.8rem;
}
.article-content p { margin-bottom: 1.2rem; }
.article-content ul, .article-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}
.article-content li { margin-bottom: 0.5rem; }
.article-content strong { color: var(--accent); font-weight: 600; }
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.article-content th, .article-content td {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
  overflow-wrap: anywhere;
}
.article-content th {
  background: var(--bg-card);
  font-weight: 600;
  color: var(--accent);
}
.article-content tr:hover { background: var(--bg-hover); }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
}
.article-content code {
  background: var(--code-bg);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
}
.article-content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 1rem;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  direction: ltr;
  text-align: left;
  white-space: pre;
  tab-size: 4;
}
.article-content :not(pre) > code { overflow-wrap: anywhere; }
.article-content p bdi[dir="ltr"] { display: inline-block; max-width: 100%; direction: ltr; text-align: left; overflow-wrap: anywhere; vertical-align: baseline; }
.article-content pre:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.article-content pre code { background: transparent; padding: 0; border-radius: 0; }
.article-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* CTA Button */
.cta-btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: var(--accent);
  color: #0a0a0b;
  font-weight: 700;
  border-radius: 8px;
  font-size: 0.95rem;
  margin: 0.5rem 0;
  transition: all 0.2s;
}
.cta-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* Affiliate link styling */
.article-content a[href*="affiliate"],
.article-content a[href*="AFFILIATE"],
.article-content a[target="_blank"] {
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px dashed var(--accent-dim);
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-legal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.3rem;
}
.footer-legal a {
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-legal a:hover {
  color: var(--accent);
  opacity: 1;
}
.footer-sep {
  color: var(--border);
  font-size: 0.8rem;
  user-select: none;
}

/* === EMAIL CAPTURE BOX (inline) === */
.email-capture-box {
  background: linear-gradient(135deg, #1a1a2e 0%, #141416 100%);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 2rem 2rem 1.8rem;
  margin: 2.5rem 0;
  text-align: center;
}
.email-capture-box h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.email-capture-box p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}
.email-capture-box form {
  display: flex;
  gap: 0.5rem;
  max-width: 460px;
  margin: 0 auto;
}
.email-capture-box input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.email-capture-box input[type="email"]:focus {
  border-color: var(--accent);
}
.email-capture-box button {
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #0a0a0b;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.email-capture-box button:hover { opacity: 0.85; }
.email-capture-box .privacy-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.8rem;
  margin-bottom: 0;
}

/* === STICKY BOTTOM BAR (mobile email capture) === */
.sticky-email-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20,20,22,0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--accent);
  padding: 0.8rem 1rem;
  z-index: 200;
  align-items: center;
  gap: 0.5rem;
}
.sticky-email-bar .sticky-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.sticky-email-bar form {
  min-width: 0;
  display: flex;
  gap: 0.4rem;
  flex: 1;
}
.sticky-email-bar input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.8rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
}
.sticky-email-bar button {
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #0a0a0b;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.sticky-email-bar .sticky-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 0.3rem;
  line-height: 1;
}

/* === COOKIE CONSENT BANNER === */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #141416;
  border-top: 1px solid var(--border);
  padding: 1.2rem 2rem;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.cookie-consent.show { display: flex; }
.cookie-settings { display:block; margin:1rem auto; padding:.5rem .75rem; background:transparent; color:var(--text-secondary); border:1px solid var(--border); border-radius:4px; cursor:pointer; }
.cookie-consent p { margin: 0; max-width: 600px; }
.cookie-consent .cookie-btns { display: flex; gap: 0.5rem; }
.cookie-consent button {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
}
.cookie-consent .cookie-accept {
  background: var(--accent);
  color: #0a0a0b;
}
.cookie-consent .cookie-reject {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

/* === FTC DISCLOSURE (top of article) === */
.ftc-disclosure-top {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

/* === 404 PAGE === */
.error-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8rem 2rem;
  text-align: center;
}
.error-page h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 6rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.error-page p {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .article-page h1 { font-size: 2rem; }
  .article-page { padding-bottom: 6rem; }
  .article-content th, .article-content td { padding: 0.5rem 0.4rem; }
  .sticky-email-bar { display: flex; flex-wrap: wrap; }
  .sticky-email-bar .sticky-text { flex-basis: 100%; }
  .sticky-email-bar input[type="email"] { width: 0; }
  .email-capture-box form { flex-direction: column; }
  .cookie-consent { flex-direction: column; text-align: center; }
}
