/* assets/css/custom.css - Premium visual styling and micro-animations */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #f59e0b; /* Dynamically overwritten inline in PHP */
  --font-sans: 'Outfit', sans-serif;
}

body {
  font-family: var(--font-sans);
  background-color: #f9fafb;
}

/* Custom Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.4);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(156, 163, 175, 0.6);
}

/* Hide scrollbar utility for the category bar slider */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Smooth Fade In and Slide In animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

/* Glassmorphism utility */
.glass-effect {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.dark-glass-effect {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Pulsing online indicator */
.pulse-indicator {
  position: relative;
}
.pulse-indicator::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  right: -2px;
  top: -2px;
  animation: pulse-ring 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Add custom animations to category tabs active indicators */
.category-active-line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Citrus Orange helper utility classes for static Tailwind compatibility */
.bg-citric-orange {
  background-color: #FF5722 !important;
}
.hover\:bg-citric-orange-hover:hover {
  background-color: #E64A19 !important;
}
.shadow-citric-orange {
  box-shadow: 0 10px 15px -3px rgba(255, 87, 34, 0.2), 0 4px 6px -4px rgba(255, 87, 34, 0.2) !important;
}
.shadow-citric-orange-hover:hover {
  box-shadow: 0 10px 15px -3px rgba(255, 87, 34, 0.3), 0 4px 6px -4px rgba(255, 87, 34, 0.3) !important;
}
