/* ============================================================
   YUMYUMPO — Account / Social UI styles
   Loaded on every public page after styles.css
   ============================================================ */


/* ── Avatar + dropdown in nav ─────────────────────────────── */
.yyp-avatar-wrap { position: relative; display: inline-block; }

.yyp-avatar-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  border-radius: 50%; transition: transform .2s;
}
.yyp-avatar-btn:hover { transform: scale(1.05); }

.yyp-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #FFF9D6;
  color: #111;
  overflow: hidden;
  box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0,0,0,.12);
  position: relative;
}
.yyp-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.yyp-avatar-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid #E8E8E8;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.16);
  padding: 6px;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px) scale(.96);
  transform-origin: top right;
  transition: all .2s cubic-bezier(.34,1.4,.64,1);
  z-index: 100;
}
.yyp-avatar-wrap.is-open .yyp-avatar-menu {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
}

.yyp-avatar-menu-head {
  padding: 12px 14px 10px;
  border-bottom: 1px solid #F3F3F3;
  margin-bottom: 6px;
}
.yyp-avatar-menu-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: .9375rem; color: #111;
  letter-spacing: -.01em;
}
.yyp-avatar-menu-handle {
  font-size: .75rem; color: #6B6B6B; margin-top: 2px;
}

.yyp-avatar-menu-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .875rem; font-weight: 600;
  color: #111;
  background: none; border: none;
  cursor: pointer; transition: background .12s;
  text-decoration: none;
}
.yyp-avatar-menu-item:hover { background: #FFFDF0; }
.yyp-avatar-menu-signout { color: #DC2626; margin-top: 4px; border-top: 1px solid #F3F3F3; padding-top: 12px; }
.yyp-avatar-menu-signout:hover { background: #FEF2F2; }


/* ── Sign-in button (replaces avatar when signed out) ─────── */
.yyp-signin-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #111; color: #FFD000;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: .8125rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: none; cursor: pointer;
  transition: all .18s;
}
.yyp-signin-btn:hover { background: #FFD000; color: #111; transform: translateY(-1px); }


/* ── Save heart on cards ───────────────────────────────────
   This works alongside the existing .card-save-btn classes.
   The "is-saved" state fills the heart and gives it a pulse. */
.card-save-btn.is-saved {
  background: #FFD000 !important;
  color: #111 !important;
}
.card-save-btn.is-saved svg {
  fill: #111;
  stroke: #111;
}
@keyframes yyp-heart-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.4); }
  70%  { transform: scale(.92); }
  100% { transform: scale(1); }
}
.card-save-btn.just-saved {
  animation: yyp-heart-pulse .55s cubic-bezier(.34,1.4,.64,1);
}


/* ── Saved confetti burst ──────────────────────────────────
   Small sprinkle that pops out of the heart on save. */
.yyp-save-burst {
  position: absolute; pointer-events: none;
  width: 80px; height: 80px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}
.yyp-save-burst span {
  position: absolute;
  left: 50%; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #FFD000;
  opacity: 0;
  animation: yyp-burst .7s ease-out forwards;
}
@keyframes yyp-burst {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(var(--bx, 0), var(--by, 0)) scale(.4); opacity: 0; }
}


/* ── Account page layout ───────────────────────────────────── */
.acct-page {
  background: #FAFAFA;
  min-height: 100vh;
  padding-top: 88px;
  padding-bottom: 96px;
}
@media (min-width: 768px) {
  .acct-page { padding-bottom: 40px; }
}

.acct-container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .acct-container { padding: 0 24px; } }

.acct-header {
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px 0 28px;
  border-bottom: 1px solid #E8E8E8;
  margin-bottom: 28px;
}
@media (min-width: 640px) { .acct-header { flex-direction: row; align-items: center; } }

.acct-avatar-lg {
  width: 84px; height: 84px;
  border-radius: 24px;
  background: #FFD000; color: #111;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900; font-size: 2rem;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(255,208,0,.35);
}
.acct-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }

