/* Nutrition Page Template Styles */

/* Page Title and Subtitle */
.vp-doc h1:first-of-type {
  text-align: center;
  margin-bottom: 1rem;
}

.vp-doc h1:first-of-type + p {
  text-align: center;
  font-size: 1.1rem;
  color: var(--vp-c-text-2);
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Banner Section */
.hero-banner {
  border-radius: 8px;
  text-align: center;
  max-width: 100%;
}

/* Trust Element */
.trust-element {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.trust-badge {
  height: 56px;
  max-width: 220px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.trust-badge:hover {
  opacity: 1;
}

/* Download Buttons */
.download-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.store-badge {
  border-radius: 0 !important;
  height: 48px;
  transition: transform 0.2s ease;
}

.store-link:hover .store-badge {
  transform: scale(1.05);
}

/* Promo Banner */
.promo-banner {
  margin: 2rem auto;
  width: 80%;
  max-width: 1200px;
}

.promo-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  transition: transform 0.2s ease;
}

.promo-banner a:hover .promo-image {
  transform: translateY(-2px);
}

/* Apps Grid Styling */
.apps-grid {
  display: block;
  margin: 1.5rem 0;
  line-height: 2.2;
}

.apps-grid > p {
  margin: 0;
  display: inline-block;
}

.apps-grid a {
  color: var(--vp-c-brand-1);
  text-decoration: none;
  transition: all 0.2s ease;
  background-color: var(--vp-c-bg-soft);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  display: inline-block;
  font-weight: 600;
  margin: 0.4rem 0.6rem 0.4rem 0;
}

.apps-grid a:hover {
  background-color: var(--vp-c-brand-1);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Similar Foods section uses testimonials-section, testimonials-gallery, testimonials-container, testimonial-card classes from home.css */

/* Nutrition Grid - Side by Side Layout */
.nutrition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
  align-items: start;
}

.nutrition-table-section {
  display: flex;
  flex-direction: column;
}

.nutrition-chart-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nutrition-chart-section canvas {
  max-width: 100%;
  height: auto !important;
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
  .nutrition-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .promo-banner {
    width: 100%;
  }

  .trust-badge {
    max-height: 56px !important;
  }

  .download-buttons {
    flex-direction: row;
    gap: 0.5rem;
  }

  .apps-grid a {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    margin: 0.3rem 0.4rem 0.3rem 0;
  }

}
