:root{
  --cream:#FFF8F0;
  --pink:#FF8FAB;
  --pink-deep:#E85D75;
  --blue:#8ECAE6;
  --blue-deep:#5FA8CC;
  --gold:#F5B942;
  --gold-deep:#B5790E;
  --plum:#3A2E39;
  --muted:#8B7E89;
  --white:#FFFFFF;
  --line:#F0E3E7;
  --good:#4FA37B;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{ scroll-behavior:smooth; }
body{ font-family:'Quicksand', sans-serif; color:var(--plum); background:var(--cream); }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font-family:inherit; }
img, svg{ display:block; }

/* ================= HEADER ================= */
header{ background:var(--white); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:80; }
.header-top{
  max-width:1280px; margin:0 auto; padding:16px 24px;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.brand{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.cube-logo{ width:38px; height:38px; flex-shrink:0; }
.brand-name{ font-family:'Fredoka', sans-serif; font-weight:700; font-size:20px; color:var(--plum); }
.brand-name span{ color:var(--pink-deep); }

.header-search{ flex:1; max-width:380px; position:relative; display:none; }
.header-search input{
  width:100%; padding:10px 16px 10px 40px;
  border-radius:999px; border:2px solid var(--line); background:var(--cream);
  font-family:'Quicksand', sans-serif; font-size:14px; font-weight:500; color:var(--plum); outline:none;
}
.header-search input:focus{ border-color:var(--pink); background:var(--white); }
.header-search svg{ position:absolute; left:14px; top:50%; transform:translateY(-50%); width:16px; height:16px; color:var(--muted); }

.header-actions{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.btn-ghost{
  padding:10px 18px; border-radius:999px; border:1.5px solid var(--line);
  background:var(--white); font-weight:700; font-size:13.5px; color:var(--plum); cursor:pointer;
}
.btn-ghost:hover{ border-color:var(--pink); color:var(--pink-deep); }
.btn-solid{
  padding:10px 20px; border-radius:999px; border:none;
  background:linear-gradient(120deg, var(--pink-deep), var(--pink)); color:var(--white);
  font-family:'Fredoka', sans-serif; font-weight:600; font-size:13.5px; cursor:pointer;
  box-shadow:0 8px 16px rgba(232,93,117,0.26);
}
.btn-solid:hover{ transform:translateY(-1px); }

.menu-toggle{
  display:flex; align-items:center; gap:8px;
  padding:10px 16px; border-radius:999px; border:1.5px solid var(--line);
  background:var(--white); cursor:pointer; font-weight:700; font-size:13.5px; color:var(--plum);
}
.menu-toggle:hover{ border-color:var(--pink); }
.menu-toggle svg{ width:16px; height:16px; }

@media (min-width:760px){ .header-search{ display:block; } }

/* ================= MEGA NAV ================= */
nav.mainnav{ border-top:1px solid var(--line); position:relative; }
.nav-inner{
  max-width:1280px; margin:0 auto; padding:0 24px;
  display:flex; align-items:center; gap:2px; flex-wrap:wrap;
}
.nav-item{ position:relative; }
.nav-link{
  display:flex; align-items:center; gap:6px;
  padding:14px 15px; font-size:14px; font-weight:600; color:var(--plum);
  white-space:nowrap; border-bottom:2.5px solid transparent;
}
.nav-link .chev{ width:10px; height:10px; transition:transform .18s ease; }
.nav-item.open .nav-link .chev{ transform:rotate(180deg); }
.nav-item:hover .nav-link, .nav-item.open .nav-link{ color:var(--pink-deep); border-bottom-color:var(--pink-deep); }

/* Mega panel */
.mega{
  position:absolute; top:100%; left:50%; transform:translateX(-50%);
  width:min(880px, 92vw);
  background:var(--white);
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:0 24px 48px rgba(58,46,57,0.16);
  padding:28px;
  display:none;
  grid-template-columns:1.3fr 1fr 1fr 1fr;
  gap:28px;
  z-index:90;
}
.nav-item:hover .mega, .nav-item.open .mega{ display:grid; }
.nav-item:first-child .mega{ left:0; transform:none; }

.mega-col h4{
  font-family:'Fredoka', sans-serif; font-weight:600; font-size:12px;
  text-transform:uppercase; letter-spacing:0.5px; color:var(--muted);
  margin-bottom:12px;
}
.mega-col ul{ display:flex; flex-direction:column; gap:3px; }
.mega-col a{
  display:flex; align-items:center; gap:9px;
  padding:8px 9px; border-radius:9px;
  font-size:13.5px; font-weight:600; color:var(--plum);
}
.mega-col a:hover{ background:var(--cream); color:var(--pink-deep); }
.mega-col a .dot{ width:6px; height:6px; border-radius:50%; background:var(--line); flex-shrink:0; }
.mega-col a:hover .dot{ background:var(--pink); }

.mega-feature{
  background:linear-gradient(155deg, var(--pink) 0%, #FFB3C6 45%, var(--blue) 100%);
  border-radius:16px;
  padding:22px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  color:var(--white);
}
.mega-feature h4{
  font-family:'Fredoka', sans-serif; font-weight:600; font-size:16px; margin-bottom:8px;
}
.mega-feature p{ font-size:12.5px; line-height:1.5; color:rgba(255,255,255,0.92); margin-bottom:16px; }
.mega-feature a.cta{
  display:inline-flex; align-items:center; gap:6px;
  background:var(--white); color:var(--pink-deep);
  font-family:'Fredoka', sans-serif; font-weight:600; font-size:12.5px;
  padding:9px 14px; border-radius:999px; width:fit-content;
}
.mega-feature a.cta:hover{ transform:translateY(-1px); }
.mega-feature a.cta svg{ width:13px; height:13px; }

.mega-icon{
  width:38px; height:38px; border-radius:11px;
  background:rgba(255,255,255,0.22);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:14px;
}
.mega-icon svg{ width:19px; height:19px; color:var(--white); }

/* Icon-grid dropdown for "Inspired by" — a second, distinct menu flavor */
.dropdown-icons{
  position:absolute; top:100%; left:50%; transform:translateX(-50%);
  width:460px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 22px 44px rgba(58,46,57,0.16);
  padding:16px;
  display:none;
  grid-template-columns:1fr 1fr;
  gap:4px;
  z-index:90;
}
.nav-item:hover .dropdown-icons, .nav-item.open .dropdown-icons{ display:grid; }
.dropdown-icons a{
  display:flex; align-items:center; gap:11px;
  padding:10px 11px; border-radius:11px;
  font-size:13.5px; font-weight:600; color:var(--plum);
}
.dropdown-icons a:hover{ background:var(--cream); color:var(--pink-deep); }
.dropdown-icons .ic{
  width:32px; height:32px; border-radius:9px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:var(--cream); color:var(--pink-deep);
}
.dropdown-icons .ic svg{ width:15px; height:15px; }

/* Mobile drawer */
.mobile-overlay{ display:none; position:fixed; inset:0; background:rgba(58,46,57,0.4); z-index:95; }
.mobile-overlay.show{ display:block; }
.mobile-drawer{
  position:fixed; top:0; right:-320px; width:300px; height:100%;
  background:var(--white); z-index:96; padding:22px;
  transition:right .25s ease; overflow-y:auto;
}
.mobile-drawer.show{ right:0; }
.mobile-drawer .drawer-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.mobile-drawer .close-btn{ width:32px; height:32px; border-radius:50%; border:none; background:var(--cream); display:flex; align-items:center; justify-content:center; cursor:pointer; }
.mobile-drawer .close-btn svg{ width:15px; height:15px; }
.mobile-drawer details{ border-bottom:1px solid var(--line); padding:6px 0; }
.mobile-drawer summary{ list-style:none; display:flex; align-items:center; justify-content:space-between; padding:10px 4px; font-weight:700; font-size:14.5px; cursor:pointer; }
.mobile-drawer summary::-webkit-details-marker{ display:none; }
.mobile-drawer summary svg{ width:12px; height:12px; transition:transform .15s ease; }
.mobile-drawer details[open] summary svg{ transform:rotate(180deg); }
.mobile-drawer .sub-links{ display:flex; flex-direction:column; gap:2px; padding:4px 4px 12px; }
.mobile-drawer .sub-links a{ padding:8px; border-radius:8px; font-size:13.5px; font-weight:600; color:var(--muted); }
.mobile-drawer .sub-links a:hover{ background:var(--cream); color:var(--pink-deep); }
.mobile-drawer > a{ display:block; padding:12px 4px; border-bottom:1px solid var(--line); font-weight:700; font-size:14.5px; }
.mobile-drawer .drawer-actions{ display:flex; gap:10px; margin-top:20px; }
.mobile-drawer .drawer-actions a{ flex:1; text-align:center; }

@media (min-width:1080px){ .menu-toggle{ display:none; } }
@media (max-width:1079px){ .mainnav{ display:none; } }

/* ================= HERO ================= */
.hero{ position:relative; overflow:hidden; padding:30px 24px 30px; background:linear-gradient(180deg, #FFF1E9 0%, var(--cream) 100%); }
.hero-blob{ position:absolute; border-radius:50%; filter:blur(70px); opacity:0.4; z-index:0; }
.hero-blob.a{ width:360px; height:360px; background:var(--pink); top:-120px; left:-100px; }
.hero-blob.b{ width:400px; height:400px; background:var(--blue); top:-60px; right:-140px; }

.hero-inner{ position:relative; z-index:1; max-width:820px; margin:0 auto; text-align:center; }
.hero-tiles{ display:flex; justify-content:center; gap:10px; margin-bottom:22px; }
.hero-tiles .tile{
  width:44px; height:44px; border-radius:12px; background:var(--white);
  display:flex; align-items:center; justify-content:center;
  font-family:'Fredoka', sans-serif; font-weight:700; font-size:19px;
  box-shadow:0 12px 22px rgba(58,46,57,0.12);
  animation:bob 4.2s ease-in-out infinite;
}
.hero-tiles .tile:nth-child(1){ color:var(--pink-deep); animation-delay:0s; }
.hero-tiles .tile:nth-child(2){ color:var(--blue-deep); animation-delay:.3s; }
.hero-tiles .tile:nth-child(3){ color:var(--gold-deep); animation-delay:.6s; }
.hero-tiles .tile:nth-child(4){ color:var(--pink-deep); animation-delay:.9s; }
.hero-tiles .tile:nth-child(5){ color:var(--blue-deep); animation-delay:1.2s; }
@keyframes bob{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-8px); } }
@media (prefers-reduced-motion: reduce){ .hero-tiles .tile{ animation:none; } }

.hero h1{ font-family:'Fredoka', sans-serif; font-weight:600; font-size:clamp(32px, 5vw, 48px); line-height:1.15; margin-bottom:16px; }
.hero h1 span{ color:var(--pink-deep); }
.hero > p{ color:var(--muted); font-size:15.5px; line-height:1.65; max-width:620px; margin:0 auto 34px; }

/* Search card */
.search-card{ background:var(--white); border:1px solid var(--line); border-radius:22px; padding:10px; box-shadow:0 20px 40px rgba(58,46,57,0.1); max-width:640px; margin:0 auto; text-align:left; }
.search-tabs{ display:flex; gap:4px; padding:6px; }
.search-tabs button{ flex:1; padding:9px 6px; border:none; border-radius:14px; background:none; font-size:12.5px; font-weight:700; color:var(--muted); cursor:pointer; }
.search-tabs button.active{ background:var(--cream); color:var(--pink-deep); }
.search-row{ display:flex; gap:8px; padding:4px 6px 6px; }
.search-row input{ flex:1; padding:13px 16px; border-radius:14px; border:2px solid var(--line); background:var(--cream); font-family:'Quicksand', sans-serif; font-size:14.5px; font-weight:500; color:var(--plum); outline:none; }
.search-row input:focus{ border-color:var(--pink); background:var(--white); }
.search-row button.go{ padding:0 24px; border:none; border-radius:14px; background:linear-gradient(120deg, var(--pink-deep), var(--pink)); color:var(--white); font-family:'Fredoka', sans-serif; font-weight:600; font-size:14px; cursor:pointer; box-shadow:0 10px 20px rgba(232,93,117,0.26); }
.search-row button.go:hover{ transform:translateY(-1px); }

.hero-stats{ display:flex; justify-content:center; gap:36px; margin-top:34px; flex-wrap:wrap; }
.hero-stats .stat{ text-align:center; }
.hero-stats .stat h3{ font-family:'Fredoka', sans-serif; font-weight:600; font-size:24px; color:var(--plum); }
.hero-stats .stat p{ font-size:12px; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:0.3px; margin-top:2px; }

@media (max-width:560px){ .search-tabs{ overflow-x:auto; } .search-row{ flex-direction:column; } }

/* ================= SECTIONS ================= */
main{ max-width:1200px; margin:0 auto; padding:0 24px; }
section{ padding:35px 0; border-bottom:1px solid var(--line); }
section:last-of-type{ border-bottom:none; }

.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:26px; flex-wrap:wrap; }
.section-head .eyebrow{ font-size:12px; font-weight:700; letter-spacing:0.6px; text-transform:uppercase; color:var(--pink-deep); margin-bottom:6px; }
.section-head h2{ font-family:'Fredoka', sans-serif; font-weight:600; font-size:26px; }
.section-head .view-all{ font-size:13.5px; font-weight:700; color:var(--blue-deep); white-space:nowrap; }
.section-head .view-all:hover{ text-decoration:underline; }

/* A-Z browse blocks */
.az-block{ margin-bottom:34px; }
.az-block:last-child{ margin-bottom:0; }
.az-block-head{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.az-block-head .badge{ width:34px; height:34px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-family:'Fredoka', sans-serif; font-weight:700; font-size:14px; color:var(--white); flex-shrink:0; }
.az-block-head h3{ font-family:'Fredoka', sans-serif; font-weight:600; font-size:18px; }
.az-block-head h3 a:hover{ color:var(--pink-deep); }
.az-grid{ display:flex; flex-wrap:wrap; gap:7px; }
.az-grid a{ width:37px; height:37px; border-radius:7px; display:flex; align-items:center; justify-content:center; background:var(--white); border:1px solid var(--line); font-family:'Fredoka', sans-serif; font-weight:600; font-size:13.5px; color:var(--plum); }
.az-grid a:hover{ border-color:var(--pink); color:var(--pink-deep); background:#FFF3F5; }

.ssn-link{ display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:14.5px; color:var(--blue-deep); margin-top:8px; }
.ssn-link:hover{ text-decoration:underline; }

/* Trending */
.trending-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.trending-card{ background:var(--white); border:1px solid var(--line); border-radius:18px; padding:22px; }
.trending-card h4{ display:flex; align-items:center; gap:8px; font-family:'Fredoka', sans-serif; font-weight:600; font-size:15px; margin-bottom:14px; }
.trending-card h4 .dot{ width:8px; height:8px; border-radius:50%; }
.trending-card.boy h4 .dot{ background:var(--blue-deep); }
.trending-card.girl h4 .dot{ background:var(--pink-deep); }
.trending-list{ display:flex; flex-direction:column; gap:2px; }
.trending-list a{ display:flex; align-items:center; justify-content:space-between; padding:10px 8px; border-radius:10px; font-size:14px; font-weight:600; }
.trending-list a:hover{ background:var(--cream); color:var(--pink-deep); }
.trending-list a .rank{ font-size:11px; color:var(--muted); font-weight:700; }
.trending-source{ font-size:12px; color:var(--muted); margin-top:14px; text-align:center; }

@media (max-width:640px){ .trending-grid{ grid-template-columns:1fr; } }

/* Quick link panels */
.panel-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.link-panel{ background:var(--white); border:1px solid var(--line); border-radius:18px; padding:24px; }
.link-panel-head{ display:flex; align-items:center; gap:11px; margin-bottom:16px; }
.link-panel-head .ic{ width:38px; height:38px; border-radius:11px; display:flex; align-items:center; justify-content:center; }
.link-panel-head .ic svg{ width:18px; height:18px; color:var(--white); }
.link-panel-head h3{ font-family:'Fredoka', sans-serif; font-weight:600; font-size:16px; }
.tag-cloud{ display:flex; flex-wrap:wrap; gap:8px; }
.tag-cloud a{ padding:8px 14px; border-radius:999px; background:var(--cream); font-size:13px; font-weight:600; color:var(--plum); }
.tag-cloud a:hover{ background:#FFEFF2; color:var(--pink-deep); }

@media (max-width:760px){ .panel-grid{ grid-template-columns:1fr; } }

/* Birthdays */
.birthday-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:16px; }
.birthday-card{ background:var(--white); border:1px solid var(--line); border-radius:16px; padding:18px; }
.birthday-top{ display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.birthday-avatar{ width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:'Fredoka', sans-serif; font-weight:600; font-size:14px; color:var(--white); flex-shrink:0; }
.birthday-card h4{ font-family:'Fredoka', sans-serif; font-weight:600; font-size:14.5px; }
.birthday-card .nat{ font-size:12px; color:var(--muted); font-weight:600; }
.birthday-card p.role{ font-size:12.5px; color:var(--muted); line-height:1.5; margin-top:2px; }

/* Blog */
.blog-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(240px,1fr)); gap:20px; }
.blog-card{ background:var(--white); border:1px solid var(--line); border-radius:18px; overflow:hidden; transition:box-shadow .15s ease, transform .15s ease; }
.blog-card:hover{ box-shadow:0 16px 30px rgba(58,46,57,0.1); transform:translateY(-2px); }
.blog-thumb{ /*height:130px;*/ }
.blog-body{ padding:18px 18px 20px; }
.blog-cat{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.4px; color:var(--pink-deep); margin-bottom:8px; display:block; }
.blog-card h4{ font-family:'Fredoka', sans-serif; font-weight:600; font-size:14.5px; line-height:1.4; }
.blog-card h4:hover{ color:var(--pink-deep); }

/* ================= FOOTER ================= */
footer{ background:var(--plum); color:rgba(255,255,255,0.86); padding:52px 24px 26px; }
.footer-inner{ max-width:1200px; margin:0 auto; }
.footer-top{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr 1fr; gap:28px; margin-bottom:40px; }
.footer-brand .brand-name{ color:var(--white); }
.footer-brand .brand-name span{ color:var(--gold); }
.footer-brand p{ font-size:13px; line-height:1.6; color:rgba(255,255,255,0.6); margin:14px 0 18px; max-width:240px; }
.footer-social{ display:flex; gap:10px; }
.footer-social a{ width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,0.1); display:flex; align-items:center; justify-content:center; }
.footer-social a:hover{ background:var(--pink-deep); }
.footer-social svg{ width:15px; height:15px; }
.footer-col h5{ font-family:'Fredoka', sans-serif; font-weight:600; font-size:13.5px; color:var(--white); margin-bottom:14px; }
.footer-col ul{ display:flex; flex-direction:column; gap:9px; }
.footer-col a{ font-size:13px; color:rgba(255,255,255,0.65); }
.footer-col a:hover{ color:var(--gold); }
.footer-bottom{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; padding-top:22px; border-top:1px solid rgba(255,255,255,0.12); font-size:12.5px; color:rgba(255,255,255,0.5); }
.footer-bottom a{ color:rgba(255,255,255,0.7); }
.footer-bottom a:hover{ color:var(--gold); }
.footer-bottom .legal{ display:flex; gap:18px; }

@media (max-width:900px){ .footer-top{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .footer-top{ grid-template-columns:1fr; } .footer-bottom{ flex-direction:column; align-items:flex-start; } }
