/* Loading Spinner */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #22c55e;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

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

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

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

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

/* Card Hover Effects */
.coffeeshop-card {
  transition: all 0.3s ease;
}

.coffeeshop-card: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);
}

/* Badge Animations */
.status-badge {
  transition: all 0.2s ease;
}

.status-badge:hover {
  transform: scale(1.05);
}

/* Search Input Focus */
.search-input:focus {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Stat Card Animation */
.stat-card {
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Logo Emoji Animation */
.logo-emoji {
  font-size: 3rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.coffeeshop-card:hover .logo-emoji {
  transform: rotate(10deg) scale(1.1);
}

/* Filter Button Active State */
.filter-btn-active {
  background: linear-gradient(to right, #16a34a, #22c55e);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.3);
}

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

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Staggered Animation for Cards */
.coffeeshop-card:nth-child(1) { animation-delay: 0.05s; }
.coffeeshop-card:nth-child(2) { animation-delay: 0.1s; }
.coffeeshop-card:nth-child(3) { animation-delay: 0.15s; }
.coffeeshop-card:nth-child(4) { animation-delay: 0.2s; }
.coffeeshop-card:nth-child(5) { animation-delay: 0.25s; }
.coffeeshop-card:nth-child(6) { animation-delay: 0.3s; }

/* No Results Message */
.no-results {
  text-align: center;
  padding: 3rem;
  color: #64748b;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .logo-emoji {
    font-size: 2rem;
  }
  
  .coffeeshop-card:hover {
    transform: none;
  }
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(to right, #16a34a, #22c55e, #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Quick Jump Navigation */
.quick-jump {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

/* Menu Count Badge */
.menu-count {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #bbf7d0;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #15803d;
}

/* Pulse Animation for New Badges */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(to right, #16a34a, #22c55e);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(to right, #15803d, #16a34a);
  box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.3);
}
