/* =====================================================
   Indische Aastha Restaurant - Main Stylesheet
   Mobile-Optimized, Responsive & Modern Design System
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..800;1,9..144,400..700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --color-bg: #FBF6EF;
  --color-bg-dark: #1B1410;
  --color-primary: #B5432A;
  --color-primary-hover: #9b3620;
  --color-secondary: #C08A2E;
  --color-accent: #4B5E3C;
  --color-text: #241C16;
  --color-text-muted: #6B5F55;
  --color-border: #E4D9C8;
  --color-white: #ffffff;
  --color-emerald-50: #ecfdf5;
  --color-emerald-100: #d1fae5;
  --color-emerald-700: #047857;
  --color-emerald-800: #065f46;
  --color-emerald-900: #064e3b;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Headings display font */
h1, h2, h3, h4, .font-display {
  font-family: 'Fraunces', Georgia, serif;
}

/* Container */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1152px; } }

/* Safe area padding for mobile notches */
.pb-safe {
  padding-bottom: env(safe-area-inset-bottom, 16px);
}

/* Bottom nav clearance on mobile */
@media (max-width: 767px) {
  main {
    padding-bottom: 84px;
  }
}

/* Hide scrollbar */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Buttons */
.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(181, 67, 42, 0.2);
  text-decoration: none;
}
.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: scale(0.98);
}

.btn-emerald {
  background-color: var(--color-emerald-700);
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.25);
  text-decoration: none;
}
.btn-emerald:hover {
  background-color: var(--color-emerald-800);
  transform: translateY(-1px);
}
.btn-emerald:active {
  transform: scale(0.98);
}

/* Badge components */
.badge-id {
  font-size: 11px;
  font-weight: 800;
  color: var(--color-primary);
  background-color: rgba(181, 67, 42, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-veg {
  font-size: 10px;
  font-weight: 700;
  color: #047857;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 1px 6px;
  border-radius: 4px;
}

.badge-spice {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.badge-spice-mild { background-color: #f3f4f6; color: #4b5563; border: 1px solid #e5e7eb; }
.badge-spice-pikant { background-color: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-spice-leicht { background-color: #fefce8; color: #a16207; border: 1px solid #fef08a; }
.badge-spice-mittel { background-color: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.badge-spice-scharf { background-color: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* Item Card */
.menu-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 0.875rem 1rem;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.menu-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border-color: #d1c5b2;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeIn 0.25s ease-out forwards;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
.animate-ping {
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
  50% { transform: none; animation-timing-function: cubic-bezier(0,0,0.2,1); }
}
.animate-bounce {
  animation: bounce 1s infinite;
}

/* Truncation helper with tap to expand */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive utilities */
@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:hidden { display: none !important; }
  .md\:grid { display: grid !important; }
  .md\:block { display: block !important; }
}
@media (max-width: 767px) {
  .hidden-on-mobile { display: none !important; }
}
