/* Custom Bakery Styles for Vaibhavi's Melt & Bake Lab */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,500;1,600&display=swap');

:root {
  --primary-pink: #f472b6;
  --primary-rose: #e11d48;
  --soft-pink: #fdf2f8;
  --accent-gold: #d97706;
  --choco-dark: #2d1810;
  --choco-medium: #4a2c20;
  --choco-light: #7c4a35;
  --cream-bg: #fffbf7;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--cream-bg);
  color: #332722;
  overflow-x: hidden;
}

.font-serif-title {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Glassmorphism & Soft Shadows */
.glass-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bakery-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
  border: 1px solid rgba(244, 114, 182, 0.15);
}

.bakery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(225, 29, 72, 0.12), 0 8px 16px -6px rgba(45, 24, 16, 0.06);
  border-color: rgba(244, 114, 182, 0.4);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf2f8;
}
::-webkit-scrollbar-thumb {
  background: #f472b6;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e11d48;
}

/* Pill & Size Switchers */
.size-chip {
  transition: all 0.2s ease-in-out;
}
.size-chip.active {
  background: linear-gradient(135deg, #e11d48, #db2777);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.3);
}

/* Shimmer & Gradients */
.bg-gradient-bakery {
  background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 50%, #fff7ed 100%);
}

.text-gradient-rose {
  background: linear-gradient(135deg, #be123c 0%, #db2777 50%, #9f1239 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #e11d48 0%, #db2777 100%);
  color: white;
  transition: all 0.25s ease;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #be123c 0%, #be185d 100%);
  box-shadow: 0 8px 20px -4px rgba(225, 29, 72, 0.4);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
}
.btn-whatsapp:hover {
  background: linear-gradient(135deg, #20ba5a 0%, #0d6d62 100%);
  box-shadow: 0 8px 20px -4px rgba(37, 211, 102, 0.4);
  transform: translateY(-1px);
}

/* Modal and Drawer Animations */
.drawer-backdrop {
  transition: opacity 0.3s ease;
}
.drawer-content {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Pure Veg Icon */
.veg-icon {
  width: 16px;
  height: 16px;
  border: 2px solid #16a34a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  padding: 1px;
}
.veg-icon .dot {
  width: 8px;
  height: 8px;
  background-color: #16a34a;
  border-radius: 50%;
}

/* Ripple Badge */
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(225, 29, 72, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

.pulse-badge {
  animation: pulse-ring 2.5s infinite;
}

/* AI Chatbot Styles */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#ai-chat-window:not(.hidden) {
  animation: slideUpFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ai-reply-content strong {
  color: #881337;
}

/* ============================================================
   DARK MODE (LUXURY ARTISAN CHOCOLATE AESTHETIC)
   ============================================================ */

html.dark {
  color-scheme: dark;
}

html.dark body {
  background-color: #140c09;
  color: #fce7f3;
}

html.dark .glass-header {
  background: rgba(20, 12, 9, 0.94);
  border-color: rgba(244, 114, 182, 0.15);
}

html.dark .bakery-card {
  background-color: #20130e;
  border-color: rgba(244, 114, 182, 0.12);
}

html.dark .bakery-card:hover {
  border-color: rgba(244, 114, 182, 0.35);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.6), 0 8px 16px -6px rgba(225, 29, 72, 0.25);
}

html.dark .bg-gradient-bakery {
  background: linear-gradient(135deg, #1c100c 0%, #26140e 50%, #160c08 100%);
  border-color: rgba(244, 114, 182, 0.12);
}

html.dark section {
  border-color: rgba(244, 114, 182, 0.1);
}

html.dark #cake-menu-section {
  background-color: #160d09;
}

html.dark #reviews-section {
  background-color: #140c09;
}

html.dark #checkout-modal > div,
html.dark #write-review-modal > div,
html.dark #upi-payment-modal > div,
html.dark #order-success-modal > div,
html.dark #cart-drawer {
  background-color: #20130e;
  border-color: rgba(244, 114, 182, 0.2);
  color: #fce7f3;
}

html.dark #cart-drawer-footer {
  background-color: #180e0a;
  border-color: rgba(244, 114, 182, 0.15);
}

html.dark input, 
html.dark textarea, 
html.dark select {
  background-color: #2b1912 !important;
  color: #ffffff !important;
  border-color: rgba(244, 114, 182, 0.22) !important;
}

html.dark input:focus, 
html.dark textarea:focus, 
html.dark select:focus {
  background-color: #341e16 !important;
  border-color: #f43f5e !important;
}

html.dark .bg-white {
  background-color: #20130e !important;
}

html.dark .text-gray-900 {
  color: #ffffff !important;
}

html.dark .text-gray-800 {
  color: #fce7f3 !important;
}

html.dark .text-gray-700 {
  color: #f5d0d6 !important;
}

html.dark .text-gray-600 {
  color: #d1b5bc !important;
}

html.dark .text-gray-500 {
  color: #a89499 !important;
}

html.dark .bg-pink-50,
html.dark .bg-rose-50,
html.dark .bg-gray-50 {
  background-color: rgba(244, 114, 182, 0.08) !important;
  border-color: rgba(244, 114, 182, 0.15) !important;
}

html.dark .border-pink-100,
html.dark .border-pink-200,
html.dark .border-gray-200 {
  border-color: rgba(244, 114, 182, 0.18) !important;
}

html.dark #ai-chat-window {
  background-color: #20130e;
  border-color: rgba(244, 114, 182, 0.25);
}

html.dark #ai-chat-messages {
  background-color: #180e0a;
}

html.dark #ai-chat-form {
  background-color: #20130e;
  border-color: rgba(244, 114, 182, 0.15);
}

html.dark .ai-reply-content strong {
  color: #fb7185;
}

html.dark ::-webkit-scrollbar-track {
  background: #180d09;
}
html.dark ::-webkit-scrollbar-thumb {
  background: #7c4a35;
}
