﻿.intro-section {
  background: var(--surface-container-lowest);
  padding: 16px 0;
  border-bottom: 1px solid var(--outline-variant);
}

.intro-text {
  font-size: 14px;
  color: var(--on-surface-variant);
  text-align: center;
}

@media (min-width: 768px) {
  .intro-text {
    text-align: left;
  }
}

.hero-section {
  padding: 15px 0;
}

.carousel-wrapper {
  position: relative;
  height: 500px;
  background: var(--primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

@media (min-width: 768px) {
  .carousel-wrapper {
    height: 600px;
  }
  .hero-section{padding: 15px 0;}
}

.carousel-track {
  height: 100%;
  display: flex;
  transition: transform 0.6s cubic-bezier(0.45, 0, 0.55, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.carousel-label {
  background: var(--secondary);
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.carousel-content h1 {
  margin-bottom: 24px;
}

.carousel-copy {
  margin-bottom: 32px;
  opacity: 0.9;
}

.carousel-link {
  background: white;
  color: var(--primary);
  display: inline-flex;
  width: auto;
  height: auto;
  padding: 12px 32px;
  border-radius: 99px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.carousel-link:hover {
  transform: translateY(-1px);
  opacity: 0.85;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 27, 14, 0.9) 0%, rgba(6, 27, 14, 0.2) 60%, transparent 100%);
  z-index: 10;
}

.carousel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 32px;
  z-index: 20;
  max-width: 720px;
  color: white;
}

@media (min-width: 768px) {
  .carousel-content {
    padding: 64px;
  }
}

.carousel-controls {
  position: absolute;
  bottom: 32px;
  right: 32px;
  z-index: 30;
  display: flex;
  gap: 12px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}

.carousel-btn:hover {
  background: white;
  color: var(--primary);
  border-color: white;
  transform: scale(1.1);
}

.recipe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .recipe-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.recipe-card {
  display: flex;
  flex-direction: column;
}

.recipe-card-img-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
  background: var(--surface-container);
}

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

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

.recipe-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--secondary);
  color: white;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.recipe-title {
  margin-bottom: 12px;
  transition: color 0.3s;
  height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-card:hover .recipe-title {
  color: var(--secondary);
}

.recipe-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--surface-container-high);
}

.trending-section {
  background: var(--surface-container-low);
  padding: 50px 0;
}

.trending-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .trending-grid {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}

.trending-large {
  background: var(--surface-container-lowest);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.trending-large:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.trending-large-img-box {
  height: 320px;
  overflow: hidden;
}

.trending-large-img,
.trending-small-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.trending-small-card {
  background: var(--surface-container-lowest);
  padding: 16px;
  border-radius: 12px;
  display: flex;
  gap: 16px;
  transition: all 0.3s;
}

.trending-small-card:hover {
  background: var(--surface-container-highest);
  transform: translateX(8px);
}

.seasonal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (min-width: 1024px) {
  .seasonal-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.seasonal-card {
  text-align: center;
}

.seasonal-img-wrapper {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--outline-variant);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.seasonal-card:hover .seasonal-img-wrapper {
  transform: scale(1.05) rotate(5deg);
  border-color: var(--secondary);
}

.seasonal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-btn {
  border: 1px solid var(--outline);
  background: transparent;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}