/* Chicken City Custom Styles */

/* Custom scrollbar for category navigation */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

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

/* Animation utilities */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse-scale {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-pulse-scale {
  animation: pulse-scale 2s ease-in-out infinite;
}

/* Custom button hover effects */
button, a {
  transition: all 0.3s ease;
}

/* Card hover effects */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* Focus states for accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

/* Sticky cart transition */
#sticky-cart {
  transition: transform 0.3s ease-out;
}

/* Cart notification animation */
#cart-notification {
  transition: transform 0.3s ease-out;
}

/* Menu category pills */
.category-pill {
  white-space: nowrap;
}

/* Hero wave animation */
@keyframes wave {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Price tag styling */
.price-tag {
  font-variant-numeric: tabular-nums;
}

/* Form input styling */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
select,
textarea {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Date input custom styling */
input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Select dropdown arrow */
select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Button loading state */
button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Smooth page transitions */
main {
  animation: fadeIn 0.4s ease-out;
}

/* Footer styling */
footer a {
  transition: color 0.2s ease;
}

/* Card shadows */
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-text {
    font-size: 2.5rem;
  }
  
  .menu-grid {
    grid-template-columns: 1fr;
  }
}

/* Print styles */
@media print {
  nav, footer, #sticky-cart, button {
    display: none !important;
  }
  
  body {
    background: white !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bg-chicken-cream {
    background-color: #fff;
  }
  
  .text-gray-600 {
    color: #333;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Custom selection color */
::selection {
  background-color: #FFB627;
  color: #1A1A1A;
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid #FF6B35;
  outline-offset: 2px;
}

/* Touch device optimizations */
@media (hover: none) {
  .group:hover .group-hover\:scale-110 {
    transform: none;
  }
}
