/* Component Styles - Buttons, CTAs, Badges, Forms */

/* Button Base Styles */
button, .btn {
  font-family: 'Noto Sans', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

/* Filter Buttons */
.filter-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #fff5eb 0%, #f0f9f8 100%);
  color: #5ebdb8;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  border: 2px solid rgba(94, 189, 184, 0.3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  min-height: 40px;
}

.filter-btn:hover {
  border-color: #5ebdb8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(94, 189, 184, 0.2);
}

.filter-btn.active {
  background: linear-gradient(135deg, #ff9a76 0%, #ffd89b 100%);
  color: white;
  border-color: #ff8c69;
  box-shadow: 0 4px 12px rgba(255, 154, 118, 0.3);
}

.filter-btn:active {
  transform: scale(0.96);
}

/* CTA Buttons */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 25px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-height: 48px;
  min-width: 48px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-btn:focus-visible {
  outline: 3px solid #5ebdb8;
  outline-offset: 2px;
}

.cta-btn.primary {
  background: linear-gradient(135deg, #ff9a76 0%, #ffd89b 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 154, 118, 0.3);
}

.cta-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 154, 118, 0.4);
}

.cta-btn.secondary {
  background: linear-gradient(135deg, #5ebdb8 0%, #7dd3ce 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(94, 189, 184, 0.3);
}

.cta-btn.secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(94, 189, 184, 0.4);
}

.cta-btn:active {
  transform: scale(0.98);
}

/* Performance: Reduce paint areas */
.cta-btn,
.filter-btn,
.nav-btn {
  transform: translateZ(0);
  backface-visibility: hidden;
}

.cta-icon {
  font-size: 18px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* CTA Cards */
.cta-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: linear-gradient(135deg, #fff5eb 0%, #f0f9f8 100%);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.cta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-color: #ff8c69;
}

.cta-card:active {
  transform: scale(0.98);
}

.cta-card-icon {
  font-size: 32px;
  min-width: 40px;
  text-align: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.cta-card-content {
  flex: 1;
  text-align: left;
}

.cta-card-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ff8c69;
  margin-bottom: 4px;
}

.cta-card-content p {
  font-size: 13px;
  color: #5a9997;
  margin: 0;
}

/* CTA Section */
.cta-section {
  margin-top: 30px;
  padding: 25px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 248, 0.9) 100%);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ff8c69;
  margin-bottom: 8px;
}

.cta-section p {
  font-size: 14px;
  color: #5a9997;
  margin-bottom: 20px;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

/* Badges */
.badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge.vegan {
  background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
  color: #2e7d32;
}

.badge.gf {
  background: linear-gradient(135deg, #ffe0b2 0%, #ffcc80 100%);
  color: #e65100;
}

.badge.organic {
  background: linear-gradient(135deg, #dcedc8 0%, #c5e1a5 100%);
  color: #558b2f;
}

.badge.exotic {
  background: linear-gradient(135deg, #f8bbd0 0%, #f48fb1 100%);
  color: #c2185b;
}

/* Features List */
.features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(135deg, #fff5eb 0%, #f0f9f8 100%);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.feature-icon {
  font-size: 24px;
  min-width: 30px;
  text-align: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.feature span:last-child {
  flex: 1;
  font-size: 14px;
  color: #5a9997;
  line-height: 1.5;
}

/* Search Bar */
.search-container {
  margin-bottom: 15px;
}

.search-bar {
  width: 100%;
  padding: 12px 18px;
  border: 2px solid rgba(94, 189, 184, 0.3);
  border-radius: 25px;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  background: white;
  color: #2c5f5d;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.search-bar:focus {
  outline: none;
  border-color: #5ebdb8;
  box-shadow: 0 0 0 3px rgba(94, 189, 184, 0.1);
}

.search-bar::placeholder {
  color: #a0c5c3;
}

/* Menu Item Icon */
.menu-item .icon {
  font-size: 40px;
  min-width: 50px;
  text-align: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Newsletter Modal */
.newsletter-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  padding: 20px 0;
}

.newsletter-modal.show {
  opacity: 1;
  visibility: visible;
}

.newsletter-modal-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 249, 248, 0.95) 100%);
  backdrop-filter: blur(10px);
  padding: 35px 25px;
  border-radius: 25px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  border: 2px solid rgba(255, 255, 255, 0.8);
  position: relative;
  text-align: center;
  animation: slideUp 0.3s ease;
}

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

.newsletter-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 32px;
  color: #ff8c69;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.newsletter-close:hover {
  background: rgba(255, 140, 105, 0.1);
  transform: rotate(90deg);
}

.newsletter-modal-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: #ff8c69;
  margin-bottom: 10px;
}

.newsletter-modal-content p {
  font-size: 14px;
  color: #5a9997;
  margin-bottom: 20px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-note {
  font-size: 12px;
  color: #5ebdb8;
  font-weight: 600;
  margin-top: 12px;
  margin-bottom: 0;
}

/* Privacy Banner */
.privacy-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 249, 248, 0.98) 100%);
  backdrop-filter: blur(10px);
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  z-index: 10000;
  border-top: 3px solid #ff8c69;
}

.privacy-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.privacy-banner-content p {
  flex: 1;
  font-size: 14px;
  color: #5a9997;
  margin: 0;
  min-width: 250px;
}

.privacy-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.privacy-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.privacy-btn.accept {
  background: linear-gradient(135deg, #ff9a76 0%, #ffd89b 100%);
  color: white;
}

.privacy-btn.decline {
  background: linear-gradient(135deg, #5ebdb8 0%, #7dd3ce 100%);
  color: white;
}

.privacy-btn.learn-more {
  background: white;
  color: #5a9997;
  border: 2px solid #5ebdb8;
}

.privacy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Section Loader */
.section-loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.section-loader.show {
  opacity: 1;
  visibility: visible;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(94, 189, 184, 0.2);
  border-top-color: #ff8c69;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* No Results Message */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: #5a9997;
  font-size: 15px;
  font-style: italic;
}

/* Responsive */
@media (min-width: 768px) {
  .cta-buttons {
    flex-direction: row;
    gap: 15px;
  }
  
  .cta-btn {
    min-width: 180px;
  }
}