/* Custom styles for One Pot Restaurant */

:root {
  --primary-color: #dc2626;
  --primary-dark: #b91c1c;
  --secondary-color: #991b1b;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.fade-in {
  animation: fadeIn 0.4s ease-out;
}

/* Menu item hover effects */
.menu-item {
  transition: all 0.3s ease;
  transform: translateY(0);
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button animations */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(234, 88, 12, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Price styling */
.price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.2em;
}

/* Category filter active state */
.menu-filter.active {
  background: var(--primary-color) !important;
  color: white !important;
  transform: scale(1.05);
}

.menu-filter {
  transition: all 0.3s ease;
}

.menu-filter:hover {
  transform: translateY(-2px);
}

/* Cart animations */
.cart-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
  .hero-text {
    font-size: 2.5rem;
  }
  
  .menu-item {
    margin-bottom: 1rem;
  }
  
  .mobile-menu-btn {
    display: block;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Image placeholder for menu items */
.menu-image-placeholder {
  background: linear-gradient(135deg, #fee2e2, #dc2626);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7f1d1d;
  font-size: 2rem;
  border-radius: 8px;
  width: 100%;
  height: 200px;
}

/* Notification styles */
.notification {
  position: fixed;
  top: 80px;
  right: 20px;
  background: #10b981;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  animation: slideInRight 0.3s ease-out;
}

.notification.error {
  background: #ef4444;
}

/* Footer improvements */
footer a:hover {
  transform: scale(1.1);
}

/* Hero section improvements */
.hero-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Card improvements */
.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}