/* Chef Menu Archive Styles - Horizontal Card Layout */

/* Archive Hero Section */
.archive-hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 450px;
  max-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 60px;
}

.archive-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.archive-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.archive-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 2;
}

.archive-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  max-width: 900px;
  padding: 0 2rem;
}

/* Archive Badge */
.archive-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
  font-weight: var(--font-medium);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.archive-badge i {
  width: 18px;
  height: 18px;
}

/* Archive Title */
.archive-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--font-bold);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Archive Subtitle */
.archive-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  max-width: 750px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/* Archive Stats */
.archive-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 0 1 auto;
}

.stat-number {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: var(--font-bold);
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.stat-label {
  font-size: clamp(0.65rem, 1.5vw, 0.875rem);
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.2px;
  font-weight: var(--font-medium);
  text-align: center;
  line-height: 1.3;
}

.stat-divider {
  width: 1px;
  height: 35px;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

/* Chef Recommendations Grid Section */
.chef-recommendations-archive {
  padding: 60px 0 80px;
  background: var(--white, #f8f9fa);
}

.chef-recommendations-archive .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.recommendations-grid-archive {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Horizontal Recommendation Card */
.archive-recommendation-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: row;
  border: 1px solid rgba(0, 0, 0, 0.05);
  min-height: 280px;
}

.archive-recommendation-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Recommendation Image - Fixed Width */
.archive-recommendation-image {
  flex: 0 0 360px;
  width: 360px;
  position: relative;
  overflow: hidden;
  height: 320px;
}

.archive-recommendation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.archive-recommendation-card:hover .archive-recommendation-image img {
  transform: scale(1.08);
}

/* Recommendation Content - Flexible */
.archive-recommendation-content {
  flex: 1;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.archive-recommendation-header h3 {
  font-size: 1.5rem;
  color: var(--deep-green);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  font-weight: var(--font-semibold, 600);
  letter-spacing: -0.02em;
}

.dish-excerpt {
  color: var(--dark-gray, #666);
  line-height: 1.7;
  margin: 0 0 1.25rem 0;
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Recommendation Actions */
.archive-recommendation-actions {
  margin-top: auto;
}

.archive-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--deep-green);
  color: var(--white);
  border-radius: 40px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: var(--font-semibold, 600);
  text-transform: uppercase;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  border: 2px solid var(--deep-green);
  width: fit-content;
}

.archive-view-btn:hover {
  background: var(--soft-gold);
  border-color: var(--soft-gold);
  color: var(--white);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(44, 85, 48, 0.2);
}

.archive-view-btn i {
  width: 16px;
  height: 16px;
}

/* Pagination */
.archive-pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  padding: 0 1rem;
}

.archive-pagination .page-numbers {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.archive-pagination .page-numbers li {
  margin: 0;
}

.archive-pagination .page-numbers a,
.archive-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--deep-green);
  font-weight: var(--font-medium);
  transition: all 0.3s ease;
  border: 2px solid var(--deep-green);
  background: var(--white);
  font-size: 0.875rem;
  min-width: 44px;
}

.archive-pagination .page-numbers a:hover,
.archive-pagination .page-numbers .current {
  background: var(--deep-green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 85, 48, 0.2);
}

.archive-pagination .page-numbers i {
  width: 16px;
  height: 16px;
}

/* No Recommendations Found */
.no-recommendations-found {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--white);
  border-radius: 15px;
  margin: 2rem 0;
}

.no-recommendations-content {
  max-width: 600px;
  margin: 0 auto;
}

.no-recommendations-icon {
  width: 80px;
  height: 80px;
  color: var(--soft-gold);
  margin-bottom: 2rem;
}

.no-recommendations-content h3 {
  font-size: 2rem;
  color: var(--deep-green);
  margin-bottom: 1rem;
  font-weight: var(--font-semibold);
}

.no-recommendations-content p {
  color: var(--dark-gray, #666);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--soft-gold);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: var(--font-semibold);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

.back-home-btn:hover {
  background: var(--deep-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 85, 48, 0.2);
}

.back-home-btn i {
  width: 18px;
  height: 18px;
}

/* Responsive Design */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
  .archive-recommendation-image {
    flex: 0 0 300px;
    width: 300px;
  }

  .archive-recommendation-content {
    padding: 1.75rem 2rem;
  }

  .archive-recommendation-header h3 {
    font-size: 1.35rem;
  }

  .dish-excerpt {
    font-size: 0.9rem;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .archive-hero {
    height: 60vh;
    min-height: 450px;
    margin-bottom: 40px;
  }

  .archive-hero-content {
    padding: 0 1.5rem;
  }

  .archive-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }

  .archive-title {
    margin-bottom: 1rem;
  }

  .archive-subtitle {
    margin-bottom: 2rem;
    font-size: 0.95rem;
  }

  .archive-stats {
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .chef-recommendations-archive {
    padding: 40px 0 60px;
  }

  .chef-recommendations-archive .container {
    padding: 0 1.5rem;
  }

  .recommendations-grid-archive {
    gap: 1.75rem;
  }

  /* Switch to vertical cards on tablets */
  .archive-recommendation-card {
    flex-direction: column;
    min-height: auto;
  }

  .archive-recommendation-image {
    flex: 0 0 auto;
    width: 100%;
    height: 240px;
  }

  .archive-recommendation-content {
    padding: 1.5rem;
  }

  .archive-recommendation-header h3 {
    font-size: 1.25rem;
  }

  .dish-excerpt {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }

  .archive-view-btn {
    width: 100%;
  }

  .archive-view-btn:hover {
    transform: translateY(-2px);
  }
}

/* Mobile */
@media (max-width: 480px) {
  .archive-hero {
    height: 45vh;
    min-height: 350px;
    margin-bottom: 30px;
  }

  .archive-hero-content {
    padding: 0 1rem;
  }

  .archive-badge {
    font-size: 0.65rem;
    padding: 0.35rem 0.75rem;
    gap: 0.3rem;
  }

  .archive-badge i {
    width: 14px;
    height: 14px;
  }

  .archive-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .archive-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }

  .archive-stats {
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .stat-item {
    gap: 0.25rem;
    min-width: 70px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.65rem;
    line-height: 1.2;
  }

  .stat-divider {
    height: 30px;
  }

  .chef-recommendations-archive {
    padding: 30px 0 50px;
  }

  .chef-recommendations-archive .container {
    padding: 0 1rem;
  }

  .recommendations-grid-archive {
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .archive-recommendation-card {
    border-radius: 12px;
  }

  .archive-recommendation-image {
    height: 200px;
  }

  .archive-recommendation-content {
    padding: 1.25rem;
  }

  .archive-recommendation-header h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }

  .dish-excerpt {
    font-size: 0.825rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .archive-view-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
  }

  .archive-pagination {
    margin-top: 2.5rem;
  }

  .archive-pagination .page-numbers a,
  .archive-pagination .page-numbers span {
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
  }

  .no-recommendations-found {
    padding: 3rem 1.5rem;
    margin: 1.5rem 0;
  }

  .no-recommendations-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
  }

  .no-recommendations-content h3 {
    font-size: 1.5rem;
  }

  .no-recommendations-content p {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .back-home-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
  }

  .back-home-btn i {
    width: 16px;
    height: 16px;
  }
}

/* Hero overrides for Chef Menu Archive (reuses global hero carousel) */
.hero.hero--chef-archive {
  height: 100vh;
  min-height: 380px;
  max-height: 700px;
  margin-bottom: 40px;
}

/* Remove zoom animation/effect on images for this page */
.hero--chef-archive .hero-image {
  object-fit: cover;
  object-position: center center;
}

.hero--chef-archive .hero-slide .hero-image,
.hero--chef-archive .hero-slide.swiper-slide-active .hero-image {
  transform: scale(1) !important;
}

/* Optional: tone down gradient if needed */
.hero--chef-archive .hero-gradient-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.45) 100%);
}

