/* Kopilagi Dukuh Zamrud - Custom Styles & Theme Overrides */

:root {
  --color-cream-bg: #FAF9F5;
  --color-cream-warm: #F7F6F0;
  --color-forest-dark: #0D3B2E;
  --color-forest-green: #1B4332;
  --color-forest-hover: #143527;
  --color-sage-light: #E8EFE9;
  --color-sage-tint: #F2F7F3;
  --color-amber-warm: #D49B42;
  --color-amber-accent: #E5A93C;
  --color-text-main: #1E2922;
  --color-text-muted: #5C6F64;
}

/* Base resets & typography smoothing */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-cream-bg);
  color: var(--color-text-main);
  font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.02em;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F0EFE9;
}
::-webkit-scrollbar-thumb {
  background: #C4D1C7;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1B4332;
}

/* Subtle botanical line leaf pattern background */
.bg-botanical-pattern {
  background-image: radial-gradient(#1B4332 0.75px, transparent 0.75px), radial-gradient(#1B4332 0.75px, #FAF9F5 0.75px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  opacity: 0.98;
}

/* Smooth glass backdrop */
.glass-nav {
  background: rgba(250, 249, 245, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 239, 233, 0.85);
}

.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(232, 239, 233, 0.9);
}

/* Soft elevation & lift animation */
.card-hover {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(13, 59, 46, 0.08), 0 4px 12px -2px rgba(13, 59, 46, 0.04);
  border-color: rgba(27, 67, 50, 0.22);
}

#menu .card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.45);
  border-color: #E5A93C;
}

/* Pulse animation for live status badge */
@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.animate-pulse-green {
  animation: status-pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes amber-glow {
  0%, 100% {
    opacity: 0.9;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-amber-glow {
  animation: amber-glow 3s infinite ease-in-out;
}

/* Slide over drawer animation */
.drawer-backdrop {
  transition: opacity 0.3s ease-in-out;
}

.drawer-panel {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hide scrollbar for category tabs on mobile */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Line clamp */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
