/* ========================================
   Recipes Section - 廚房靈感
   顏色變量請參考 css/global.css
   ======================================== */

.recipes {
  padding: 80px 0;
  background-color: #f5f5f5;
}

.recipes__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.recipes__title {
  padding-top: 0;
  text-align: center;
  font-size: 42px;
  font-weight: 500;
  color: #333;
  margin-bottom: 50px;
}

/* ========================================
   Carousel Container
   ======================================== */
.recipes__carousel {
  position: relative;
  margin-bottom: 40px;
}

/* 讓所有 slide 高度一致 */
.recipes-swiper .swiper-wrapper {
  align-items: stretch;
}

.recipes-swiper .swiper-slide {
  height: auto;
}

/* ========================================
   Recipe Card
   ======================================== */
.recipe-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.swiper-slide:nth-child(odd) .recipe-card {
  background-color: #B4543A;
}

.swiper-slide:nth-child(even) .recipe-card {
  background-color: #E59D61;
}

.recipe-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Recipe Image */
.recipe-card__image {
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

.recipe-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recipe-card:hover .recipe-card__image img {
  transform: scale(1.05);
}

/* Recipe Info */
.recipe-card__info {
  padding: 16px 20px;
  color: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recipe-card__name {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.4;
}

.recipe-card__time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  opacity: 0.9;
}

.recipe-card__time-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ========================================
   Action Button
   ======================================== */
.recipes__btn {
  background-color: #fff;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}

.recipes__btn:hover {
  background-color: var(--secondary-color);
  color: #fff;
}

/* ========================================
   Responsive Design - Tablet (1024px)
   ======================================== */
@media (max-width: 1024px) {
  .recipes {
    padding: 60px 0;
  }

  .recipes__title {
    font-size: 36px;
    margin-bottom: 40px;
  }

  .recipe-card__name {
    font-size: 16px;
  }

  .recipe-card__info {
    padding: 16px;
  }
}

/* ========================================
   Responsive Design - Mobile (768px)
   ======================================== */
@media (max-width: 768px) {
  .recipes__container {
    padding: 0;
  }

  .recipes {
    padding: 50px 0;
  }

  .recipes__carousel {
    margin-bottom: 20px;
  }

  .recipes__title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .recipe-card__name {
    font-size: 15px;
  }

  .recipe-card__time {
    font-size: 12px;
  }

  .recipe-card__info {
    padding: 14px;
  }
}

/* ========================================
   Responsive Design - Small Mobile (480px)
   ======================================== */
@media (max-width: 480px) {
  .recipes__title {
    font-size: 24px;
  }

  .recipe-card__name {
    font-size: 14px;
  }

  .recipe-card__time {
    font-size: 11px;
  }
}