/* Created dedicated CSS file for uniform dish card styling */
.dish-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.dish-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.dish-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.dish-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.dish-card-content {
  padding: 20px;
}

.dish-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.dish-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  line-height: 1.3;
  flex: 1;
  margin-right: 12px;
}

.dish-card-price {
  font-size: 20px;
  font-weight: 700;
  color: #e67e22;
  white-space: nowrap;
}

.dish-card-description {
  color: #7f8c8d;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dish-card-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dish-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-vegetarian {
  background: #d5f4e6;
  color: #27ae60;
}

.badge-spicy {
  background: #ffeaa7;
  color: #e17055;
}

.badge-popular {
  background: #fd79a8;
  color: #fff;
}

/* Category Section Styling */
.menu-category-section {
  margin-bottom: 48px;
}

.category-header {
  text-align: center;
  margin-bottom: 32px;
}

.category-title {
  font-size: 32px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
  text-transform: capitalize;
}

.category-subtitle {
  font-size: 16px;
  color: #7f8c8d;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dish-cards-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
  }

  .dish-card-content {
    padding: 16px;
  }

  .dish-card-title {
    font-size: 16px;
  }

  .dish-card-price {
    font-size: 18px;
  }

  .category-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .dish-cards-container {
    grid-template-columns: 1fr;
  }

  .category-title {
    font-size: 24px;
  }
}

/* iPhone-specific fixes for proper image and layout rendering */
/* iPhone Safari specific fixes */
@supports (-webkit-touch-callout: none) {
  .dish-card {
    -webkit-font-smoothing: antialiased;
    -webkit-backface-visibility: hidden;
  }

  .dish-card-image {
    -webkit-font-smoothing: antialiased;
    -webkit-backface-visibility: hidden;
  }

  img {
    max-width: 100%;
    height: auto;
    -webkit-user-select: none;
  }
}

/* iPhone XS/11/12/13/14 viewport fix */
@media (max-width: 428px) {
  .menu-holder {
    width: 100%;
    overflow-x: hidden;
  }

  .dish-card {
    width: 100%;
  }

  .dish-card-image {
    width: 100%;
    height: auto;
    min-height: 180px;
    max-height: 250px;
    object-fit: cover;
    display: block;
  }

  .menu-list {
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .dish-card-content {
    padding: 12px 16px;
  }

  .dish-card-title {
    font-size: 15px;
  }

  .dish-card-price {
    font-size: 16px;
  }
}

/* iPhone 6/7/8 and smaller */
@media (max-width: 375px) {
  .dish-card-image {
    height: 160px;
  }

  .dish-card-content {
    padding: 10px 12px;
  }

  .dish-card-title {
    font-size: 14px;
  }

  .dish-card-description {
    font-size: 13px;
  }
}

/* Fix for images with aspect ratio issues */
.dish-card-image {
  aspect-ratio: 16 / 10;
  width: 100%;
  height: auto;
}

/* Ensure proper rendering on iOS */
@media (hover: none) and (pointer: coarse) {
  .dish-card {
    -webkit-appearance: none;
  }

  .dish-card-image {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Navratri Fasting Food Section Styling */
.fasting-food-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #faf8f3 0%, #f5f0e8 100%);
  margin: 40px 0;
}

.fasting-header {
  text-align: center;
  margin-bottom: 50px;
  animation: fadeInDown 0.8s ease-out;
}

.fasting-header h2 {
  font-size: 42px;
  font-weight: 700;
  color: #d4714f;
  margin-bottom: 16px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.fasting-header p {
  font-size: 18px;
  color: #6b5b56;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-style: italic;
}

.fasting-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  padding: 20px 0;
}

.fasting-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(212, 113, 79, 0.1);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #f0e6dc;
  position: relative;
}

.fasting-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(212, 113, 79, 0.2);
  border-color: #d4714f;
}

.fasting-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8d9ce 0%, #d5c5b8 100%);
  position: relative;
}

.fasting-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.fasting-card:hover .fasting-card-image img {
  transform: scale(1.08);
}

.fasting-card-content {
  padding: 24px 20px;
  text-align: center;
}

.fasting-card-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.fasting-card-content p {
  font-size: 14px;
  color: #7f8c8d;
  margin: 0;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .fasting-food-section {
    padding: 40px 15px;
    margin: 30px 0;
  }

  .fasting-header h2 {
    font-size: 32px;
  }

  .fasting-header p {
    font-size: 16px;
  }

  .fasting-cards-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .fasting-card-image {
    height: 200px;
  }

  .fasting-card-content {
    padding: 18px 16px;
  }

  .fasting-card-content h3 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .fasting-cards-container {
    grid-template-columns: 1fr;
  }

  .fasting-header h2 {
    font-size: 24px;
  }

  .fasting-header p {
    font-size: 14px;
  }

  .fasting-card-image {
    height: 180px;
  }

  .fasting-card-content {
    padding: 16px 12px;
  }

  .fasting-card-content h3 {
    font-size: 16px;
  }

  .fasting-card-content p {
    font-size: 13px;
  }
}

/* iPhone-specific fixes for fasting cards */
@supports (-webkit-touch-callout: none) {
  .fasting-card {
    -webkit-font-smoothing: antialiased;
    -webkit-backface-visibility: hidden;
  }

  .fasting-card-image img {
    -webkit-user-select: none;
    -webkit-touch-callout: none;
  }
}

@media (max-width: 428px) {
  .fasting-card-image {
    height: 160px;
  }

  .fasting-card-content {
    padding: 14px 12px;
  }
}

@media (max-width: 375px) {
  .fasting-card-image {
    height: 150px;
  }

  .fasting-card-content h3 {
    font-size: 15px;
  }

  .fasting-card-content p {
    font-size: 12px;
  }
}

/* Smooth animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
