/* ============================================================
   MeetSparkles — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800;900&family=Caveat:wght@600;700&display=swap');

:root {
  --pink:       #FF5BA3;
  --pink-dark:  #D93F87;
  --pink-pale:  #FFF0F8;
  --blue:       #3BB4F2;
  --teal-pale:  #EDF8FF;
  --purple:     #8B6FD4;
  --dark:       #1E1040;
  --text:       #3D2A6E;
  --muted:      #999;
  --white:      #FFFFFF;
  --bg:         #FFFFFF;
  --border:     #F0E8FF;
  --radius:     24px;
  --radius-sm:  14px;
  --shadow:     0 8px 32px rgba(139,111,212,.12);
  --shadow-lg:  0 24px 64px rgba(139,111,212,.15), 0 4px 16px rgba(255,91,163,.08);

  /* Ghost font vars (required) */
  --gh-font-heading: 'Fredoka One', cursive;
  --gh-font-body:    'Nunito', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── NAV ── */
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px; height: 68px;
  background: var(--white);
  border-bottom: 2px solid #FFD6EE;
  position: relative; z-index: 20;
}
.nav-brand {
  font-family: 'Fredoka One', cursive;
  font-size: 1.7rem; text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.nav-brand .nav-sparkles-img {
  width: 36px; height: 36px; object-fit: contain; border-radius: 50%;
}
.nav-brand .meet     { color: var(--blue); }
.nav-brand .sparkles { color: var(--pink); }

.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  font-weight: 700; font-size: .88rem;
  color: var(--text); text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--pink); }
.nav-cta {
  background: var(--pink) !important; color: white !important;
  padding: 9px 22px; border-radius: 50px;
  box-shadow: 0 3px 0 var(--pink-dark);
  transition: transform .15s !important;
  text-decoration: none !important;
}
.nav-cta:hover { transform: translateY(-2px); text-decoration: none !important; }

/* ── HERO ── */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 68px);
  position: relative; overflow: hidden;
}

.hero-left {
  background: white; position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 32px 40px 56px; overflow: hidden;
}
.hero-left::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,91,163,.12) 2px, transparent 2px);
  background-size: 36px 36px; pointer-events: none;
}
.left-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
}
.sparkles-logo {
  width: min(420px, 90%); height: auto;
  animation: bob 4s ease-in-out infinite;
}
@keyframes bob {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
.hope-blurb { margin-top: 20px; text-align: center; max-width: 380px; }
.hope-text {
  font-family: 'Caveat', cursive;
  font-size: 1.25rem; font-weight: 600;
  color: var(--text); line-height: 1.5;
  margin-bottom: 8px; opacity: .85;
}
.hope-link {
  font-size: .82rem; font-weight: 800; color: var(--pink);
  text-decoration: none; letter-spacing: .02em; transition: opacity .2s;
}
.hope-link:hover { opacity: .7; text-decoration: none; }
.site-desc {
  font-size: .85rem; font-weight: 700; color: var(--muted);
  margin-top: 14px; font-style: italic; line-height: 1.5;
}

.hero-right {
  background: linear-gradient(160deg, var(--pink-pale) 0%, var(--teal-pale) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 56px 40px 32px; position: relative;
}
.hero-right::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(139,111,212,.08) 2px, transparent 2px);
  background-size: 36px 36px; pointer-events: none;
}

/* ── NAME GENERATOR CARD ── */
.name-card {
  position: relative; z-index: 2;
  background: white; border-radius: 32px;
  padding: 36px 32px; width: 100%;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border); text-align: center;
}
.eyebrow-row { display: flex; justify-content: center; margin-bottom: 16px; }
.card-eyebrow {
  display: inline-block; background: var(--blue); color: white;
  font-size: .7rem; font-weight: 900; letter-spacing: .1em;
  text-transform: uppercase; padding: 6px 16px; border-radius: 50px;
  box-shadow: 0 3px 0 rgba(0,0,0,.1);
}
.card-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.7rem; color: var(--dark);
  margin-bottom: 8px; line-height: 1.2;
}
.card-title em { font-style: normal; color: var(--pink); }
.card-sub { font-size: .9rem; font-weight: 700; color: var(--muted); margin-bottom: 28px; }

