@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Comic+Relief:wght@400;700&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Sansation:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

/* DeeCare Design System & Semi-3D Organic Blobs */

/* Base & Mobile Viewport Protection */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden !important;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-family: 'Comic Relief', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #F8F9FC;
  color: #1F2937;
  overscroll-behavior-y: contain;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select, textarea, optgroup {
  font-family: 'Comic Relief', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Safe Area Insets for Mobile */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --color-coral: #f75966;
  --color-orange: #fa9111;
  --color-blue: #11baed;
}

.safe-bottom-padding {
  padding-bottom: calc(env(safe-area-inset-bottom, 16px) + 76px);
}

.bottom-nav-safe {
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 8px);
}

/* Background blob canvas container */
.bg-blob-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Semi-3D Organic Blobs */
.blob-shape-1 {
  border-radius: 52% 48% 63% 37% / 44% 53% 47% 56%;
}

.blob-shape-2 {
  border-radius: 65% 35% 42% 58% / 55% 42% 58% 45%;
}

.blob-shape-3 {
  border-radius: 38% 62% 56% 44% / 48% 61% 39% 52%;
}

.blob-shape-circle {
  border-radius: 46% 54% 50% 50% / 51% 47% 53% 49%;
}

/* 3D Depth & Lighting for Blobs */
.blob-coral {
  background: radial-gradient(circle at 32% 28%, #ffa3aa 0%, #f75966 60%, #df3848 100%);
  box-shadow: 
    0 16px 32px -8px rgba(247, 89, 102, 0.42),
    0 6px 16px -4px rgba(247, 89, 102, 0.25),
    inset 0 4px 8px rgba(255, 255, 255, 0.55),
    inset 0 -5px 10px rgba(168, 20, 35, 0.25);
}

.blob-orange {
  background: radial-gradient(circle at 32% 28%, #ffc470 0%, #fa9111 60%, #db7500 100%);
  box-shadow: 
    0 16px 32px -8px rgba(250, 145, 17, 0.42),
    0 6px 16px -4px rgba(250, 145, 17, 0.25),
    inset 0 4px 8px rgba(255, 255, 255, 0.6),
    inset 0 -5px 10px rgba(168, 80, 0, 0.25);
}

.blob-blue {
  background: radial-gradient(circle at 32% 28%, #72dcfa 0%, #11baed 60%, #0896c2 100%);
  box-shadow: 
    0 16px 32px -8px rgba(17, 186, 237, 0.42),
    0 6px 16px -4px rgba(17, 186, 237, 0.25),
    inset 0 4px 8px rgba(255, 255, 255, 0.6),
    inset 0 -5px 10px rgba(6, 114, 150, 0.25);
}

/* Semi-3D Floating Layers & Soft Glass */
.layer-card {
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 10px 30px -4px rgba(31, 41, 55, 0.05), 0 4px 12px -2px rgba(31, 41, 55, 0.03);
  border: 1px solid rgba(243, 244, 246, 0.85);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.layer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -6px rgba(31, 41, 55, 0.08), 0 6px 16px -3px rgba(31, 41, 55, 0.04);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(229, 231, 235, 0.6);
  box-shadow: 0 -8px 25px rgba(31, 41, 55, 0.04);
}

/* Floating Animations (4-7 seconds duration) */
@keyframes floatGentle {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(1.5deg);
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(-2deg);
  }
}

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(6px) rotate(1deg);
  }
}

.animate-float-gentle {
  animation: floatGentle 5s ease-in-out infinite;
}

.animate-float-slow {
  animation: floatSlow 6.5s ease-in-out infinite;
}

.animate-float-reverse {
  animation: floatReverse 5.8s ease-in-out infinite;
}

/* Page & Element Entrance Animation */
@keyframes entranceFadeUp {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-entrance {
  animation: entranceFadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Tap Feedback */
.btn-press {
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.btn-press:active {
  transform: scale(0.97);
}

/* Hide scrollbar for clean horizontal scrolls */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Accessible focus ring */
.focus-brand:focus-visible {
  outline: none;
  ring: 3px solid rgba(247, 89, 102, 0.4);
  border-color: #f75966;
}

/* ==========================================================================
   SUPER CUTE, CHEERFUL ANIMATED BLOB & BOUNCY POPUP STYLES (Requirement #4)
   ========================================================================== */
@keyframes bouncePopIn {
  0% {
    transform: scale(0.65) translateY(40px);
    opacity: 0;
  }
  60% {
    transform: scale(1.05) translateY(-8px);
    opacity: 1;
  }
  80% {
    transform: scale(0.97) translateY(2px);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.animate-bounce-pop {
  animation: bouncePopIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cuteBlobSquish {
  0%, 100% {
    transform: scale(1) translateY(0);
  }
  30% {
    transform: scale(1.08, 0.92) translateY(-4px);
  }
  60% {
    transform: scale(0.94, 1.06) translateY(2px);
  }
}

.animate-cute-blob {
  animation: cuteBlobSquish 3s ease-in-out infinite;
}

@keyframes eyeBlinkAnimation {
  0%, 90%, 100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}

.animate-eye-blink {
  animation: eyeBlinkAnimation 3.6s infinite;
  transform-origin: center;
}

@keyframes sparkleWiggle {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(15deg) scale(1.18);
  }
}

.animate-sparkle {
  animation: sparkleWiggle 2.2s ease-in-out infinite;
}

/* Modern Realistic Icon Badges */
.icon-badge-coral {
  background: linear-gradient(135deg, #ff6b77 0%, #f75966 60%, #e03244 100%);
  box-shadow: 0 8px 16px -3px rgba(247, 89, 102, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.icon-badge-orange {
  background: linear-gradient(135deg, #ffa826 0%, #fa9111 60%, #e07400 100%);
  box-shadow: 0 8px 16px -3px rgba(250, 145, 17, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.icon-badge-blue {
  background: linear-gradient(135deg, #38cbfa 0%, #11baed 60%, #079dc9 100%);
  box-shadow: 0 8px 16px -3px rgba(17, 186, 237, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.icon-badge-purple {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 60%, #6d28d9 100%);
  box-shadow: 0 8px 16px -3px rgba(139, 92, 246, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.icon-badge-emerald {
  background: linear-gradient(135deg, #34d399 0%, #10b981 60%, #047857 100%);
  box-shadow: 0 8px 16px -3px rgba(16, 185, 129, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   RESPONSIVE MODAL BOTTOM SHEET (Mobile Native Feel)
   ========================================================================== */
.modal-bottom-sheet {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 640px) {
  .modal-bottom-sheet {
    align-items: center;
  }
}

.modal-content-panel {
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 639px) {
  .modal-content-panel {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    width: 100% !important;
    max-height: 88vh !important;
  }
}

/* ==========================================================================
   MOBILE SIDEBAR DRAWER (Smooth Slide-in & Backdrop)
   ========================================================================== */
#mobile-sidebar-drawer {
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s;
}

#mobile-sidebar-drawer.drawer-closed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#mobile-sidebar-drawer.drawer-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#mobile-sidebar-panel {
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

#mobile-sidebar-drawer.drawer-open #mobile-sidebar-panel {
  transform: translateX(0);
}

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

