/* ═══════════════════════════════════════════════
   The Fun & Frugal Mom — Stylesheet
   Mobile-first · Thumb navigation
   ═══════════════════════════════════════════════ */

:root {
  --coral:    #E85D75;
  --coral-l:  #F7899A;
  --coral-d:  #C43D5A;
  --amber:    #FFB347;
  --amber-d:  #E89A2A;
  --teal:     #4BC8C8;
  --purple:   #9B5DE5;
  --green:    #7CB518;
  --cream:    #FFFBF7;
  --warm-white:#FFF6F0;
  --gray:     #F5F0EB;
  --border:   #EDE5DC;
  --text:     #2D2017;
  --text-mid: #6B5744;
  --text-dim: #A08070;
  --bot-h:    68px;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  padding-bottom: var(--bot-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── HEADER ───────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 2px solid var(--coral);
  height: var(--header-h);
  box-shadow: 0 2px 12px rgba(232,93,117,.1);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-logo {
  font-family: 'Pacifico', cursive;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: .15rem;
  flex-shrink: 0;
}
.logo-fun    { color: var(--coral); }
.logo-amp    { color: var(--amber-d); font-size: .9rem; margin: 0 .1rem; }
.logo-frugal { color: var(--teal); }
.logo-mom    { color: var(--purple); }

.desktop-nav { display: none; flex: 1; gap: .25rem; }
.desktop-nav a {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--text-mid);
  padding: .4rem .65rem;
  border-radius: 20px;
  transition: all .15s;
  white-space: nowrap;
}
.desktop-nav a:hover, .desktop-nav a.active {
  background: var(--warm-white);
  color: var(--coral);
}
.fb-follow-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: #1877F2;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  padding: .45rem .9rem;
  border-radius: 20px;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.fb-follow-btn:hover { background: #0d6efd; }

/* ── BOTTOM NAV ───────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bot-h);
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 200;
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.bot-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  color: var(--text-dim);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: .4rem .25rem;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
}
.bot-tab .bot-icon { font-size: 1.4rem; line-height: 1; }
.bot-tab.active { color: var(--coral); }
.bot-tab.active .bot-icon { filter: drop-shadow(0 2px 4px rgba(232,93,117,.4)); }

/* ── HERO ─────────────────────── */
.hero {
  background: linear-gradient(135deg, #fff0f3 0%, #fff9f0 50%, #f0fbfb 100%);
  padding: 2.5rem 1rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '🎉';
  position: absolute;
  font-size: 8rem;
  opacity: .06;
  top: -1rem;
  right: -1rem;
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: 'Pacifico', cursive;
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}
.hero h1 em { color: var(--coral); font-style: normal; }
.hero-sub {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 520px;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
}
.hero-btns {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-coral {
  background: var(--coral);
  color: #fff;
  font-weight: 800;
  font-size: .875rem;
  padding: .75rem 1.5rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-coral:hover { background: var(--coral-d); }
.btn-coral:active { transform: scale(.97); }
.btn-outline {
  background: #fff;
  color: var(--coral);
  font-weight: 800;
  font-size: .875rem;
  padding: .7rem 1.5rem;
  border-radius: 30px;
  border: 2px solid var(--coral);
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-outline:hover { background: var(--coral); color: #fff; }

/* ── CATEGORY PILLS ───────────── */
.cat-pills {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: 1rem 1rem .25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #fff;
  border: 2px solid var(--border);
  color: var(--text-mid);
  font-size: .8rem;
  font-weight: 800;
  padding: .45rem .9rem;
  border-radius: 25px;
  white-space: nowrap;
  cursor: pointer;
  transition: all .15s;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.cat-pill:hover, .cat-pill.active { color: #fff; border-color: transparent; }
.cat-pill[data-color="#E85D75"]:hover, .cat-pill[data-color="#E85D75"].active { background: #E85D75; }
.cat-pill[data-color="#FFB347"]:hover, .cat-pill[data-color="#FFB347"].active { background: #FFB347; }
.cat-pill[data-color="#4BC8C8"]:hover, .cat-pill[data-color="#4BC8C8"].active { background: #4BC8C8; }
.cat-pill[data-color="#7CB518"]:hover, .cat-pill[data-color="#7CB518"].active { background: #7CB518; }
.cat-pill[data-color="#9B5DE5"]:hover, .cat-pill[data-color="#9B5DE5"].active { background: #9B5DE5; }
.cat-pill[data-color="#F15BB5"]:hover, .cat-pill[data-color="#F15BB5"].active { background: #F15BB5; }
.cat-pill.all.active { background: var(--coral); }

/* ── SECTION ──────────────────── */
.section { padding: 1.5rem 1rem; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.section-title {
  font-family: 'Pacifico', cursive;
  font-size: 1.4rem;
  color: var(--text);
}
.see-all {
  font-size: .8rem;
  font-weight: 800;
  color: var(--coral);
  display: flex;
  align-items: center;
  gap: .25rem;
}

/* ── POST CARDS ───────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.post-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
  display: block;
  -webkit-tap-highlight-color: transparent;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.post-card:active { transform: scale(.98); }
.post-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--gray);
}
.post-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--warm-white), var(--gray));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.post-body { padding: 1rem; }
.post-cat-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 10px;
  color: #fff;
  margin-bottom: .5rem;
}
.post-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: .4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-excerpt {
  font-size: .83rem;
  color: var(--text-mid);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .75rem;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .75rem;
  color: var(--text-dim);
  font-weight: 700;
}

/* ── FEATURED CARD ────────────── */
.featured-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(232,93,117,.15);
  border: 2px solid var(--coral-l);
  margin-bottom: 1.5rem;
  display: block;
}
.featured-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--gray);
}
.featured-body { padding: 1.25rem; }
.featured-label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--coral);
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 12px;
  margin-bottom: .75rem;
}
.featured-title {
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: .6rem;
}
.featured-excerpt {
  font-size: .875rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: .9rem;
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--coral);
  font-weight: 800;
  font-size: .85rem;
}

/* ── ABOUT STRIP ──────────────── */
.about-strip {
  background: linear-gradient(135deg, #fff0f3, #fff9f0);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0 1rem 1.5rem;
}
.about-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--coral);
  flex-shrink: 0;
  background: var(--gray);
}
.about-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--coral);
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--coral-l), var(--amber));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.about-name {
  font-family: 'Pacifico', cursive;
  font-size: 1.1rem;
  color: var(--coral);
  margin-bottom: .25rem;
}
.about-bio { font-size: .83rem; color: var(--text-mid); line-height: 1.55; }

/* ── SINGLE POST ──────────────── */
.post-single { max-width: 760px; margin: 0 auto; padding: 1.5rem 1rem; }
.post-single-img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.post-single-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: .75rem;
}
.post-single-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .8rem;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.post-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
}
.post-content p { margin-bottom: 1.1rem; }
.post-content a { color: var(--coral); text-decoration: underline; }

/* ── FB SYNC BANNER ───────────── */
.fb-banner {
  background: linear-gradient(135deg, #1877F2, #0d6efd);
  color: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  margin: 0 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.fb-banner-icon { font-size: 2rem; flex-shrink: 0; }
.fb-banner-text .title { font-weight: 900; font-size: .95rem; margin-bottom: .2rem; }
.fb-banner-text .sub { font-size: .8rem; opacity: .85; }
.fb-btn {
  margin-left: auto;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  padding: .5rem .9rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.3);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s;
}
.fb-btn:hover { background: rgba(255,255,255,.3); }

/* ── ABOUT PAGE ───────────────── */
.about-hero {
  background: linear-gradient(135deg, #fff0f3 0%, #fff9f0 100%);
  padding: 2.5rem 1rem;
  text-align: center;
}
.about-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--coral);
  margin: 0 auto 1.25rem;
  background: var(--gray);
}
.about-photo-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid var(--coral);
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--coral-l), var(--amber));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.about-hero h1 {
  font-family: 'Pacifico', cursive;
  font-size: 1.8rem;
  color: var(--coral);
  margin-bottom: .5rem;
}
.about-hero p { color: var(--text-mid); max-width: 480px; margin: 0 auto; }
.family-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  padding: 1.5rem 1rem;
}
.family-card {
  background: #fff;
  border-radius: 14px;
  padding: .9rem .75rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.family-card .emoji { font-size: 2rem; margin-bottom: .35rem; }
.family-card .fam-name { font-weight: 900; font-size: .85rem; color: var(--text); }
.family-card .fam-desc { font-size: .72rem; color: var(--text-dim); margin-top: .15rem; }

/* ── FOOTER ───────────────────── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  padding: 2.5rem 1rem 1.25rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .footer-logo {
  font-family: 'Pacifico', cursive;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: .5rem;
}
.footer-brand p { font-size: .85rem; line-height: 1.6; margin-bottom: .9rem; }
.footer-fb {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #1877F2;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  padding: .5rem 1rem;
  border-radius: 20px;
}
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-heading { font-weight: 900; color: #fff; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .75rem; }
.footer-links a { display: block; font-size: .85rem; color: rgba(255,255,255,.55); margin-bottom: .4rem; transition: color .15s; }
.footer-links a:hover { color: var(--coral-l); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.25rem; font-size: .78rem; text-align: center; color: rgba(255,255,255,.35); }

/* ── EMPTY STATE ──────────────── */
.empty { text-align: center; padding: 3rem 1rem; color: var(--text-dim); }
.empty .icon { font-size: 3rem; margin-bottom: .75rem; }

/* ── PAGINATION ───────────────── */
.pagination { display: flex; justify-content: center; gap: .5rem; padding: 1.5rem 1rem; flex-wrap: wrap; }
.page-btn {
  background: #fff;
  border: 2px solid var(--border);
  color: var(--text-mid);
  font-weight: 800;
  font-size: .85rem;
  padding: .5rem .9rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
  min-width: 44px;
  text-align: center;
}
.page-btn:hover, .page-btn.active { background: var(--coral); border-color: var(--coral); color: #fff; }

/* ── RESPONSIVE ───────────────── */
@media (min-width: 600px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .family-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .desktop-nav { display: flex; }
  .posts-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 2rem 2rem; }
  .cat-pills { padding: 1.25rem 2rem .5rem; }
  .about-strip, .fb-banner { margin: 0 2rem 1.5rem; }
  .footer-inner { flex-direction: row; }
}
@media (min-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(4, 1fr); }
  .section { max-width: 1200px; margin: 0 auto; }
}
