/* ============================================
   BACKGROUND — Floating SHEV hearts
============================================ */
.notes-hearts-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events:none;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,77,126,0.06) 0px,
      rgba(255,77,126,0.06) 2px,
      transparent 2px,
      transparent 140px
    );
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.notes-hearts-bg::after {
  content: "shev   shev   shev   shev   shev";
  position: absolute;
  top: 0; left: 0;
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: 2rem;
  opacity: .04;
  color: var(--accent);
  animation: floatShev 28s linear infinite;
}

@keyframes floatShev {
  0% { transform: translateY(0); }
  100% { transform: translateY(-220vh); }
}

/* ============================================
   FORM
============================================ */
.note-form {
  position: relative;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.5rem;
  margin-bottom: 1.5rem;

  overflow: hidden;
  min-height: 280px;
}

.note-form input,
.note-form textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  padding: .7rem .9rem;
  margin-bottom: .75rem;
  color: var(--text);
  font-size: 1rem;
}

/* ============================================
   STICKER PICKER
============================================ */
.sticker-options {
  display: flex;
  gap: .7rem;
  margin-bottom: 1rem;
}

.sticker-options span {
  font-size: 2.4rem;
  cursor: pointer;
  filter: saturate(0.4);
  transition: 0.25s;
  user-select: none;

  min-width: 44px;
  min-height: 44px;
  text-align: center;

  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji";
}

.sticker-options span:hover {
  transform: scale(1.25) rotate(6deg);
  filter: saturate(1);
}

/* ============================================
   NOTE CARDS
============================================ */
.notes-list {
  display: grid;
  gap: 1.2rem;
}

.note-card {
  opacity: 0;
  animation: noteFade 0.7s ease forwards;
}

@keyframes noteFade {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.note-card-inner {
  position: relative;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 1rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 220px;
}

/* ============================================
   STICKERS (STATIC CLUSTER)
============================================ */
.note-sticker {
  position: absolute;
  font-size: 2.3rem;
  pointer-events: none;
  user-select: none;
  animation: wobble 4s ease-in-out infinite;

  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji";
}

@keyframes wobble {
  0% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-4px); }
  100% { transform: rotate(-4deg) translateY(0); }
}

/* ============================================
   REACTIONS
============================================ */
.reaction-bar {
  display: flex;
  gap: .5rem;
  margin-top: .7rem;
}

.reaction-button {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  padding: .25rem .5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: .3rem;
  
  transition: 0.25s ease;
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji";
}

.reaction-button:hover {
  background: rgba(255,255,255,.18);
}

.reaction-button.reacted {
  background: rgba(80,130,255,0.25);
  border-color: rgba(80,130,255,0.45);
  box-shadow: 0 0 8px rgba(80,130,255,0.45);
  transform: scale(1.1);
}

.reaction-count {
  font-size: .8rem;
  color: var(--muted);
}

/* FLOATING REACTION BUBBLE */
.reaction-float {
  position: absolute;
  font-size: 2rem;
  animation: floatUp 1.1s ease-out forwards;
  opacity: 0;
  pointer-events: none;
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(1); opacity: .8; }
  70% { opacity: 1; transform: translateY(-45px) scale(1.25); }
  100% { opacity: 0; transform: translateY(-80px) scale(1.35); }
}

/* ============================================
   EDIT / DELETE
============================================ */
.note-actions {
  display: flex;
  gap: .5rem;
  margin-top: .8rem;
}

.note-btn {
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  padding: .35rem .75rem;
  border-radius: 8px;
  font-size: .8rem;
  cursor: pointer;
  color: var(--muted);
  transition: .2s;
}

.note-btn:hover {
  background: rgba(255,255,255,.15);
}

/* ============================================
   TYPING OVERLAY
============================================ */
.typing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content:center;
  align-items:center;
  z-index: 2000;
}

.typing-overlay.hidden {
  display: none;
}

.typing-box {
  background: var(--card);
  padding: 2rem 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.1);
  text-align:center;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}

.typing-heart {
  font-size: 3rem;
  margin-bottom: .3rem;
  animation: spinnerBeat 1s infinite;
}

.typing-dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2){ animation-delay: .2s; }
.typing-dots span:nth-child(3){ animation-delay: .4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
}

@keyframes spinnerBeat {
  0% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(1); opacity: .5; }
}

/* ============================================
   SPINNER
============================================ */
.loading-spinner {
  display: flex;
  justify-content:center;
  margin: 1rem 0;
}
.loading-spinner.hidden { display: none; }

.spinner-heart {
  font-size: 2.6rem;
  animation: spinnerBeat 1s infinite;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 600px) {
  .sticker-options span { font-size: 2rem; }
  .reaction-button { padding: .15rem .4rem; }
}
