/* ==========================================================================
   AMPASKITA - Native Mobile Web Application Styles
   Circular Coffee Economy & Eco-Upcycling Platform
   ========================================================================== */

@layer base {
  *, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
  }

  html, body {
    margin: 0;
    padding: 0;
    background-color: #faf7f2;
    color: #1a1715;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Custom Smooth Scrolling & Hidden Native Scrollbars */
::-webkit-scrollbar {
  width: 0px;
  height: 0px;
  display: none;
}

body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Active Press Micro-Interactions */
button:active, a:active {
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

.card-shadow {
  box-shadow: 0 4px 20px -2px rgba(62, 39, 35, 0.08);
}

.glow-coffee {
  box-shadow: 0 8px 24px -4px rgba(74, 44, 23, 0.25);
}

.glow-green {
  box-shadow: 0 8px 24px -4px rgba(46, 111, 64, 0.25);
}

/* Mobile Bottom Bar Elevated Clearance (Safe from iPhone Home Indicator) */
#mobile-bottom-nav {
  bottom: max(28px, calc(env(safe-area-inset-bottom, 20px) + 12px)) !important;
}

/* Bottom Navigation Dynamic Active/Inactive States */
.app-nav-item {
  position: relative;
  min-width: 52px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
}

.app-nav-item .nav-icon {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), stroke-width 0.2s ease, color 0.2s ease;
}

.app-nav-item.is-active {
  color: #4a2c17;
}

.app-nav-item.is-active .nav-icon {
  transform: scale(1.35);
  stroke-width: 2.4;
  color: #4a2c17;
}

.app-nav-item.is-active .nav-label {
  display: none !important;
}

.app-nav-item:not(.is-active) {
  color: #8e8e93;
}

.app-nav-item:not(.is-active) .nav-icon {
  transform: scale(1);
  margin-bottom: 2px;
  color: #8e8e93;
}

.app-nav-item:not(.is-active) .nav-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #8e8e93;
}
