/* ============================================
   WEEKLY MENU STYLES - Modern Red Accent
   ============================================ */

:root {
  --primary-red: #c63629;
  --primary-red-hover: #a82d22;
  --primary-red-light: rgba(198, 54, 41, 0.1);
  --primary-red-medium: rgba(198, 54, 41, 0.15);
  --text-dark: #1a1a1a;
  --text-medium: #4a4a4a;
  --text-light: #666;
  --border-light: #e8e8e8;
  --bg-light: #f9f9f9;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

/* Main Container */
.weekly-menu {
  padding: 80px 0;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

@media (max-width: 768px) {
  .weekly-menu {
    padding: 50px 0;
  }
}

.weekly-menu .container {
  max-width: var(--theme-normal-container-max-width);
  margin: 0 auto;
  padding: 0 !important;
}

/* Header Section */
.weekly-menu__header {
  text-align: center;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.weekly-menu__main-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(
    135deg,
    var(--text-dark) 0%,
    var(--primary-red) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.todays-menu__main-title {
  font-size: 36px;
  font-weight: 700;
}
@media (max-width: 1024px) {
  .todays-menu__main-title {
    font-size: 24px;
  }
}
@media (max-width: 768px) {
  .weekly-menu__main-title {
    font-size: 18px;
  }

  .todays-menu__main-title {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .weekly-menu__main-title {
    font-size: 28px;
  }
}

.weekly-menu__subtitle {
  font-size: 18px;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 400;
}

@media (max-width: 768px) {
  .weekly-menu__subtitle {
    font-size: 16px;
  }
}

/* Menu Day Card */
.menu-day {
  margin-bottom: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  border: 1px solid var(--border-light);
}

/* Stagger animation */
.menu-day:nth-child(2) {
  animation-delay: 0.1s;
}
.menu-day:nth-child(3) {
  animation-delay: 0.2s;
}
.menu-day:nth-child(4) {
  animation-delay: 0.3s;
}
.menu-day:nth-child(5) {
  animation-delay: 0.4s;
}
.menu-day:nth-child(6) {
  animation-delay: 0.5s;
}
.menu-day:nth-child(7) {
  animation-delay: 0.6s;
}
.menu-day:nth-child(8) {
  animation-delay: 0.7s;
}

.menu-day:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-red);
}

.menu-day--active {
  border: 2px solid var(--primary-red);
  box-shadow: 0 8px 32px rgba(198, 54, 41, 0.2);
}

/* Banner Section */
.menu-day__banner {
  position: relative;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .menu-day__banner {
    min-height: 280px;
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .menu-day__banner {
    min-height: 240px;
    padding: 10px;
  }
}

/* Modern Gradient Overlay */
.menu-day__banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 26, 0) 0%,
    rgba(26, 26, 26, 0.3) 40%,
    rgba(26, 26, 26, 0.85) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Status Badges */
.menu-day__status-badges {
  position: absolute;
  top: 24px;
  left: 40px;
  display: flex;
  gap: 12px;
  z-index: 10;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .menu-day__status-badges {
    top: 16px;
    left: 16px;
    gap: 8px;
  }
}

.menu-day__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-xl);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  animation: slideInDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}
.menu-day__badge--soon {
  background-color: #708238;
  color: white;
}
@media (max-width: 560px) {
  .menu-day__badge {
    padding: 8px 14px;
    font-size: 11px;
    gap: 6px;
  }
}

.menu-day__badge--active {
  background: linear-gradient(135deg, var(--primary-red) 0%, #d94436 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(198, 54, 41, 0.4);
}

.menu-day__badge--today {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: #fff;
}

.menu-day__badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Date & Time Label */
.menu-day__datetime-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.menu-day__datetime-label:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.menu-day__datetime-icon {
  flex-shrink: 0;
  opacity: 0.9;
}

/* Banner Content */
.menu-day__banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-top: 55px;
}

@media (max-width: 768px) {
  .menu-day__banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.menu-day__banner-inner {
  flex: 1;
}

.menu-day__day-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px 0;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .menu-day__day-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .menu-day__day-title {
    font-size: 24px;
  }
}

.menu-day__day-name {
  color: var(--primary-red);
  text-shadow: 0 2px 12px rgba(198, 54, 41, 0.6);
}

.menu-day__separator {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.menu-day__description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  line-height: 1.7;
  max-width: 600px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  font-weight: 400;
}

@media (max-width: 768px) {
  .menu-day__description {
    font-size: 15px;
  }
}

/* Price Badge - Modern Design */
.menu-day__price-badge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 135px;
  height: 135px;
  background: linear-gradient(135deg, var(--primary-red) 0%, #d94436 100%);
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  color: #fff;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(198, 54, 41, 0.4);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .menu-day__price-badge {
    min-width: 90px;
    height: 90px;
    align-self: flex-end;
  }
}

