/* Main Styles for Koala Healthy Food Website */

/* Custom gradient text effect */
.gradient-text {
  background: linear-gradient(90deg, #00707e, #d9dd21);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Fix per Safari mobile sul gradient text */
@media not all and (min-resolution:.001dpcm) { 
  @supports (-webkit-appearance:none) {
    .gradient-text {
      display: inline-block;
    }
  }
}

/* ============================
   LUNCH SPECIALS SECTION (Mission Theme)
   ============================ */

/* Sezione principale lunch specials */
#lunchSpecialsSection {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
}

#lunchSpecialsSection::before {
  content: '✨';
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  opacity: 0.1;
  z-index: 1;
  animation: float 4s ease-in-out infinite;
}

#lunchSpecialsSection::after {
  content: '🎯';
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  font-size: 2.5rem;
  opacity: 0.1;
  z-index: 1;
  animation: float 4s ease-in-out infinite reverse;
}

/* Header della sezione lunch */
.lunch-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 10;
}

.lunch-header .section-badge {
  display: inline-block;
  background: linear-gradient(45deg, #00707e, #d9dd21);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 112, 126, 0.3);
  transform: translateZ(0);
  animation: float 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.lunch-header .section-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.lunch-header h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  position: relative;
}

.lunch-header h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #00707e, #d9dd21);
  border-radius: 2px;
}

.lunch-header p {
  font-size: clamp(1.1rem, 2.5vw, 1.375rem);
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 500;
}

/* Grid responsive per le cards */
.lunch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 5rem;
  position: relative;
  z-index: 10;
}

/* Card styles ottimizzati con Mission theme */
.lunch-card {
  background: white;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 3px solid transparent;
  position: relative;
  transform: translateZ(0);
}

.lunch-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #00707e, #d9dd21);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 2rem;
  z-index: -1;
}

.lunch-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 60px rgba(0, 112, 126, 0.2);
  border-color: #d9dd21;
}

.lunch-card:hover::before {
  opacity: 0.08;
}

/* Immagine della card */
.lunch-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.lunch-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.lunch-card:hover .lunch-card-image img {
  transform: scale(1.15);
}

/* Badge Mission ottimizzato */
.lunch-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: linear-gradient(45deg, #d9dd21, #facc15);
  color: #1f2937;
  padding: 0.625rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(217, 221, 33, 0.4);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  backdrop-filter: blur(10px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lunch-price {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  color: #00707e;
  padding: 0.75rem 1.25rem;
  border-radius: 2rem;
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(217, 221, 33, 0.3);
}

/* Contenuto della card */
.lunch-card-content {
  padding: 2rem;
}

.lunch-category {
  background: linear-gradient(45deg, #00707e, #005a66);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lunch-card h3 {
  font-size: 1.375rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.lunch-card p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lunch-ingredients {
  margin-bottom: 2rem;
  background: rgba(248, 250, 252, 0.8);
  padding: 1rem;
  border-radius: 1rem;
  border-left: 4px solid #d9dd21;
}

.lunch-ingredients-label {
  font-size: 0.75rem;
  color: #00707e;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.lunch-ingredients-text {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.5;
  font-weight: 500;
}

/* Bottone order ottimizzato */
.lunch-order-btn {
  width: 100%;
  background: linear-gradient(45deg, #d9dd21, #facc15);
  color: #1f2937;
  font-weight: 800;
  padding: 1rem 1.5rem;
  border-radius: 1.25rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 6px 20px rgba(217, 221, 33, 0.3);
  position: relative;
  overflow: hidden;
}

.lunch-order-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.lunch-order-btn:hover {
  background: linear-gradient(45deg, #facc15, #d9dd21);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(217, 221, 33, 0.5);
}

.lunch-order-btn:hover::before {
  left: 100%;
}

.lunch-order-btn:active {
  transform: translateY(-1px);
}

/* CTA Section ottimizzata */
.lunch-cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 112, 126, 0.08), rgba(217, 221, 33, 0.08));
  border-radius: 2.5rem;
  padding: 4rem 3rem;
  border: 2px solid rgba(217, 221, 33, 0.2);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.lunch-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(217, 221, 33, 0.1), transparent);
  animation: shimmer 4s ease-in-out infinite;
}

.lunch-cta h3 {
  font-size: 2rem;
  font-weight: 900;
  color: #1f2937;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 10;
}

.lunch-cta p {
  color: #64748b;
  margin-bottom: 2.5rem;
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 10;
}

.lunch-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(45deg, #00707e, #d9dd21);
  color: white;
  padding: 1.25rem 2.5rem;
  border-radius: 1.5rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 112, 126, 0.3);
  position: relative;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lunch-cta-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 112, 126, 0.4);
  background: linear-gradient(45deg, #d9dd21, #00707e);
}

/* Common styles */
body {
  font-family: "Space Grotesk", "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */

/* Mobile First - Small screens (320px - 640px) */
@media (max-width: 640px) {
  #lunchSpecialsSection {
    padding: 3rem 0;
  }
  
  .lunch-header {
    margin-bottom: 2.5rem;
  }
  
  .lunch-header .section-badge {
    font-size: 0.75rem;
    padding: 0.375rem 1rem;
  }
  
  .lunch-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }
  
  .lunch-card-image {
    height: 180px;
  }
  
  .lunch-card-content {
    padding: 1.25rem;
  }
  
  .lunch-cta {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }
  
  .lunch-cta h3 {
    font-size: 1.5rem;
  }
  
  .lunch-cta-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
  }
}

/* Tablet - Medium screens (641px - 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
  #lunchSpecialsSection {
    padding: 4rem 0;
  }
  
  .lunch-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
  
  .lunch-card-image {
    height: 190px;
  }
}

/* Desktop - Large screens (1025px+) */
@media (min-width: 1025px) {
  #lunchSpecialsSection {
    padding: 5rem 0;
  }
  
  .lunch-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  /* 4 colonne per schermi molto grandi */
  @media (min-width: 1400px) {
    .lunch-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }
}

/* ============================
   UTILITY CLASSES
   ============================ */

/* Utility classes per responsività */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Animazioni */
.pulse-button {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Button hover effects */
.button-primary {
  transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
}

.button-primary:hover {
  transform: scale(1.05);
}

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Media queries per responsività legacy */
@media (max-width: 640px) {
  .container-custom {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  h1 {
    font-size: 1.875rem; /* 30px */
  }
  
  h2 {
    font-size: 1.5rem; /* 24px */
  }
  
  p {
    font-size: 0.875rem; /* 14px */
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .container-custom {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  h1 {
    font-size: 2.25rem; /* 36px */
  }
  
  h2 {
    font-size: 1.75rem; /* 28px */
  }
}

@media (min-width: 1025px) {
  .container-custom {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  h1 {
    font-size: 3rem; /* 48px */
  }
  
  h2 {
    font-size: 2rem; /* 32px */
  }
}

/* Utility per immagini responsive */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Personalizzazione input form */
input:focus, textarea:focus {
  outline: none;
  border-color: #00707e;
  box-shadow: 0 0 0 3px rgba(0, 112, 126, 0.2);
}

/* Bottoni principali */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  background-color: #00707e;
  color: white;
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #005a66;
  transform: scale(1.05);
}

/* Accessibilità focus */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 112, 126, 0.5);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .dark-mode-support {
    --bg-color: #121212;
    --text-color: #e5e5e5;
    --accent-color: #00707e;
    
    background-color: var(--bg-color);
    color: var(--text-color);
  }
} 