/* BebeDuckie Best Blurb — Cindy Museum edition
   scrapbook + digital museum + sticker collection, on a pink/blue/teal base.
   Every selector from the original design system is preserved below. */

:root {
  --pink: #ff2e88;
  --pink-deep: #d61f6e;
  --pink-soft: #ff9ec7;
  --blue: #2f7bff;
  --blue-deep: #1f5fd6;
  --blue-soft: #8db9ff;
  --teal: #00cfb0;
  --teal-deep: #00a88e;
  --yellow: #ffd23f;
  --purple: #9b5cff;
  --orange: #ff8a3d;
  --ink: #2b2140;
  --paper: #fffdf7;
}

* { box-sizing: border-box; }

::selection { background: var(--pink); color: #fff; }

body {
  font-family: 'Nunito', 'Trebuchet MS', Arial, sans-serif;
  margin: 0;
  color: var(--ink);
  text-align: center;
  background:
    radial-gradient(circle, rgba(255,255,255,0.5) 1.6px, transparent 1.8px) 0 0 / 28px 28px,
    radial-gradient(circle at 12% 18%, rgba(255,46,136,0.22), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(47,123,255,0.2), transparent 42%),
    radial-gradient(circle at 82% 85%, rgba(0,207,176,0.22), transparent 44%),
    radial-gradient(circle at 8% 88%, rgba(255,210,63,0.18), transparent 40%),
    linear-gradient(135deg, #ffd3e8 0%, #ffc4ef 22%, #ccd9ff 58%, #bdf7ea 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

.layout { display: flex; position: relative; z-index: 1; }

/* ---------- floating decorations ---------- */
.floaties {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.floaties span {
  position: absolute; font-size: 1.7rem; opacity: 0.45;
  animation: floaty 9s ease-in-out infinite;
  filter: saturate(1.2);
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-20px) rotate(8deg); }
}

/* ---------- sidebar ---------- */
.sidebar {
  width: 220px;
  padding: 15px;
  background: rgba(255,253,247,0.92);
  border-right: 3px solid var(--ink);
  min-height: 100vh;
  text-align: left;
  position: sticky;
  top: 0;
  flex-shrink: 0;
  z-index: 1;
}
.sidebar h2 {
  font-family: 'Shrikhand', 'Nunito', cursive;
  font-size: 19px; margin-bottom: 10px; font-weight: 400;
  color: var(--pink-deep);
}
.sidebar a {
  display: block;
  margin: 9px 0;
  text-decoration: none;
  font-weight: 800;
  color: var(--ink);
  transition: 0.2s ease;
  border-radius: 10px;
  padding: 2px 6px;
}
.sidebar a:hover {
  color: #fff; background: var(--pink);
  transform: translateX(3px) rotate(-1deg);
}
.sidebar a.active { color: var(--pink-deep); background: rgba(255,46,136,0.12); }
.sidebar-duck { margin-top: 20px; text-align: center; }
.sidebar-duck-note {
  display: block; font-family: 'Caveat', cursive; font-size: 1.15rem;
  color: var(--blue-deep); transform: rotate(-3deg); margin-top: 4px;
}

.content { flex: 1; padding: 20px; min-width: 0; position: relative; z-index: 1; }

/* ---------- top nav (for full-width pages like moments) ---------- */
.topnav {
  background: rgba(255,253,247,0.92);
  border-bottom: 3px solid var(--ink);
  padding: 12px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topnav a {
  display: inline-block;
  margin: 4px 8px;
  text-decoration: none;
  font-weight: 800;
  color: var(--ink);
  font-size: 14px;
  border-radius: 10px;
  padding: 2px 6px;
  transition: 0.2s ease;
}
.topnav a:hover { color: #fff; background: var(--blue); transform: rotate(-1deg); }
.topnav a.active { color: var(--blue-deep); background: rgba(47,123,255,0.12); }

/* ---------- content blocks ---------- */
header {
  background: rgba(255,253,247,0.94);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 rgba(43,33,64,0.14);
  padding: 25px;
  position: relative;
  overflow: hidden;
}
header::after {
  content: '✨';
  position: absolute; top: 10px; right: 16px; font-size: 1.4rem;
  animation: twinkle 2.6s ease-in-out infinite;
}
header h1 {
  margin: 0 0 8px; font-size: 30px;
  font-family: 'Shrikhand', 'Nunito', cursive; font-weight: 400;
  color: var(--ink);
  text-shadow: 2px 2px 0 var(--pink-soft);
}
header p { margin: 8px auto; opacity: 0.9; max-width: 640px; }

.container { max-width: 900px; margin: auto; padding: 20px; }

.card {
  background: rgba(255,253,247,0.96);
  border: 2px solid rgba(43,33,64,0.85);
  padding: 20px;
  margin: 22px 0;
  border-radius: 6px 22px 6px 22px;
  box-shadow: 5px 5px 0 rgba(43,33,64,0.12);
  position: relative;
}
/* washi tape on every card */
.card::before {
  content: '';
  position: absolute; top: -13px; left: 50%;
  width: 110px; height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255,210,63,0.8);
  border-left: 2px dashed rgba(43,33,64,0.15);
  border-right: 2px dashed rgba(43,33,64,0.15);
  border-radius: 2px;
  z-index: 2;
}
.container > .card:nth-of-type(even)::before {
  background: rgba(0,207,176,0.55);
  transform: translateX(-50%) rotate(2.5deg);
}
/* collected, not symmetrical: the tiniest tilt */
.container > .card:nth-of-type(odd) { transform: rotate(-0.35deg); }
.container > .card:nth-of-type(even) { transform: rotate(0.3deg); }
.card h2 {
  margin-top: 0;
  font-family: 'Shrikhand', 'Nunito', cursive; font-weight: 400;
  font-size: 1.45rem; color: var(--ink);
}

.entry {
  text-align: left;
  padding: 15px;
  margin-top: 12px;
  border-left: 6px solid var(--pink);
  background: rgba(255,255,255,0.65);
  border-radius: 4px 14px 14px 4px;
  box-shadow: 2px 2px 0 rgba(43,33,64,0.07);
}
.entry.blue { border-color: var(--blue); }
.entry.teal { border-color: var(--teal); }
.entry p { margin: 8px 0; }

/* museum placard: the little label next to the exhibit */
.placard {
  display: inline-block;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(43,33,64,0.15);
  border-radius: 4px;
  padding: 8px 16px;
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  font-weight: 700;
  transform: rotate(-1.2deg);
  margin: 10px 4px;
  max-width: 100%;
}
.exhibit-tag {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--pink-deep);
}
/* handwritten sticky-note aside */
.doodle-note {
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  font-weight: 500;
  background: #fff6c9;
  display: inline-block;
  padding: 8px 18px;
  transform: rotate(-1.5deg);
  border-radius: 2px;
  box-shadow: 2px 3px 0 rgba(43,33,64,0.12);
  margin: 10px 4px;
  max-width: 100%;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.item {
  padding: 12px;
  border-radius: 14px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, #ff2e88, #ff8a3d);
  border: 2px solid rgba(43,33,64,0.85);
  box-shadow: 3px 3px 0 rgba(43,33,64,0.15);
  transition: transform 0.15s ease;
}
.grid .item:nth-child(4n+2) { background: linear-gradient(135deg, #2f7bff, #9b5cff); transform: rotate(0.6deg); }
.grid .item:nth-child(4n+3) { background: linear-gradient(135deg, #00a88e, #2f7bff); transform: rotate(-0.6deg); }
.grid .item:nth-child(4n+4) { background: linear-gradient(135deg, #9b5cff, #ff2e88); }
.grid .item:nth-child(4n+1) { transform: rotate(0.5deg); }
.item:hover { transform: rotate(0deg) scale(1.04); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.photo-grid figure {
  margin: 0;
  background: #fff;
  border: 2px solid rgba(43,33,64,0.85);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 3px 3px 0 rgba(43,33,64,0.15);
}
.photo-grid figure:nth-child(4n+2) { transform: rotate(0.6deg); }
.photo-grid figure:nth-child(4n+3) { transform: rotate(-0.6deg); }
.photo-grid figure:nth-child(4n+1) { transform: rotate(0.5deg); }
.photo-grid img { width: 100%; display: block; aspect-ratio: 3/4; object-fit: cover; }
.photo-grid figcaption { padding: 6px 8px; font-size: 0.75em; font-weight: 600; line-height: 1.3; }


.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, #ff2e88, #9b5cff);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s ease;
}
.button:hover { transform: scale(1.05) rotate(-1deg); }

.tag { font-size: 12px; opacity: 0.7; margin-bottom: 6px; font-weight: 700; }

/* stickers & badges */
.sticker {
  display: inline-block;
  font-size: 1.7rem;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 50%;
  padding: 0.1em 0.22em;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-8deg);
  transition: transform 0.2s ease;
  line-height: 1.2;
}
.sticker.sm { font-size: 1.25rem; border-width: 2px; }
.sticker:hover { transform: rotate(10deg) scale(1.18); }
.badge {
  display: inline-block;
  padding: 0.35em 0.9em;
  border: 3px dashed var(--pink);
  border-radius: 999px;
  background: #fff;
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pink-deep);
  transform: rotate(-4deg);
  margin: 6px;
}
.twinkle { display: inline-block; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.92) rotate(-4deg); }
  50% { opacity: 1; transform: scale(1.08) rotate(4deg); }
}

#duck-egg { cursor: pointer; display: inline-block; transition: transform 0.2s ease; }
#duck-egg:hover { transform: scale(1.3) rotate(-10deg); }

footer {
  font-size: 12px;
  color: var(--ink);
  margin: 25px;
  opacity: 0.8;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

/* ---------- doorway cards (home page) ---------- */
.door-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 10px;
}
a.door {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(43,33,64,0.14);
  transition: transform 0.15s ease;
  display: block;
  text-align: left;
}
a.door:nth-child(odd) { transform: rotate(-0.8deg); }
a.door:nth-child(even) { transform: rotate(0.7deg); }
a.door:hover { transform: rotate(0deg) scale(1.04); }
a.door h3 {
  margin: 0 0 6px; color: var(--pink-deep); font-size: 17px;
  font-family: 'Shrikhand', 'Nunito', cursive; font-weight: 400;
}
a.door p { margin: 0; font-size: 14px; opacity: 0.85; }

/* ---------- food page ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 10px;
}
.profile-card {
  background: rgba(255,253,247,0.96);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 15px;
  box-shadow: 4px 4px 0 rgba(43,33,64,0.12);
  text-align: center;
  transition: transform 0.15s ease;
}
.profile-card:hover { transform: scale(1.03) rotate(-0.5deg); }
.profile-card img { width: 100%; border-radius: 14px; margin-bottom: 10px; border: 2px solid rgba(43,33,64,0.2); }
.views-counter {
  margin: 14px auto 6px;
  padding: 14px 10px;
  background: rgba(255,255,255,0.88);
  border: 3px solid var(--ink);
  border-radius: 18px;
  transform: rotate(-1deg);
  box-shadow: 5px 5px 0 rgba(43,33,64,0.15);
}
.counter-headline { margin-bottom: 2px; }
.counter-big {
  display: block;
  font-family: 'Shrikhand', 'Nunito', cursive;
  font-weight: 400;
  font-size: 58px;
  line-height: 1.05;
  color: var(--pink-deep);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .counter-big {
    background: linear-gradient(120deg, #ff2e88 0%, #9b5cff 55%, #2f7bff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}
.counter-cap { font-size: 14px; font-weight: 800; }
.counter-cap em { font-style: normal; opacity: 0.6; font-size: 11px; font-weight: 400; }
.yelp-views .counter-big { font-size: 44px; }
.counter-detail { font-size: 12px; opacity: 0.75; margin-top: 4px; }
.counter-lifetime { font-size: 12px; font-weight: 700; margin-top: 6px; }
.counter-lifetime em { font-style: normal; font-weight: 400; opacity: 0.6; font-size: 11px; }
.plate-bar { display: flex; border-radius: 999px; overflow: hidden; margin: 14px 0; font-size: 12px; font-weight: 800; white-space: nowrap; }
.plate-food { background: linear-gradient(90deg, #ffb3c1, #ffd6e0); padding: 8px 14px; color: #6b2d3e; }
.plate-beyond { background: linear-gradient(90deg, #a8c8f0, #cde7f7); padding: 8px 14px; color: #1e3a5f; }
.plate-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.plate-chip { background: rgba(255,255,255,.65); border: 1px solid rgba(0,0,0,.08); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.plate-examples { font-size: 13px; opacity: .85; }
.plate-note { font-size: 12px; opacity: .65; }
.review {
  text-align: left;
  padding: 15px;
  margin-top: 12px;
  border-left: 6px solid var(--pink);
  background: rgba(255,255,255,0.6);
  border-radius: 4px 10px 10px 4px;
}
.score { font-size: 18px; font-weight: 800; margin-bottom: 5px; }

/* ---------- travel page ---------- */
.trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 10px;
}
.trip-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 15px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 3px 3px 0 rgba(43,33,64,0.12);
}
.trip-card h3 { margin-top: 0; color: var(--pink-deep); font-family: 'Shrikhand', 'Nunito', cursive; font-weight: 400; }
.trip-card .when { font-size: 12px; opacity: 0.65; margin-bottom: 6px; font-weight: 700; }
iframe.map {
  width: 100%;
  height: 550px;
  border: none;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  margin-top: 10px;
}

/* ---------- moments timeline ---------- */
.timeline { position: relative; max-width: 800px; margin: auto; padding: 20px; z-index: 1; }
.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(var(--pink), var(--blue), var(--teal));
  top: 0; bottom: 0; left: 50%;
  margin-left: -2px;
  border-radius: 4px;
}
.timeline .entry-card { padding: 20px; position: relative; width: 50%; }
.timeline .left { left: 0; }
.timeline .right { left: 50%; }
.timeline .card {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 15px;
  border-radius: 12px;
  box-shadow: 4px 4px 0 rgba(43,33,64,0.12);
  position: relative;
  text-align: left;
  margin: 0;
}
.timeline .card::before { display: none; }
.timeline .date { font-size: 12px; opacity: 0.6; font-weight: 700; }
.timeline .title { font-size: 18px; font-weight: 800; margin: 5px 0; }
.timeline .emoji { font-size: 20px; }

/* ---------- show log filter ---------- */
.showlog-controls { margin: 12px 0; text-align: left; }
#showlog-search {
  width: 100%;
  max-width: 320px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.95);
  box-shadow: 2px 2px 0 rgba(43,33,64,0.12);
}
#showlog-search:focus { outline: none; border-color: var(--pink); }
.showlog-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.showlog-filters button {
  padding: 8px 14px;
  border-radius: 20px;
  border: 2px solid var(--ink);
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease;
  box-shadow: 2px 2px 0 rgba(43,33,64,0.12);
}
.showlog-filters button:hover { transform: scale(1.05) rotate(-1deg); }
.showlog-filters button.active {
  background: linear-gradient(135deg, #ff2e88, #2f7bff, #00cfb0);
  color: white;
  border-color: var(--ink);
}
#show-log-list { list-style: none; padding: 0; margin: 12px 0; text-align: left; }
#show-log-list li {
  padding: 8px 12px;
  margin: 6px 0;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(43,33,64,0.2);
  border-radius: 10px;
  font-size: 14px;
}
#showlog-empty { font-style: italic; opacity: 0.7; }