.menu-day__price-badge:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 12px 32px rgba(198, 54, 41, 0.5);
}

.menu-day__price-badge::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(198, 54, 41, 0.3) 0%,
    transparent 70%
  );
  animation: priceGlow 3s ease-in-out infinite;
  z-index: -1;
}

.menu-day__price-label {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.95;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.menu-day__price-value {
  font-size: 21px;
  font-weight: 900;
  margin-top: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .menu-day__price-label {
    font-size: 10px;
  }
  .menu-day__price-value {
    font-size: 18px;
  }
}

/* Meals Section */
.menu-day__meals {
  padding: 40px;
  background: #fff;
}

@media (max-width: 768px) {
  .menu-day__meals {
    padding: 30px 24px;
  }
}

@media (max-width: 480px) {
  .menu-day__meals {
    padding: 10px;
  }
}

.menu-day__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 24px;
}

@media (max-width: 768px) {
  .menu-day__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Meal Card - Modern Design */
.meal-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  border: 1.5px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  animation: fadeInScale 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  position: relative;
  overflow: hidden;
}

/* Stagger meal cards */
.meal-card:nth-child(1) {
  animation-delay: 0.1s;
}
.meal-card:nth-child(2) {
  animation-delay: 0.2s;
}
.meal-card:nth-child(3) {
  animation-delay: 0.3s;
}
.meal-card:nth-child(4) {
  animation-delay: 0.4s;
}
.meal-card:nth-child(5) {
  animation-delay: 0.5s;
}

.meal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--primary-red) 0%, #d94436 100%);
  transition: height 0.3s ease;
}

.meal-card:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: var(--shadow-md);
  border-color: var(--primary-red);
}

.meal-card:hover::before {
  height: 100%;
}

.meal-card__header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
  justify-content: space-between;
}

.meal-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  max-width: 75%;
  transition: color 0.3s ease;
  letter-spacing: -0.01em;
}

.meal-card:hover .meal-card__title {
  color: var(--primary-red);
}

.meal-card__dots {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    #ddd 0,
    #ddd 4px,
    transparent 4px,
    transparent 8px
  );
  margin: 0 8px;
  align-self: center;
  opacity: 0.6;
}

.meal-card__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-red);
  flex-shrink: 0;
  letter-spacing: -0.01em;
}

.meal-card__description {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
}

/* Empty State */
.weekly-menu__empty {
  text-align: center;
  padding: 100px 24px;
  background: linear-gradient(135deg, #c4312e 0%, #e74c3c 50%, #ff6b6b 100%);
  border-radius: var(--radius-lg);
  margin: 40px 0;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  border: 2px dashed var(--border-light);
}

.weekly-menu__empty-icon {
  font-size: 72px;
  margin-bottom: 24px;
  animation: float 3s ease-in-out infinite;
  filter: grayscale(0.3);
}

.weekly-menu__empty-text {
  font-size: 18px;
  color: #fff;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 400;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

@keyframes priceGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.2);
    opacity: 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* ============================================
   ACCESSIBILITY & PERFORMANCE
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states for accessibility */
.meal-card:focus-within {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
}

.menu-day__badge:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .weekly-menu__status-badges,
  .menu-day__price-badge {
    display: none;
  }

  .menu-day {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }
}

@media (max-width: 768px) {
  .menu-day__status-badges {
    top: 10px;
    z-index: 2;
  }
  .menu-day__price-badge {
    display: none;
  }
  .meal-card__title {
    max-width: 100%;
  }
}

.todays-menu__subtitle {
  text-align: center;
  font-size: 15px;
  max-width: 660px;
  margin: 0 auto;
  margin-bottom: 15px;
}

.todays-menu__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, #c4312e 0%, #e74c3c 50%, #ff6b6b 100%);
  border-radius: 16px;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(196, 49, 46, 0.3);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.todays-menu__empty-icon {
  font-size: 100px;
  margin-bottom: 24px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) rotate(-3deg);
  }
  75% {
    transform: translateY(-8px) rotate(3deg);
  }
}

.todays-menu__empty-text {
  font-size: 20px;
  color: #ffffff;
  font-weight: 600;
  margin: 0;
  max-width: 450px;
  line-height: 1.6;
  animation: fadeInUp 1s ease-out 0.4s both;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .weekly-menu__empty {
    padding: 50px 5px;
    margin: 20px 0;
  }
  .menu-day__day-title {
    font-size: 18px;
  }
  .meal-card__title {
    font-size: 16px;
  }
}