.gen-btn {
  width: 100%; font-family: 'Fredoka One', cursive;
  font-size: 1.2rem; background: var(--pink); color: white;
  border: none; border-radius: 18px; padding: 18px; cursor: pointer;
  box-shadow: 0 5px 0 var(--pink-dark), 0 10px 30px rgba(255,91,163,.3);
  transition: transform .15s, box-shadow .15s;
  letter-spacing: .02em; margin-bottom: 20px;
}
.gen-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--pink-dark), 0 16px 40px rgba(255,91,163,.35); }
.gen-btn:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--pink-dark); }

.name-result {
  background: linear-gradient(135deg, var(--pink-pale), #F0E8FF);
  border-radius: 20px; padding: 24px 20px; margin-bottom: 24px;
  min-height: 110px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  border: 2px dashed #FFD6EE; transition: all .3s ease;
}
.name-result.has-name { border-style: solid; border-color: var(--pink); }
.result-label { font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); }
.result-name { font-family: 'Fredoka One', cursive; font-size: 2.4rem; color: var(--dark); line-height: 1; }
.result-emoji { font-size: 1.4rem; letter-spacing: 4px; }
.result-placeholder { font-size: .9rem; font-weight: 700; color: #ccc; }

.vac-picks { margin-bottom: 24px; text-align: left; display: none; }
.vac-picks.visible { display: block; }
.picks-label {
  font-size: .78rem; font-weight: 900; color: var(--text);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 12px; text-align: center;
}
.vac-pick {
  display: flex; align-items: center; gap: 12px;
  background: #FAFAFA; border: 1.5px solid var(--border);
  border-radius: 14px; padding: 10px 14px;
  margin-bottom: 8px; text-decoration: none;
  transition: border-color .2s, transform .15s;
}
.vac-pick:hover { border-color: var(--pink); transform: translateX(3px); text-decoration: none; }
.vac-pick-emoji { font-size: 1.6rem; flex-shrink: 0; }
.vac-pick-info { flex: 1; }
.vac-pick-name { font-weight: 800; font-size: .85rem; color: var(--dark); }
.vac-pick-desc { font-size: .75rem; color: var(--muted); font-weight: 600; }
.vac-pick-price { font-family: 'Fredoka One', cursive; font-size: 1rem; color: var(--pink); flex-shrink: 0; }
.card-footnote { font-size: .7rem; color: #ccc; font-weight: 700; margin-top: 12px; }

/* ── SECTION HEADERS ── */
.section-header { text-align: center; padding: 60px 24px 32px; }
.section-header h2 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--dark); margin-bottom: 8px;
}
.section-header p { font-size: 1rem; font-weight: 700; color: var(--muted); max-width: 500px; margin: 0 auto; }

