/* ============================================================
   BabiesVilla.com — Main Stylesheet
   Aesthetic: Soft Futurism — pastel glassmorphism + editorial
   Fonts: Playfair Display (headings) + DM Sans (body)
   ============================================================ */

/* ── RESET & VARIABLES ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink:     #f9a8d4;
  --lavender: #c4b5fd;
  --mint:     #6ee7b7;
  --sky:      #7dd3fc;
  --gold:     #fcd34d;
  --peach:    #fdba74;
  --cream:    #fef9f0;
  --white:    #ffffff;
  --ink:      #1a1028;
  --ink-soft: #3d2f55;
  --muted:    #7c6f8e;
  --glass-bg: rgba(255,255,255,0.62);
  --glass-border: rgba(255,255,255,0.85);
  --shadow:   0 8px 32px rgba(90,50,120,0.10);
  --shadow-lg:0 20px 60px rgba(90,50,120,0.16);
  --radius:   18px;
  --radius-sm:10px;
  --font-head:'Playfair Display', Georgia, serif;
  --font-body:'DM Sans', system-ui, sans-serif;
  --transition: 0.28s cubic-bezier(0.34,1.56,0.64,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── BACKGROUND BLOBS ─────────────────────────────────────── */
.bg-blobs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.35;
  animation: float 14s ease-in-out infinite;
}
.blob-1 { width: 600px; height: 600px; background: var(--pink);    top: -150px; left: -100px; animation-delay: 0s; }
.blob-2 { width: 500px; height: 500px; background: var(--lavender);bottom: -100px; right: -80px; animation-delay: -5s; }
.blob-3 { width: 400px; height: 400px; background: var(--mint);    top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: -9s; }
@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-30px) scale(1.05); }
}
.blob-3 { animation: float2 18s ease-in-out infinite -9s; }
@keyframes float2 {
  0%,100% { transform: translate(-50%,-50%) scale(1); }
  50%      { transform: translate(-50%,-52%) scale(1.06); }
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.site-main  { min-height: 70vh; }

/* ── GLASS CARD ──────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── HEADER ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(254,249,240,0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1.5px solid rgba(255,255,255,0.7);
  box-shadow: 0 2px 24px rgba(90,50,120,0.07);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 4px 32px rgba(90,50,120,0.13); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-icon { font-size: 1.6rem; }
.logo-text  { font-family: var(--font-head); font-size: 1.5rem; font-weight: 900; color: var(--ink); }
.logo-text em { font-style: normal; color: #b06ee0; }

.main-nav   { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link   { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; padding: 6px 14px; border-radius: 100px; transition: all 0.2s; }
.nav-link:hover, .nav-link.active { background: var(--pink); color: var(--ink); }

.nav-search { display: flex; align-items: center; margin-left: 12px; }
.search-input {
  border: 1.5px solid rgba(180,140,220,0.35);
  border-radius: 100px; padding: 6px 16px;
  font-family: var(--font-body); font-size: 0.88rem;
  background: rgba(255,255,255,0.7);
  color: var(--ink); width: 180px; outline: none;
  transition: border-color 0.2s, width 0.3s;
}
.search-input:focus { border-color: var(--lavender); width: 220px; }
.search-btn { background: none; border: none; cursor: pointer; font-size: 1rem; margin-left: 4px; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.3s; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero-badge {
  display: inline-block; background: var(--lavender);
  color: var(--ink); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 18px; border-radius: 100px; margin-bottom: 24px;
  animation: fadeUp 0.5s ease both;
}
.hero h1 {
  font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900; line-height: 1.15; color: var(--ink);
  margin-bottom: 20px;
  animation: fadeUp 0.6s ease 0.1s both;
}
.hero h1 span { color: #b06ee0; }
.hero p {
  font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 auto 36px;
  animation: fadeUp 0.6s ease 0.2s both;
}
.hero-ctas {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.6s ease 0.3s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.92rem;
  padding: 12px 28px; border-radius: 100px;
  text-decoration: none; border: none; cursor: pointer;
  transition: var(--transition);
}
.btn-primary { background: linear-gradient(135deg, #b06ee0, #7c3aed); color: #fff; box-shadow: 0 6px 20px rgba(124,58,237,0.3); }
.btn-primary:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 28px rgba(124,58,237,0.4); }
.btn-soft { background: var(--glass-bg); border: 1.5px solid var(--glass-border); color: var(--ink); backdrop-filter: blur(10px); }
.btn-soft:hover { background: #fff; transform: translateY(-2px); }

/* ── CATEGORY PILLS ──────────────────────────────────────── */
.category-pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 36px 0; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: 100px;
  font-size: 0.86rem; font-weight: 600; text-decoration: none;
  color: var(--ink); transition: var(--transition);
  border: 1.5px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
}
.cat-pill:hover { transform: translateY(-3px) scale(1.04); box-shadow: var(--shadow); }

