/* ===================================
   MODERN DYNAMIC RESTAURANT THEME
   =================================== */

/* Advanced Search Overlay Styles */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.search-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  margin: 5% auto;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: translateY(-50px);
  transition: transform 0.4s ease;
}

.search-overlay.active .search-container {
  transform: translateY(0);
}

.search-header {
  padding: 30px 30px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  font-family: var(--font-accent);
}

.search-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.search-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.search-main {
  padding: 30px;
}

.search-box-advanced {
  position: relative;
  margin-bottom: 30px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 0 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.search-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.1);
}

.search-icon {
  color: var(--text-muted);
  margin-right: 15px;
  font-size: 1.2rem;
}

.search-input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  padding: 18px 0;
  font-size: 1.1rem;
  background: transparent;
}

.search-voice-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-voice-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  margin-top: 8px;
  overflow: hidden;
  z-index: 10;
}

.suggestion-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f3f4f6;
}

.suggestion-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.suggestion-item i {
  margin-right: 12px;
  width: 20px;
  color: var(--primary);
}

.search-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.filter-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.filter-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.price-range {
  position: relative;
}

.price-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255, 106, 0, 0.3);
}

.price-display {
  text-align: center;
  margin-top: 8px;
  font-weight: 600;
  color: var(--primary);
}

.search-results {
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
}

.results-header h3 {
  margin: 0 0 15px;
  color: var(--text);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.result-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #f8fafc;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.result-item:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.result-item img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  margin-right: 12px;
  object-fit: cover;
}

.result-info h4 {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: var(--text);
}

.result-info p {
  margin: 0;
  font-weight: 600;
  color: var(--primary);
}

/* Dynamic Menu Grid Styles */
.dynamic-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.menu-category-card {
  position: relative;
  height: 400px;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.menu-category-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.card-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%);
  opacity: 0.9;
}

.gradient-overlay.griller {
  background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
}

.gradient-overlay.wings {
  background: linear-gradient(135deg, #ff6348 0%, #ff4757 100%);
}

.gradient-overlay.family {
  background: linear-gradient(135deg, #2ed573 0%, #1e90ff 100%);
}

.gradient-overlay.dessert {
  background: linear-gradient(135deg, #ff9ff3 0%, #f368e0 100%);
}

.gradient-overlay.drinks {
  background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
}

.pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.flame-animation,
.spice-particles,
.family-hearts,
.sweet-sparkles,
.bubble-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.flame-animation::before,
.flame-animation::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: flame-dance 2s ease-in-out infinite;
}

.flame-animation::before {
  top: 20%;
  left: 30%;
  animation-delay: 0s;
}

.flame-animation::after {
  top: 60%;
  right: 25%;
  animation-delay: 1s;
}

@keyframes flame-dance {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-20px) scale(1.2); opacity: 0.6; }
}

.card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.category-icon-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.category-icon-wrapper i {
  font-size: 1.8rem;
  color: white;
}

.icon-glow {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.6; }
}

.category-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.category-badge.premium {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #333;
}

.category-badge.fire {
  background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
}

.category-badge.spicy {
  background: linear-gradient(135deg, #ff6348 0%, #ff4757 100%);
}

.category-badge.family {
  background: linear-gradient(135deg, #2ed573 0%, #1e90ff 100%);
}

.category-badge.sweet {
  background: linear-gradient(135deg, #ff9ff3 0%, #f368e0 100%);
}

.category-badge.refreshing {
  background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
}

.category-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 8px;
  font-family: var(--font-accent);
}

.category-info p {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0 0 20px;
}

.category-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 500;
}

.stat i {
  font-size: 0.8rem;
}

.category-preview {
  margin-bottom: 20px;
}

.preview-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-item {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.card-actions {
  margin-top: auto;
}

.explore-btn {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.explore-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-ripple {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.6s ease;
}

.explore-btn:active .btn-ripple {
  transform: scale(1);
}

.card-hover-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: 3;
  pointer-events: none;
}

.menu-category-card:hover .card-hover-effect {
  transform: translateX(100%);
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-container {
    width: 95%;
    margin: 2% auto;
  }
  
  .search-header {
    padding: 20px;
  }
  
  .search-main {
    padding: 20px;
  }
  
  .search-filters {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .dynamic-menu-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .menu-category-card {
    height: 350px;
  }
  
  .card-content {
    padding: 20px;
  }
}
