/**
 * Go & Grab It - Retail SaaS Platform
 * Global Unified Styles & Design System Tokens
 */

@layer base {
  html, body {
    margin: 0;
    padding: 0;
  }
  body {
    overscroll-behavior: none;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background-color: #f8fafc;
    color: #141b2b;
  }
  * {
    -webkit-tap-highlight-color: transparent;
  }
}

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

/* Micro-Animations & Tactile Feedback */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes shimmerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 92, 85, 0.12); }
  50% { box-shadow: 0 0 16px 2px rgba(0, 92, 85, 0.22); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(0.96); }
}

@keyframes badgeScalePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

@keyframes rippleEffect {
  to { transform: scale(4); opacity: 0; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-float {
  animation: gentleFloat 4.5s ease-in-out infinite;
}

.animate-shimmer-pulse {
  animation: shimmerPulse 3s ease-in-out infinite;
}

.badge-pop {
  animation: badgeScalePop 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.pulse-dot {
  animation: pulseGlow 2.2s infinite ease-in-out;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.btn-tactile {
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.btn-tactile:active {
  transform: scale(0.96) translateZ(0);
}

/* Modal and Drawer Transitions */
.modal-backdrop-blur {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.25s ease;
}

.modal-panel-scale {
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-in-up,
  .animate-float,
  .animate-shimmer-pulse,
  .badge-pop,
  .pulse-dot,
  .btn-tactile {
    animation: none !important;
    transition: none !important;
  }
}

/* Thermal POS Print Media */
@media print {
  body * {
    visibility: hidden;
  }
  .printable-area, .printable-area * {
    visibility: visible;
  }
  .printable-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}