/* ── SECTION HEADER ──────────────────────────────────────── */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.section-title { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.section-link  { font-size: 0.88rem; font-weight: 600; color: #8b5cf6; text-decoration: none; }
.section-link:hover { text-decoration: underline; }

/* ── ARTICLE CARD ────────────────────────────────────────── */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

.article-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card-color-strip { height: 5px; }
.card-body { padding: 22px 24px 20px; flex: 1; display: flex; flex-direction: column; }
.card-cat  { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #7c3aed; margin-bottom: 10px; }
.card-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; line-height: 1.4; margin-bottom: 10px; color: var(--ink); }
.card-excerpt { font-size: 0.88rem; color: var(--muted); line-height: 1.6; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: 0.78rem; color: var(--muted); }
.card-meta span { display: flex; align-items: center; gap: 4px; }

/* ── FEATURED CARD (large) ───────────────────────────────── */
.featured-card {
  background: linear-gradient(135deg, rgba(249,168,212,0.5), rgba(196,181,253,0.5));
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  align-items: center; margin-bottom: 40px;
  backdrop-filter: blur(16px);
}
.featured-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #7c3aed; margin-bottom: 12px; }
.featured-title { font-family: var(--font-head); font-size: 2rem; font-weight: 900; line-height: 1.25; margin-bottom: 16px; }
.featured-excerpt { color: var(--muted); margin-bottom: 24px; }
.featured-img { border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--pink), var(--lavender)); height: 240px; display: flex; align-items: center; justify-content: center; font-size: 6rem; }