/* ---------- mobile ---------- */
@media screen and (max-width: 700px) {
  .layout { flex-direction: column; }
  .sidebar { width: auto; min-height: 0; position: static; text-align: center; border-right: none; border-bottom: 3px solid var(--ink); }
  .sidebar a { display: inline-block; margin: 6px 10px 6px 0; }
  .timeline::after { left: 20px; }
  .timeline .entry-card { width: 100%; padding-left: 50px; padding-right: 20px; }
  .timeline .right, .timeline .left { left: 0; }
  .floaties span { font-size: 1.2rem; }
  header h1 { font-size: 24px; }
}

/* ---------- calm mode: no motion, no floaties ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .floaties { display: none; }
  .container > .card:nth-of-type(odd),
  .container > .card:nth-of-type(even),
  a.door:nth-child(odd),
  a.door:nth-child(even),
  .grid .item:nth-child(4n+2),
  .grid .item:nth-child(4n+3),
  .grid .item:nth-child(4n+1),
  .placard, .doodle-note { transform: none !important; }
}

/* ---------- totally necessary metrics ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.stat {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.12);
}
.stat:nth-child(odd) { transform: rotate(-1deg); }
.stat:nth-child(even) { transform: rotate(1deg); }
.stat-num {
  display: block;
  font-family: 'Shrikhand', cursive;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--pink);
}
.stat:nth-child(3n) .stat-num { color: var(--blue); }
.stat:nth-child(3n+1) .stat-num { color: var(--teal); }
.stat-emoji { display: block; font-size: 1.4rem; margin: 2px 0; }
.stat-label { display: block; font-weight: 800; font-size: 0.95rem; }
.stat-note { display: block; font-size: 0.75rem; opacity: 0.75; margin-top: 2px; }
.stats-foot { font-size: 0.85rem; opacity: 0.85; margin-top: 12px; }
