/* SallQ Foodservations - Main Stylesheet */

/* Custom Animations */
@keyframes float {
  0%, 100% { 
      transform: translateY(0px); 
  }
  50% { 
      transform: translateY(-20px); 
  }
}

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

@keyframes slideIn {
  from { 
      transform: translateX(-100%); 
  }
  to { 
      transform: translateX(0); 
  }
}

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

/* Global Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

/* Custom Utility Classes */
.gradient-bg {
  background: linear-gradient(135deg, #059669 0%, #065f46 100%);
}

.premium-gradient {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

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

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

.animate-slide-in {
  animation: slideIn 0.6s ease-out;
}

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

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Navigation Styles */
nav {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background-color: #059669;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #059669 0%, #065f46 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(5, 150, 105, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #059669;
  border: 2px solid #059669;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #059669;
  color: white;
  transform: translateY(-2px);
}

/* Form Styles */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
  outline: none;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
}

/* Modal Styles */
.modal {
  backdrop-filter: blur(4px);
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  animation: fadeIn 0.3s ease-out;
}

/* Category Button Styles */
.category-btn {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.category-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-btn.active {
  border-color: currentColor;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Search Results Styles */
.search-result-card {
  border-left: 4px solid #059669;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  transition: all 0.3s ease;
}

.search-result-card:hover {
  transform: translateX(8px);
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.1);
}

/* Food Category Cards */
.food-category-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f3f4f6;
}

.food-category-card:hover {
  border-color: #059669;
  box-shadow: 0 20px 40px rgba(5, 150, 105, 0.1);
}

/* Storage Method Cards */
.storage-method {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.storage-method:hover {
  border-color: #059669;
  background: white;
  transform: scale(1.02);
}

.storage-method.recommended {
  border-color: #f59e0b;
  background: #fffbeb;
}

.storage-method.recommended::before {
  content: '★';
  position: absolute;
  top: -10px;
  right: -10px;
  background: #059669;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Loading Animation */
.loading-spinner {
  border: 3px solid #f3f4f6;
  border-top: 3px solid #059669;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .card-hover:hover {
      transform: translateY(-4px);
      box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.2);
  }
  
  .nav-link::after {
      display: none;
  }
  
  .gradient-bg {
      padding: 60px 0;
  }
  
  h1 {
      font-size: 2.5rem !important;
  }
  
  h2 {
      font-size: 2rem !important;
  }
}

@media (max-width: 640px) {
  .category-btn {
      width: 100%;
      justify-content: center;
  }
  
  .storage-method {
      padding: 16px;
  }
  
  .card-hover {
      margin-bottom: 16px;
  }
}

/* Premium Content Styles */
.premium-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #f59e0b 0%, #059669 100%);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: bold;
  z-index: 10;
}

.premium-content {
  position: relative;
  opacity: 0.6;
  pointer-events: none;
}

.premium-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 48%, rgba(245, 158, 11, 0.1) 50%, transparent 52%);
  background-size: 20px 20px;
}

/* Success/Error Messages */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  animation: fadeIn 0.5s ease-out;
}

.alert-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.alert-warning {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

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

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

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #059669;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .no-print {
      display: none !important;
  }
  
  body {
      color: black !important;
      background: white !important;
  }
  
  .gradient-bg {
      background: #059669 !important;
      color: white !important;
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  /* Add dark mode styles here if needed */
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .card-hover {
      border: 2px solid #000;
  }
  
  .btn-primary {
      border: 2px solid #000;
  }
}