/* Base styles */
:root {
  --pinch-primary: #FF6B6B;
  --pinch-secondary: #4ECDC4;
  --pinch-dark: #071D25; /* Updated to match Dark 1 color from screenshot */
  --pinch-light: #F7FFF7;
  --pinch-accent: #FF9F1C;
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-title: 'JetBrains Mono', monospace;
  --brand-yellow: #F0F05D;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
      Helvetica, Arial, sans-serif;
  background-color: #f7fafc; /* light2 */
  color: #071D25; /* dark1 */
  padding-bottom: 80px; /* Space for the fixed banner */
  line-height: 1.5;
}

a {
  color: #6E44FF; /* info1 for links */
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: 100%;
  padding: 0 16px;
  margin: 0 auto;
}

/* Header styles */
.header {
  text-align: left;
  margin-bottom: 0;
  padding: 15px 0 10px;
  background-color: white;
}

.list-title, .meal-title {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 800;
  color: #000000;
  margin-bottom: 2px;
  letter-spacing: -0.56px;
}

.price-container {
  margin-top: 0;
  text-align: right;
  float: right;
  position: relative;
  top: -40px;
}

.total-price {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 28px;
  color: #000000;
}

.items-count {
  font-size: 14px;
  color: rgba(60, 60, 67, 0.6);
  margin-top: 0;
  clear: left;
}

.meal-image-container {
  margin-top: 0;
  width: 100%;
  overflow: hidden;
}

.meal-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

/* Share banner */
.share-banner {
  background-color: var(--pinch-dark);
  color: white;
  text-align: center;
  padding: 8px 10px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 0;
}

/* List view styles */
.retailer-group {
  margin-bottom: 0;
}

.retailer-name {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 0;
  padding: 8px 16px;
  color: #555;
}

.items-list {
  list-style: none;
}

.item-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 16px;
  margin-bottom: 1px;
  background-color: white;
  position: relative;
  height: 110px;
}

.item-info {
  flex: 1;
  padding-left: 36px; /* Space for logo overlay */
}

.item-name {
  font-size: 15px;
  font-weight: 400;
  color: #000000;
  margin-bottom: 4px;
  max-width: 85%;
  line-height: 1.2;
}

.item-quantity {
  font-size: 12px;
  color: #888;
  font-weight: 400;
  margin-top: 6px;
}

.item-price {
  font-family: var(--font-title);
  font-weight: 600;
  color: #000000;
  font-size: 16px;
  display: flex;
  align-items: center;
  margin-bottom: 3px;
}

.item-special-tag {
  font-size: 12px;
  font-weight: 500;
  background-color: rgba(248, 248, 76, 1.0);
  padding: 2px 4px;
  margin-left: 8px;
  border-radius: 4px;
  color: rgba(0, 0, 0, 0.8);
  text-decoration: line-through;
}

.item-quantity-counter {
  background-color: #EFF3FB;
  border-radius: 8px;
  width: 36px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6E44FF;
  font-weight: 500;
  font-size: 14px;
  position: absolute;
  right: 16px;
  bottom: 16px;
}

.logo-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 24px;
  height: 24px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Meal view styles */
.meal-header {
  position: relative;
}

.meal-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  color: white;
  padding: 10px 15px;
}

.meal-meta {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  background-color: white;
  margin-bottom: 1px;
}

.meal-meta-item {
  text-align: left;
}

.meal-meta-label {
  font-size: 12px;
  color: rgba(60, 60, 67, 0.6);
}

.meal-meta-value {
  font-size: 16px;
  font-weight: 500;
  color: #071D25;
}

.source-button {
  background-color: #F7F7F7;
  border-radius: 5px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  text-decoration: none;
  color: #6E44FF;
  font-size: 14px;
}

.source-icon {
  margin-right: 5px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  margin: 16px 0 6px;
  padding: 0 0 6px 0;
  color: #000000;
}

.ingredients-section, .steps-section {
  margin-bottom: 1px;
}

.ingredients-list {
  list-style: none;
  margin-bottom: 0;
}

.ingredient-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ingredient-item:last-child {
  border-bottom: none;
}

.ingredient-details {
  flex: 1;
}

.ingredient-name {
  font-size: 16px;
  font-weight: 500;
  color: #000000;
}

.ingredient-quantity {
  font-size: 14px;
  color: #888;
}

.ingredient-controls {
  display: flex;
  align-items: center;
}

.ingredient-button {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #EFF3FB;
  border-radius: 50%;
  margin: 0 6px;
}

.steps-list {
  list-style: none;
}

.step-item {
  background-color: white;
  margin-bottom: 1px;
  padding: 12px 0;
}

.step-number {
  color: #6E44FF;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.step-text {
  color: #000000;
  font-size: 16px;
  margin-bottom: 8px;
}

.step-bullet {
  font-size: 14px;
  margin-bottom: 3px;
  display: flex;
  align-items: flex-start;
  color: #888;
}

.bullet-point {
  margin-right: 8px;
}

/* Not found view styles */
.logo-container {
  text-align: center;
  margin-bottom: 24px;
}

.pinch-logo {
  max-width: 150px;
  height: auto;
}

.not-found-message {
  text-align: center;
  background-color: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.not-found-message h1 {
  color: var(--pinch-primary);
  margin-bottom: 12px;
  font-family: var(--font-title);
}

.not-found-message p {
  margin-bottom: 12px;
  color: #555;
}

/* Footer and disclaimer */
.disclaimer {
  text-align: center;
  margin-top: 16px;
  font-size: 10px;
  color: #888;
  padding: 8px 16px;
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
}

/* App download banner */
.app-banner {
  position: fixed;
  bottom: 46px; /* Leave space for browser footer */
  left: 0;
  right: 0;
  background-color: var(--pinch-dark);
  padding: 8px 12px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-logo {
  width: 36px;
  height: 36px;
  margin-right: 10px;
  background-color: var(--brand-yellow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-logo img {
  width: 28px;
  height: 28px;
}

.app-text {
  flex-grow: 1;
  color: white;
}

.app-text p:first-child {
  font-weight: bold;
  margin-bottom: 0;
  line-height: 1.2;
}

.app-text p:last-child {
  font-size: 12px;
  line-height: 1.2;
}

.download-btn {
  background-color: var(--brand-yellow);
  color: var(--pinch-dark);
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
}

/* Browser footer */
.browser-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  z-index: 10;
  height: 46px;
}

.browser-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.browser-button {
  color: #007AFF;
  font-size: 20px;
}

.browser-url {
  font-size: 14px;
  color: #888;
  flex: 1;
  text-align: center;
}

.browser-icon {
  color: #888;
  font-size: 18px;
  margin: 0 15px;
}

/* Media Queries */
@media (min-width: 768px) {
  .container {
    max-width: 640px;
    padding: 0 16px;
  }
  
  .list-title, .meal-title {
    font-size: 32px;
  }
  
  .meal-image-container {
    border-radius: 0;
  }
  
  .item-card {
    padding: 16px;
  }
}

/* Add any other global styles or specific styles for elements not covered by inline CSS */
.container h1, .header-section h1 { /* Target specific h1s */
  font-family: "JetBrains Mono", monospace; /* If you want JetBrains for titles */
  font-weight: 800; /* ExtraBold or Black for JetBrains Mono */
  kerning: -1.5px; /* Example kerning */
} 