/* Slide caption (post title) */
.hero--chef-archive .hero-slide-caption {
  position: absolute;
  left: 2rem;
  bottom: 2.25rem; /* lowered title */
  transform: none;
  z-index: 15; /* above navigation arrows */
  max-width: 70%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
}

.hero--chef-archive .hero-slide-title {
  display: inline-block;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.2px;
  backdrop-filter: blur(6px);
  pointer-events: auto;
}

/* CTA button inside caption */
.hero--chef-archive .hero-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.75rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--soft-gold, #b89a5a);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.25);
  pointer-events: auto;
}

.hero--chef-archive .hero-cta-button .cta-arrow {
  width: 18px;
  height: 18px;
}

/* Controls layout: Title above, Counter + CTA beside */
.hero--chef-archive .hero-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  max-width: 90%;
}

.hero--chef-archive .hero-controls-title {
  width: 100%;
}

.hero--chef-archive .hero-controls-title .hero-slide-title {
  display: inline-block;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.2px;
  backdrop-filter: blur(6px);
  margin: 0;
}

.hero--chef-archive .hero-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.hero--chef-archive .hero-counter {
  display: flex;
  align-items: center;
}

.hero--chef-archive .hero-controls-cta .hero-cta-button {
  padding: 0.6rem 1rem;
  border-radius: 999px;
}

