:root {
  --babyaz-focus: #e11d48;
  --babyaz-bg: #fdf8ff;
  --babyaz-grad-start: #0ea5e9;
  --babyaz-grad-mid: #10b981;
  --babyaz-grad-end: #f43f5e;
}

[x-cloak] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
  font-family: Nunito, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--babyaz-focus) 55%, white);
  outline-offset: 3px;
}

/* ── Floating blob animation ── */
@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%       { transform: translate(18px, -22px) scale(1.05); }
  50%       { transform: translate(-10px, 14px) scale(0.96); }
  75%       { transform: translate(14px, 8px) scale(1.02); }
}

.animate-blob {
  animation: blob-drift 14s ease-in-out infinite;
}
.animation-delay-2  { animation-delay: 2s; }
.animation-delay-4  { animation-delay: 4s; }
.animation-delay-6  { animation-delay: 6s; }
.animation-delay-8  { animation-delay: 8s; }

/* ── Mobile bottom nav ── */
.mobile-nav {
  transform: translateZ(0);
}
.mobile-nav::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--babyaz-grad-start), var(--babyaz-grad-mid), var(--babyaz-grad-end));
}
.mobile-nav-item {
  display: flex;
  min-height: 3.35rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  border-radius: 0.9rem;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  transition: background-color 0.15s, transform 0.15s;
}
.mobile-nav-item:hover {
  background: #fff0f6;
  transform: translateY(-1px);
}

/* ── Beautiful form controls ── */
.input-base {
  min-height: 2.85rem;
  border-radius: 0.9rem;
  border-width: 1.5px;
  border-color: #e7e5e4;
  background: #ffffff;
  padding: 0 0.95rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.input-base:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.18), 0 1px 3px rgba(15, 23, 42, 0.06);
}
.input-base::placeholder {
  color: #a8a29e;
  font-weight: 600;
}

/* ── Hero search button (rose→peach gradient) ── */
.btn-hero {
  background: linear-gradient(135deg, #e11d48 0%, #f97316 100%);
  box-shadow: 0 4px 18px -3px rgba(225, 29, 72, 0.40), 0 2px 6px -2px rgba(249, 115, 22, 0.30);
  transition: box-shadow 0.2s, transform 0.15s;
}
.btn-hero:hover {
  box-shadow: 0 6px 24px -3px rgba(225, 29, 72, 0.60), 0 3px 10px -2px rgba(249, 115, 22, 0.40);
  transform: translateY(-1px);
}
.btn-hero:active,
.btn-glow:active {
  transform: translateY(0);
}

/* ── Glow utility ── */
.btn-glow {
  transition: box-shadow 0.2s, transform 0.15s;
}
.btn-glow:hover {
  transform: translateY(-1px);
}

/* ── Soft section (airy lavender-tinted white) ── */
.soft-section {
  background:
    linear-gradient(160deg, rgba(245, 243, 255, 0.70) 0%, rgba(255, 255, 255, 0.92) 55%, rgba(255, 241, 242, 0.50) 100%),
    var(--babyaz-bg);
}

/* ── Airy hero base (used across pages) ── */
.airy-hero {
  background: linear-gradient(145deg, #f3e8ff 0%, #fdf2f8 30%, #fef3c7 60%, #e0f2fe 100%);
}

@media (min-width: 640px) {
  .pill-scroll {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
