/* Chilaquillos MTY - Premium Mobile WebApp Styles */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --brand-orange: #F16521;
  --brand-orange-dark: #D44E0E;
  --brand-orange-light: #FFEDE4;
  --brand-green: #729343;
  --brand-green-light: #EBF3E6;
  --bg-cream: #FAF8F5;
  --bg-card: #FFFFFF;
  --text-main: #1F2937;
  --text-muted: #6B7280;
  --border-subtle: #EFECE6;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-brand {
  font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.01em;
}

/* Custom scrollbars hidden for native app look */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Safe areas for iPhone dynamic island and home bar */
.pb-safe {
  padding-bottom: calc(env(safe-area-inset-bottom, 16px) + 80px);
}

.bottom-nav-safe {
  bottom: calc(env(safe-area-inset-bottom, 12px) + 12px);
}

/* Bottom Navigation Item styling */
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
  flex: 1;
}

.nav-icon-container {
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #9CA3AF;
  background-color: transparent;
}

/* Active bottom nav: icon enclosed in brand orange circle */
.nav-item.active .nav-icon-container {
  background-color: var(--brand-orange);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(241, 101, 33, 0.38);
  transform: translateY(-2px) scale(1.08);
}

.nav-item.active .nav-label {
  color: var(--brand-orange);
  font-weight: 700;
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
  color: #9CA3AF;
  transition: color 0.2s ease;
}

/* Modal animation */
.modal-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-sheet {
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0.9;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Heart Favorite Button Animation */
@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.animate-heart {
  animation: heartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Clean dish image container on pure white */
.clean-dish-container {
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Glass card styling */
.glass-panel {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(239, 236, 230, 0.8);
}

/* Category Pill Active State */
.cat-pill.active {
  background-color: var(--brand-orange);
  color: #FFFFFF;
  border-color: var(--brand-orange);
  box-shadow: 0 4px 12px rgba(241, 101, 33, 0.25);
  transform: scale(1.02);
}