/* Single slide: CTA takes full width */
.hero--chef-archive .hero-controls-cta--single {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero--chef-archive .hero-controls-cta--single .hero-cta-button {
  min-width: 200px;
}

/* Tablet & Mobile Responsive Overrides */
@media (max-width: 768px) {
  .hero.hero--chef-archive {
    height: 55vh;
    min-height: 420px;
    margin-bottom: 32px;
  }
  
  /* Hero Controls - Override global centering, anchor to bottom */
  .hero--chef-archive .hero-controls {
    position: absolute !important;
    left: 1rem !important;
    right: 1rem !important;
    bottom: 1rem !important;
    transform: none !important; /* Override global translateX(-50%) */
    padding: 0 !important;
    z-index: 16;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    max-width: calc(100% - 2rem) !important;
    text-align: center;
  }
  
  .hero--chef-archive .hero-controls-title .hero-slide-title {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }
  
  .hero--chef-archive .hero-controls-row {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    gap: 0.75rem;
  }
  
  .hero--chef-archive .hero-counter {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .hero--chef-archive .hero-controls-cta .hero-cta-button {
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  
  .hero--chef-archive .hero-navigation {
    z-index: 17;
  }
}

/* Mobile: Stack controls vertically for maximum clarity */
@media (max-width: 480px) {
  .hero.hero--chef-archive {
    height: 60vh;
    min-height: 450px;
  }
  
  /* Stack Controls Vertically */
  .hero--chef-archive .hero-controls {
    left: 0.75rem !important;
    right: 0.75rem !important;
    bottom: 0.75rem !important;
    flex-direction: column !important;
    gap: 0.625rem !important;
    align-items: stretch !important;
    max-width: calc(100% - 1.5rem) !important;
  }
  
  .hero--chef-archive .hero-controls-title .hero-slide-title {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    width: 100%;
    text-align: center;
  }
  
  .hero--chef-archive .hero-controls-row {
    flex-direction: column;
    gap: 0.625rem;
  }
  
  .hero--chef-archive .hero-counter {
    justify-content: center;
    padding: 10px 16px;
    width: 100%;
  }
  
  .hero--chef-archive .hero-controls-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .hero--chef-archive .hero-controls-cta .hero-cta-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 16px;
    font-size: 0.75rem;
    text-align: center;
    min-width: fit-content;
  }
  
  .hero--chef-archive .counter-current,
  .hero--chef-archive .counter-total {
    font-size: 14px;
  }
}

/* Menu Filter Styles - Same as Offers Filter */
.menu-filter {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: nowrap;
  padding: 0.75rem 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: fit-content;
}

.menu-filter::-webkit-scrollbar {
  display: none;
}

.menu-filter .filter-btn {
  padding: 1rem 2rem;
  border: 2px solid var(--soft-gold);
  border-radius: 50px;
  background: transparent;
  cursor: pointer;
  font-weight: var(--font-medium);
  font-size: var(--font-body-lg);
  color: var(--deep-green);
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  display: inline-block;
  min-width: fit-content;
  line-height: 1.5;
  text-transform: none !important;
}

.menu-filter .filter-btn.active,
.menu-filter .filter-btn:hover {
  background: var(--soft-gold);
  color: var(--white);
  transform: translateY(-2px);
}

/* Responsive Design for Menu Filter */

@media (max-width: 1010px) {
  .menu-filter {
    justify-content: start;
    gap: 1rem;
    padding: 0.2rem 1rem;
    padding-bottom: 1rem;
    justify-content: flex-start;
    scrollbar-width: thin;
    scrollbar-color: var(--soft-gold) var(--light-gray);
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 760px) {
  .menu-filter {
    gap: 1rem;
    padding: 0.2rem 1rem;
    padding-bottom: 1rem;
    justify-content: flex-start;
    scrollbar-width: thin;
    scrollbar-color: var(--soft-gold) var(--light-gray);
    -webkit-overflow-scrolling: touch;
  }

  .menu-filter::-webkit-scrollbar {
    display: block;
    height: 8px;
  }

  .menu-filter::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 4px;
  }

  .menu-filter::-webkit-scrollbar-thumb {
    background: var(--soft-gold);
    border-radius: 4px;
  }

  .menu-filter::-webkit-scrollbar-thumb:hover {
    background: var(--deep-green);
  }

  .menu-filter .filter-btn {
    padding: 0.8rem 1.5rem;
    font-size: var(--font-body-md, 1rem);
  }
}

@media (max-width: 480px) {
  .menu-filter {
    gap: 0.75rem;
    margin: 1rem 0 1.25rem;
    padding: 0 0.75rem;
    padding-bottom: 0.85rem;
  }

  .menu-filter .filter-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }
}