/* ── POST GRID ── */
.post-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px; padding: 0 48px 60px;
}
.post-card {
  background: white; border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  border: 2px solid #F5EEF8;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column; gap: 12px;
  text-decoration: none; color: inherit;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #FFD6EE; text-decoration: none; }
.post-card .verdict { font-size: 1.4rem; line-height: 1; }
.post-card .post-title { font-family: 'Fredoka One', cursive; font-size: 1.25rem; color: var(--dark); line-height: 1.3; }
.post-card .post-excerpt { font-size: .9rem; font-weight: 600; color: var(--muted); line-height: 1.6; flex: 1; }
.post-card .post-meta { font-size: .75rem; font-weight: 800; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.post-card .post-tag { background: var(--pink-pale); color: var(--pink); border-radius: 50px; padding: 3px 12px; font-size: .72rem; font-weight: 800; }
.post-card.verdict-sparkly     { border-top: 5px solid var(--pink); }
.post-card.verdict-presentable { border-top: 5px solid #2DD4BF; }
.post-card.verdict-grubby      { border-top: 5px solid #9080B0; }

/* ── SINGLE POST ── */
.post-header { max-width: 780px; margin: 0 auto; padding: 60px 24px 32px; text-align: center; }
.post-header .verdict-banner {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--pink-pale); border: 2px solid #FFD6EE;
  border-radius: 50px; padding: 8px 20px;
  font-weight: 900; font-size: .85rem; color: var(--pink); margin-bottom: 20px;
}
.post-header h1 { font-family: 'Fredoka One', cursive; font-size: clamp(2rem, 4vw, 3.2rem); color: var(--dark); line-height: 1.2; margin-bottom: 16px; }
.post-header .post-byline { font-size: .85rem; font-weight: 700; color: var(--muted); }
.post-body { max-width: 780px; margin: 0 auto; padding: 0 24px 80px; }
.post-body .gh-content { font-size: 1.05rem; line-height: 1.8; color: var(--text); }
.post-sparkles-float { float: left; width: 180px; margin: 2px 14px 8px 0; }
.post-body .gh-content h2 { font-family: 'Fredoka One', cursive; font-size: 1.6rem; color: var(--dark); margin: 40px 0 12px; }
.post-body .gh-content h3 { font-family: 'Fredoka One', cursive; font-size: 1.25rem; color: var(--dark); margin: 28px 0 8px; }
.post-body .gh-content p { margin-bottom: 20px; }
.post-body .gh-content ul, .post-body .gh-content ol { padding-left: 24px; margin-bottom: 20px; }
.post-body .gh-content li { margin-bottom: 6px; }
.post-body .gh-content a { color: var(--pink); font-weight: 700; }
.post-body .gh-content blockquote { border-left: 4px solid var(--pink); padding: 12px 20px; background: var(--pink-pale); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0; font-style: italic; }

/* ── GHOST REQUIRED CLASSES ── */
.kg-width-wide { position: relative; width: 85vw; min-width: 100%; margin: auto calc(50% - 50vw * 0.85); }
.kg-width-full { position: relative; width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }

/* ── SUBSCRIBE STRIP ── */
.subscribe-strip { background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%); padding: 60px 48px; text-align: center; }
.subscribe-strip h2 { font-family: 'Fredoka One', cursive; font-size: clamp(1.6rem, 3vw, 2.4rem); color: white; margin-bottom: 8px; }
.subscribe-strip p { color: rgba(255,255,255,.85); font-weight: 700; font-size: 1rem; margin-bottom: 28px; }
.subscribe-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.subscribe-form input[type="email"] { padding: 14px 20px; border: none; border-radius: var(--radius-sm); font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 1rem; width: 300px; max-width: 100%; outline: none; }
.subscribe-form button { background: var(--dark); color: white; font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1rem; padding: 14px 28px; border: none; border-radius: var(--radius-sm); cursor: pointer; transition: background .2s, transform .15s; }
.subscribe-form button:hover { background: #0a0520; transform: translateY(-2px); }

/* ── FOOTER ── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 40px 48px; text-align: center; font-size: .85rem; font-weight: 700; }
.site-footer a { color: #FFD6EE; }
.footer-logo { font-family: 'Fredoka One', cursive; font-size: 1.3rem; margin-bottom: 12px; }
.footer-logo .meet { color: #DBEAFE; }
.footer-logo .sparkles { color: #FFD6EE; }
.footer-links { display: flex; gap: 20px; justify-content: center; list-style: none; margin: 12px 0; }
.footer-links a { color: rgba(255,255,255,.6); }
.footer-links a:hover { color: #FFD6EE; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .site-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 40px 24px 20px; }
  .sparkles-logo { width: min(300px, 80%); }
  .hero-right { padding: 20px 24px 56px; }
  .post-grid { padding: 0 20px 48px; }
  .subscribe-strip { padding: 48px 20px; }
  .site-footer { padding: 32px 20px; }
}
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
