/*
Theme Name:  Astra Child NL
Template:    astra
Description: NewsletterPick child theme — editorial purple, creator-first.
Version:     1.0.0
*/

/* ─── Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ─── Root vars ─── */
:root {
  --np-navy:   #1a1a2e;
  --np-purple: #7c3aed;
  --np-amber:  #f59e0b;
  --np-light:  #faf5ff;
  --np-border: #e5e7eb;
  --np-gray:   #6b7280;
  --np-white:  #ffffff;
}

/* ─── Base typography ─── */
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: #374151; }
h1, h2, h3, h4 { font-family: 'Lora', Georgia, serif; color: var(--np-navy); }
.site-title { font-family: 'Lora', Georgia, serif; }

/* ─── Sticky nav ─── */
#masthead, .site-header, .ast-site-header-wrap {
  position: sticky !important;
  top: 0;
  z-index: 9999;
  background: #fff !important;
  border-bottom: 1px solid var(--np-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.ast-masthead-custom-menu-items { display: none !important; }

/* ─── Logo ─── */
.site-title a { color: var(--np-navy) !important; text-decoration: none !important; font-weight: 700; font-size: 22px; }
.np-logo-pick { color: var(--np-purple); }

/* ─── Primary nav links ─── */
.main-navigation .menu > li > a,
.ast-nav-menu > li > a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #374151 !important;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.main-navigation .menu > li > a:hover,
.ast-nav-menu > li > a:hover {
  color: var(--np-purple) !important;
  background: var(--np-light);
}

/* ─── Table styles (for comparison posts) ─── */
.entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.entry-content table th,
.entry-content table td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--np-border);
  font-size: 14px;
}
.entry-content table thead th {
  background: var(--np-navy);
  color: #fff;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}
.entry-content table tbody tr:nth-child(even) { background: var(--np-light); }
.entry-content table tbody tr:hover { background: #f0ebff; }
div[style*="overflow-x"] { overflow-x: auto !important; }

/* ─── Category archive cards ─── */
.ast-article-post .cat-links a,
.entry-meta .cat-links a {
  background: #f5f3ff;
  color: var(--np-purple);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 8px;
}
.ast-article-post .entry-title a { color: var(--np-navy) !important; font-size: 18px; font-weight: 700; text-decoration: none; }
.ast-article-post .entry-title a:hover { color: var(--np-purple) !important; }
.ast-article-post .entry-summary p { color: var(--np-gray); font-size: 14px; line-height: 1.6; }
.ast-article-post {
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid var(--np-border);
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}
.ast-article-post:hover { box-shadow: 0 4px 16px rgba(124,58,237,0.10); transform: translateY(-2px); }
.ast-article-post .post-thumb img { border-radius: 8px; height: 200px; object-fit: cover; width: 100%; }
.ast-article-post .entry-meta .posted-on,
.ast-article-post .entry-meta .byline { display: none; }

/* ─── Single post: featured image above title ─── */
.ast-single-post-order .post-thumb { margin-bottom: 24px; }
.ast-single-post-order .post-thumb img { border-radius: 12px; width: 100%; max-height: 480px; object-fit: cover; }

/* ─── Global purple pill helper ─── */
.np-pill {
  display: inline-block;
  background: #f5f3ff;
  color: var(--np-purple);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Buttons ─── */
.np-btn {
  display: inline-block;
  background: var(--np-purple);
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}
.np-btn:hover { background: #6d28d9; transform: translateY(-1px); color: #fff !important; }
.np-btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--np-purple) !important;
  border: 2px solid var(--np-purple);
  padding: 10px 22px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
}
.np-btn-outline:hover { background: var(--np-purple); color: #fff !important; }

/* ─── HOMEPAGE SECTIONS ─── */

/* Wrapper */
.np-homepage { font-family: 'Inter', sans-serif; }
.np-homepage * { box-sizing: border-box; }

/* Nav brand */
.np-nav-brand { font-family: 'Lora', Georgia, serif; font-size: 22px; font-weight: 700; color: var(--np-navy); text-decoration: none; }
.np-nav-brand span { color: var(--np-purple); }

/* Hero */
.np-hero {
  padding: 80px 0 60px;
  background: #fff;
}
.np-hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.np-hero-eyebrow {
  display: inline-block;
  color: var(--np-purple);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}
.np-hero h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.15;
  color: var(--np-navy);
  margin: 0 0 20px;
  font-weight: 700;
}
.np-hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 32px;
}
.np-hero-trust {
  margin-top: 16px;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}
.np-hero-trust span {
  display: inline-block;
  margin: 0 6px;
}
.np-hero-trust span::before {
  content: "·";
  margin-right: 6px;
}
.np-hero-trust span:first-child::before { content: ""; margin: 0; }

/* Quick Match card */
.np-match-card {
  background: var(--np-light);
  border: 2px solid #d8b4fe;
  border-radius: 16px;
  padding: 28px;
  font-family: 'Inter', sans-serif;
}
.np-match-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--np-navy);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.np-match-divider {
  border: none;
  border-top: 1px solid #c4b5fd;
  margin: 12px 0;
}
.np-match-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed #e9d5ff;
}
.np-match-row:last-of-type { border-bottom: none; }
.np-match-label { color: #6b7280; }
.np-match-tool {
  color: var(--np-amber);
  font-weight: 700;
  font-size: 14px;
}
.np-match-arrow { color: #c4b5fd; margin: 0 8px; }
.np-match-cta {
  display: block;
  text-align: center;
  margin-top: 20px;
  padding: 10px;
  background: var(--np-purple);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  transition: background 0.2s;
}
.np-match-cta:hover { background: #6d28d9; }
.np-hero-photo {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  max-height: 220px;
}
.np-hero-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* Stats bar */
.np-stats {
  background: var(--np-navy);
  padding: 32px 0;
}
.np-stats-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.np-stat-item {}
.np-stat-number {
  font-family: 'Lora', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}
.np-stat-label {
  font-size: 13px;
  color: #a78bfa;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Category cards */
.np-categories {
  padding: 72px 0;
  background: #fff;
}
.np-section-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.np-section-header {
  text-align: center;
  margin-bottom: 48px;
}
.np-section-header h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--np-navy);
  margin: 0 0 12px;
}
.np-section-header p {
  font-size: 16px;
  color: var(--np-gray);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}
.np-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.np-cat-card {
  background: #fff;
  border: 1px solid var(--np-border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  text-decoration: none !important;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  display: block;
}
.np-cat-card:hover {
  box-shadow: 0 8px 24px rgba(124,58,237,0.12);
  transform: translateY(-4px);
  border-color: #c4b5fd;
  text-decoration: none !important;
}
.np-cat-icon {
  width: 56px;
  height: 56px;
  background: var(--np-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
}
.np-cat-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--np-navy);
  margin: 0 0 8px;
}
.np-cat-card p {
  font-size: 13px;
  color: var(--np-gray);
  line-height: 1.5;
  margin: 0;
}

/* Latest articles */
.np-articles {
  padding: 72px 0;
  background: var(--np-light);
}
.np-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.np-article-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--np-border);
  overflow: hidden;
  text-decoration: none !important;
  display: block;
  transition: box-shadow 0.2s, transform 0.2s;
}
.np-article-card:hover {
  box-shadow: 0 8px 24px rgba(124,58,237,0.10);
  transform: translateY(-3px);
  text-decoration: none !important;
}
.np-article-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.np-article-thumb-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #ede9fe, #faf5ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.np-article-body { padding: 20px; }
.np-article-pill {
  display: inline-block;
  background: #f5f3ff;
  color: var(--np-purple);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.np-article-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--np-navy);
  margin: 0 0 8px;
  line-height: 1.4;
}
.np-article-excerpt {
  font-size: 13px;
  color: var(--np-gray);
  line-height: 1.6;
  margin: 0 0 14px;
}
.np-article-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--np-purple);
  text-decoration: none !important;
}
.np-article-more:hover { color: #6d28d9; }

/* Bottom CTA */
.np-bottom-cta {
  background: var(--np-navy);
  padding: 80px 24px;
  text-align: center;
}
.np-bottom-cta h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
}
.np-bottom-cta p {
  font-size: 17px;
  color: #a78bfa;
  margin: 0 0 32px;
  line-height: 1.6;
}
.np-btn-white {
  display: inline-block;
  background: #fff;
  color: var(--np-navy) !important;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
}
.np-btn-white:hover { background: #ede9fe; transform: translateY(-1px); color: var(--np-navy) !important; }

/* Footer */
.np-footer { background: #0f0f1a; padding: 40px 24px 24px; text-align: center; }
.np-footer p { color: #6b7280; font-size: 13px; margin: 0; }
.np-footer a { color: #a78bfa; text-decoration: none; }
.np-footer a:hover { color: #c4b5fd; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .np-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .np-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .np-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .np-articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .np-hero { padding: 48px 0 40px; }
  .np-hero h1 { font-size: 30px; }
  .np-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .np-cards-grid { grid-template-columns: 1fr; }
  .np-articles-grid { grid-template-columns: 1fr; }
  .np-bottom-cta h2 { font-size: 26px; }
}
