/* ==========================================================================
   NutriZen Modern Dynamic Theme Styles
   ========================================================================== */

:root {
  --primary: #10b981;       /* Emerald */
  --primary-hover: #059669;
  --secondary: #6366f1;     /* Indigo */
  --accent-protein: #f97316;/* Coral Orange */
  --accent-carbs: #3b82f6;  /* Sky Blue */
  --accent-fat: #eab308;    /* Amber Gold */
  --accent-micro: #8b5cf6;  /* Purple */
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --ring-size: 80px;
}

.dark {
  --bg-main: #0b0f19;
  --card-bg: #111827;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border-color: #1f2937;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* Glassmorphism Card */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

.dark .glass-panel {
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid rgba(31, 41, 55, 0.8);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Card Hover Lift */
.hover-lift {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Modern Pill Button */
.pill-btn {
  transition: all 0.2s ease;
}
.pill-btn:active {
  transform: scale(0.96);
}

/* Interactive Water Glass */
.water-glass {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}
.water-glass:hover {
  transform: scale(1.15) translateY(-2px);
}
.water-glass.filled {
  color: #0284c7;
  filter: drop-shadow(0 4px 6px rgba(2, 132, 199, 0.35));
}

/* Nutrient Meter Bar */
.nutrient-bar-fill {
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pulse Glow */
@keyframes softGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.2); }
  50% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.45); }
}

.pulse-target {
  animation: softGlow 3s infinite ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}

/* Modal Drawer Backdrop */
.modal-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(15, 23, 42, 0.6);
  transition: opacity 0.3s ease;
}

/* Slide in animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-slide-up {
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Shimmer Loading Skeleton */
.skeleton-shimmer {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Strikethrough Checklist */
.todo-checked {
  text-decoration: line-through;
  opacity: 0.55;
  transition: all 0.2s ease;
}

/* Print Styling */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  nav, .no-print, button, #pantryModal, #recipeDetailModal, #swapModal, #profileModal {
    display: none !important;
  }
  .glass-panel {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  .print-break {
    page-break-before: always;
  }
}