/* ── BABY NAMES GRID ─────────────────────────────────────── */
.names-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.name-card {
  background: var(--glass-bg); border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm); padding: 18px 20px;
  transition: var(--transition); text-decoration: none; color: inherit;
}
.name-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.name-title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.name-origin { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.name-meaning { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; }
.name-gender { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; margin-top: 10px; }
.name-gender.boy  { background: #dbeafe; color: #1d4ed8; }
.name-gender.girl { background: #fce7f3; color: #be185d; }
.name-gender.unisex { background: #ede9fe; color: #6d28d9; }

/* ── NAME SEARCH ─────────────────────────────────────────── */
.names-filter {
  background: var(--glass-bg); backdrop-filter: blur(16px);
  border: 1.5px solid var(--glass-border); border-radius: var(--radius);
  padding: 28px 32px; margin-bottom: 36px;
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
}
.filter-group { display: flex; gap: 8px; align-items: center; }
.filter-label { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.filter-btn {
  padding: 7px 18px; border-radius: 100px; border: 1.5px solid rgba(180,140,220,0.35);
  background: #fff; font-family: var(--font-body); font-size: 0.84rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active { background: var(--lavender); border-color: var(--lavender); color: var(--ink); }
.names-search-input {
  padding: 9px 20px; border-radius: 100px; border: 1.5px solid rgba(180,140,220,0.35);
  font-family: var(--font-body); font-size: 0.9rem; outline: none;
  background: rgba(255,255,255,0.8); color: var(--ink); flex: 1; min-width: 200px;
}
.names-search-input:focus { border-color: var(--lavender); }

/* ── PREGNANCY TRACKER ───────────────────────────────────── */
.week-tracker {
  background: linear-gradient(135deg, rgba(249,168,212,0.3), rgba(196,181,253,0.3));
  border: 1.5px solid var(--glass-border); border-radius: var(--radius);
  padding: 40px; text-align: center; margin-bottom: 48px;
}
.week-selector {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 28px 0;
}
.week-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(180,140,220,0.35);
  background: rgba(255,255,255,0.7); font-family: var(--font-body); font-size: 0.84rem;
  font-weight: 600; cursor: pointer; transition: var(--transition); color: var(--ink);
}
.week-btn:hover { background: var(--pink); border-color: var(--pink); transform: scale(1.1); }
.week-btn.active { background: #7c3aed; border-color: #7c3aed; color: #fff; transform: scale(1.1); }

.week-info { max-width: 600px; margin: 0 auto; }
.week-info h3 { font-family: var(--font-head); font-size: 1.6rem; margin-bottom: 12px; }
.week-stats { display: flex; gap: 24px; justify-content: center; margin: 20px 0; flex-wrap: wrap; }
.week-stat { text-align: center; }
.week-stat-val { font-family: var(--font-head); font-size: 2rem; font-weight: 900; color: #7c3aed; }
.week-stat-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.week-trimester { display: inline-block; padding: 4px 14px; border-radius: 100px; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 16px; }
.t1 { background: #fce7f3; color: #be185d; }
.t2 { background: #dbeafe; color: #1d4ed8; }
.t3 { background: #d1fae5; color: #065f46; }

/* ── ARTICLE PAGE ────────────────────────────────────────── */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 48px 0; }
.article-content h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900; line-height: 1.2; margin-bottom: 20px; }
.article-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.84rem; color: var(--muted); margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1.5px solid rgba(180,140,220,0.2); }
.article-body { font-size: 1.05rem; line-height: 1.8; color: var(--ink-soft); }
.article-body h2 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--ink); margin: 36px 0 14px; }
.article-body h3 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: 24px 0 10px; }
.article-body p  { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 14px 0 18px 28px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--ink); }
.article-body blockquote.expert-tip {
  background: linear-gradient(135deg, rgba(196,181,253,0.2), rgba(249,168,212,0.2));
  border-left: 4px solid #7c3aed; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px; margin: 28px 0; font-style: italic;
  font-size: 0.96rem; color: var(--ink-soft);
}
.article-body blockquote.expert-tip::before { content: "👩‍⚕️ Expert Tip: "; font-style: normal; font-weight: 700; color: #7c3aed; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar-widget { margin-bottom: 28px; }
.widget-title { font-family: var(--font-head); font-size: 1rem; font-weight: 800; margin-bottom: 16px; color: var(--ink); padding-bottom: 10px; border-bottom: 2px solid var(--pink); }
.sidebar-recent a { display: flex; gap: 12px; text-decoration: none; color: inherit; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(180,140,220,0.15); }
.sidebar-recent a:last-child { border-bottom: none; margin-bottom: 0; }
.sidebar-recent .sr-thumb { width: 56px; height: 56px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.sidebar-recent .sr-title { font-size: 0.85rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
.sidebar-recent .sr-date  { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }

/* AdSense in sidebar */
.ads-sidebar ins { display: block; min-height: 250px; }
.ads-in-content { margin: 32px 0; text-align: center; }
.ads-footer { padding: 24px 0; }

/* ── ALPHABET NAV ────────────────────────────────────────── */
.alphabet-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.alpha-btn {
  width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid rgba(180,140,220,0.3);
  background: rgba(255,255,255,0.7); font-family: var(--font-body); font-size: 0.86rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.alpha-btn:hover, .alpha-btn.active { background: #7c3aed; border-color: #7c3aed; color: #fff; }

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.page-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid rgba(180,140,220,0.3);
  background: rgba(255,255,255,0.7); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; text-decoration: none; display: flex; align-items: center; justify-content: center;
  color: var(--ink); transition: all 0.2s;
}
.page-btn:hover, .page-btn.active { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ── HERO STATS BAR ──────────────────────────────────────── */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(180,140,220,0.2);
  border: 1.5px solid rgba(255,255,255,0.7); border-radius: var(--radius);
  overflow: hidden; margin: 48px 0;
}
.stat-item { background: var(--glass-bg); backdrop-filter: blur(16px); padding: 24px; text-align: center; }
.stat-val  { font-family: var(--font-head); font-size: 2rem; font-weight: 900; color: #7c3aed; }
.stat-lbl  { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header { padding: 56px 0 40px; text-align: center; }
.page-header h1 { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 14px; }
.page-header p  { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.8); padding: 64px 0 0; margin-top: 80px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 2fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .logo-text { color: #fff; }
.footer-tagline { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-top: 8px; }
.footer-disclaimer { font-size: 0.78rem; color: rgba(255,255,255,0.4); line-height: 1.6; margin-top: 16px; max-width: 320px; }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.footer-col h4 { font-family: var(--font-head); font-size: 0.95rem; color: #fff; margin-bottom: 14px; }
.footer-col a  { display: block; font-size: 0.84rem; color: rgba(255,255,255,0.55); text-decoration: none; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--pink); }
.footer-bottom { padding: 20px 0; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); text-align: center; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .featured-card  { grid-template-columns: 1fr; }
  .featured-img   { display: none; }
  .stats-bar      { grid-template-columns: repeat(2,1fr); }
  .footer-inner   { grid-template-columns: 1fr; gap: 32px; }
  .footer-links   { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: rgba(254,249,240,0.96); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(180,140,220,0.2); flex-direction: column; padding: 20px 24px; gap: 8px; }
  .main-nav.open { display: flex; }
  .hamburger { display: flex; }
  .articles-grid { grid-template-columns: 1fr; }
  .names-grid    { grid-template-columns: repeat(2,1fr); }
  .stats-bar     { grid-template-columns: repeat(2,1fr); }
  .footer-links  { grid-template-columns: 1fr; }
}

/* ── UTILITIES ───────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-8  { margin-bottom: 32px; }
.emoji-large { font-size: 4rem; line-height: 1; }

.loading { text-align: center; padding: 60px; color: var(--muted); }
.loading::after { content: ''; display: inline-block; width: 24px; height: 24px; border: 2px solid rgba(180,140,220,0.3); border-top-color: #7c3aed; border-radius: 50%; animation: spin 0.8s linear infinite; margin-left: 10px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 100px; font-size: 0.72rem; font-weight: 700; }
.badge-new { background: #d1fae5; color: #065f46; }
.badge-hot { background: #fee2e2; color: #991b1b; }