/* Click-to-upload overlay on the big avatar */
.avatar-upload-wrap { position: relative; cursor: pointer; overflow: hidden; }
.avatar-content {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.avatar-content img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  background: rgba(17, 17, 17, .72);
  color: #FFD000;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: .7rem;
  letter-spacing: .03em; text-transform: uppercase;
  opacity: 0; transition: opacity .18s;
}
.avatar-upload-wrap:hover .avatar-upload-overlay { opacity: 1; }
.avatar-upload-overlay.is-uploading { opacity: 1; background: rgba(17, 17, 17, .85); }
.upload-spinner {
  width: 24px; height: 24px;
  border: 2.5px solid rgba(255, 208, 0, .25);
  border-top-color: #FFD000;
  border-radius: 50%;
  animation: yyp-spin .7s linear infinite;
  margin-bottom: 4px;
}

.acct-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900; font-size: 1.875rem;
  letter-spacing: -.02em; color: #111;
  line-height: 1.1;
}
.acct-handle { color: #6B6B6B; font-size: .9rem; margin-top: 2px; }
.acct-bio { color: #4B4B4B; font-size: .9375rem; line-height: 1.55; margin-top: 8px; max-width: 540px; }

.acct-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-top: 10px;
  font-size: .8125rem; color: #6B6B6B;
}
.acct-meta strong { color: #111; font-weight: 800; }

.acct-tabs {
  display: flex; gap: 6px; overflow-x: auto;
  border-bottom: 1px solid #E8E8E8;
  margin-bottom: 20px;
  scrollbar-width: none;
}
.acct-tabs::-webkit-scrollbar { display: none; }
.acct-tab {
  padding: 12px 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: .875rem;
  color: #6B6B6B;
  border: none; background: none; cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .15s;
  white-space: nowrap;
  text-decoration: none;
}
.acct-tab:hover { color: #111; }
.acct-tab.is-active { color: #111; border-bottom-color: #FFD000; }

.acct-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: 1.125rem;
  color: #111; letter-spacing: -.01em;
  margin-bottom: 14px;
}

/* Taste tag chips */
.acct-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: #FFF9D6;
  border: 1.5px solid rgba(255,208,0,.4);
  color: #111;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .78rem; font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  font-family: 'Space Grotesk', sans-serif;
}
.acct-tag:hover { background: #FFD000; }
.acct-tag.is-on { background: #111; color: #FFD000; border-color: #111; }
.acct-tag-off {
  background: #fff;
  border: 1.5px solid #E8E8E8;
  color: #6B6B6B;
}
.acct-tag-off:hover { border-color: #FFD000; color: #111; background: #FFFDF0; }


/* Saved list cards */
.acct-saved-card {
  display: flex; gap: 14px;
  background: #fff;
  border: 1.5px solid #F3F3F3;
  border-radius: 18px;
  padding: 12px;
  transition: all .2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.acct-saved-card:hover { border-color: #FFD000; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,208,0,.15); }
.acct-saved-card-img {
  width: 88px; height: 88px;
  border-radius: 14px;
  object-fit: cover; flex-shrink: 0;
  background: #F3F3F3;
}
.acct-saved-card-body { flex: 1; min-width: 0; }
.acct-saved-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: .95rem;
  color: #111; margin-bottom: 2px;
  letter-spacing: -.01em;
}
.acct-saved-card-meta {
  font-size: .75rem; color: #6B6B6B;
}


/* Empty states */
.acct-empty {
  background: #fff;
  border: 1.5px dashed #E8E8E8;
  border-radius: 18px;
  padding: 48px 24px;
  text-align: center;
}
.acct-empty-emoji { font-size: 3rem; margin-bottom: 10px; }
.acct-empty-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: 1.125rem;
  color: #111; letter-spacing: -.01em; margin-bottom: 6px;
}
.acct-empty-text { color: #6B6B6B; font-size: .875rem; max-width: 360px; margin: 0 auto 18px; line-height: 1.5; }


/* Inputs */
.acct-input, .acct-textarea {
  width: 100%;
  background: #fff;
  border: 1.5px solid #E8E8E8;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: .9375rem; color: #111;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: border-color .2s;
}
.acct-input:focus, .acct-textarea:focus { border-color: #FFD000; }
.acct-textarea { min-height: 90px; resize: vertical; }
.acct-label {
  display: block;
  font-size: .8125rem; font-weight: 700; color: #111;
  margin-bottom: 6px;
  font-family: 'Space Grotesk', sans-serif;
}


/* ══ Reactions row (restaurant profile) ══ */
.reaction-row {
  display: flex; gap: 12px;
  flex-wrap: wrap;
}
.reaction-btn {
  flex: 1; min-width: 140px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: #fff;
  border: 1.5px solid #E8E8E8;
  border-radius: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: .9rem;
  color: #111;
  cursor: pointer;
  transition: all .18s ease;
  position: relative;
  overflow: hidden;
}
.reaction-btn:hover {
  border-color: #FFD000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 208, 0, .18);
}
.reaction-btn.is-active {
  background: #FFF9D6;
  border-color: #FFD000;
  box-shadow: 0 6px 18px rgba(255, 208, 0, .25);
}
.reaction-btn.is-active .reaction-emoji {
  transform: scale(1.18);
}
.reaction-emoji {
  font-size: 1.3rem;
  display: inline-flex;
  transition: transform .25s cubic-bezier(.34, 1.4, .64, 1);
  flex-shrink: 0;
}
.reaction-label { flex: 1; text-align: left; letter-spacing: -.01em; }
.reaction-count {
  font-size: .75rem; font-weight: 800;
  background: #F3F3F3;
  color: #6B6B6B;
  padding: 3px 10px;
  border-radius: 999px;
  min-width: 28px;
  text-align: center;
}
.reaction-btn.is-active .reaction-count {
  background: #111;
  color: #FFD000;
}

/* Brief tap animation on click */
@keyframes yyp-react-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.reaction-btn.just-tapped { animation: yyp-react-pop .35s ease-out; }


/* ══ Social proof badges on cards (save count, trending pulse) ══ */
.card-social-badge {
  position: absolute;
  top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(17, 17, 17, .85);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .65rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.card-social-badge.trending {
  background: #FFD000;
  color: #111;
}
.card-social-badge .pulse {
  width: 6px; height: 6px;
  background: #FF4444;
  border-radius: 50%;
  animation: yyp-pulse 1.8s infinite;
}
.card-social-badge.trending .pulse { background: #111; }


/* ══ Activity strip on homepage hero ══ */
.activity-strip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 208, 0, .35);
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .02em;
}
.activity-strip-dot {
  width: 8px; height: 8px;
  background: #FFD000;
  border-radius: 50%;
  animation: yyp-pulse 2s infinite;
  box-shadow: 0 0 12px rgba(255, 208, 0, .8);
}
.activity-strip strong {
  color: #FFD000; font-weight: 800;
}


/* Follow button on restaurant profile — "is-following" state */
.r-action-btn.is-following {
  background: #111 !important; color: #FFD000 !important;
  border-color: #111 !important;
}
.r-action-btn.is-following:hover {
  background: #222 !important;
}
.r-action-btn .follow-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(255,208,0,.15);
  font-weight: 800; font-size: .85rem;
  margin-right: 2px;
}
.r-action-btn.is-following .follow-icon {
  background: rgba(255,208,0,.25);
}


/* "Popular this evening" social proof badge on cards */
.yyp-social-pulse {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255, 208, 0, .15);
  color: #111;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: .65rem; font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
}
.yyp-social-pulse-dot {
  width: 6px; height: 6px;
  background: #FFD000;
  border-radius: 50%;
  animation: yyp-pulse 2s infinite;
}
@keyframes yyp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.85); }
}
