/* Recipe Detail Page Styles - Following landing.css patterns */

/* Recipe Detail Page Container */
.recipe-detail-page {
  background: var(--bg);
  color: var(--ink);
}

/* Recipe Header */
.recipe-header {
  padding: clamp(32px, 5vh, 56px) 0 clamp(16px, 2vh, 24px);
  text-align: left;
}

.recipe-header h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--brand-ink);
  font-weight: 700;
}

.title-divider {
  margin: clamp(16px, 2vh, 24px) 0 0;
  border: none;
  border-top: 2px solid color-mix(in oklab, var(--brand), white 70%);
  opacity: 0.5;
}

/* Hero Media Block */
.recipe-hero {
  padding: clamp(24px, 4vh, 40px) 0;
  height: auto;
}

.hero-media {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  /* border: 1px solid color-mix(in oklab, var(--brand), white 80%); */
}

.image-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: color-mix(in oklab, var(--brand-tint) 10%, var(--bg));
}

.carousel-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel-image.active {
  opacity: 1;
}

.carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  /* border: 1px solid color-mix(in oklab, var(--brand), white 75%); */
  border: 0;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
  color: #242424;
}

.carousel-control:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.carousel-control.prev {
  left: 16px;
}

.carousel-control.next {
  right: 16px;
}

.favorite-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid color-mix(in oklab, var(--brand), white 75%);
  box-shadow: var(--shadow);
  /* display: grid; */
  display: none;
  place-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--muted);
}

.favorite-btn:hover,
.favorite-btn.active {
  background: var(--brand);
  color: #fff;
  transform: scale(1.05);
}

.favorite-btn.active svg {
  fill: currentColor;
}

/* Quick Actions */
.quick-actions {
  padding: clamp(24px, 4vh, 40px) 0;
  border-bottom: 1px solid color-mix(in oklab, var(--brand), white 88%);
}

.action-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius);
  /* background: color-mix(in oklab, var(--brand-tint) 8%, var(--bg)); */
  /* border: 1px solid color-mix(in oklab, var(--brand), white 82%); */
  color: #242424;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.action-btn:hover {
  /* background: color-mix(in oklab, var(--brand-tint) 15%, var(--bg)); */
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.action-btn svg {
  color: #242424;
}

/* Recipe Sections */
.recipe-section {
  padding: clamp(40px, 6vh, 64px) 0;
  border-bottom: 1px solid color-mix(in oklab, var(--brand), white 88%);
}

.recipe-section:last-of-type {
  border-bottom: none;
}

.recipe-section h2 {
  font-size: clamp(24px, 3vw, 36px);
  color: var(--brand);
  margin: 0 0 clamp(20px, 3vh, 32px);
  font-weight: 700;
}

.subsection-title {
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--brand-ink);
  margin: clamp(24px, 3vh, 32px) 0 clamp(16px, 2vh, 20px);
  font-weight: 600;
}

.recipe-section p {
  color: var(--muted);
  line-height: 1.7;
  /* max-width: 75ch; */
  margin: 0 0 16px;
}

.recipe-section p:last-child {
  margin-bottom: 0;
}

/* Nutrition Grid */
.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: clamp(24px, 3vh, 32px);
}

.nutrition-card {
  background: #fff;
  border: 1px solid color-mix(in oklab, var(--brand), white 82%);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nutrition-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nutrition-value {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--brand);
  font-weight: 700;
}

/* Accordion */
.accordion-item {
  margin-top: clamp(24px, 3vh, 32px);
  border: 1px solid color-mix(in oklab, var(--brand), white 82%);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: color-mix(in oklab, var(--brand-tint) 5%, var(--bg));
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-ink);
  transition: background 0.25s ease;
}

.accordion-header:hover {
  background: color-mix(in oklab, var(--brand-tint) 10%, var(--bg));
}

.accordion-header .chevron {
  transition: transform 0.3s ease;
  color: var(--brand);
}

.accordion-header.expanded .chevron {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content[aria-hidden="false"] {
  max-height: 1000px;
}

.nutrition-facts-table {
  width: 100%;
  border-collapse: collapse;
  padding: 20px;
}

.nutrition-facts-table td {
  padding: 12px 20px;
  border-bottom: 1px solid color-mix(in oklab, var(--brand), white 90%);
  color: var(--ink);
}

.nutrition-facts-table td.value {
  font-weight: 600;
  text-align: right;
}

.nutrition-facts-table td.daily-value {
  color: var(--muted);
  text-align: right;
  font-size: 14px;
}

.nutrition-facts-table tr:last-child td {
  border-bottom: none;
}

/* Ingredients List */
.ingredients-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.ingredient-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ingredient-bullet {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 8px;
}

.ingredient-content {
  flex: 1;
}

.ingredient-main {
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 4px;
}

.ingredient-main strong {
  font-weight: 700;
  color: var(--brand-ink);
}

.ingredient-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Instructions */
.instruction-group {
  margin-bottom: clamp(32px, 4vh, 48px);
}

.instruction-group:last-child {
  margin-bottom: 0;
}

.instruction-group-title {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--brand-ink);
  font-weight: 700;
  margin: 0 0 16px;
}

.instruction-steps {
  padding-left: 24px;
  margin: 0;
  display: grid;
  gap: 16px;
}

.instruction-step {
  color: var(--ink);
  line-height: 1.7;
  padding-left: 8px;
}

.instruction-step::marker {
  color: var(--brand);
  font-weight: 700;
}

/* Plating List */
.plating-list {
  padding-left: 24px;
  margin: 0;
  display: grid;
  gap: 12px;
}

.plating-list li {
  color: var(--ink);
  line-height: 1.7;
  padding-left: 8px;
}

.plating-list li::marker {
  color: var(--brand);
  font-weight: 700;
}

/* Allergies Line */
.allergies-line {
  color: var(--muted);
  font-size: 15px;
  padding: 16px 20px;
  background: color-mix(in oklab, var(--secondary) 10%, var(--bg));
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius);
}

.allergies-line strong {
  color: var(--ink);
}

/* Upload Card */
.upload-card {
  max-width: 480px;
  margin: 0 auto;
  border: 2px dashed rgb(224, 224, 224);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  /* background: color-mix(in oklab, var(--brand-tint) 3%, var(--bg)); */
}

.upload-card:hover {
  border-color: var(--brand);
  background: color-mix(in oklab, var(--brand-tint) 8%, var(--bg));
}

.upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.upload-icon {
  color: var(--brand);
  opacity: 0.7;
}

.upload-content p {
  color: var(--muted);
  font-weight: 600;
  margin: 0;
}

.upload-preview {
  position: relative;
}

.upload-preview img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.replace-btn {
  margin-top: 16px;
  padding: 10px 20px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.replace-btn:hover {
  background: var(--hover);
  transform: translateY(-2px);
}

/* Recipe Footer */
.recipe-footer {
  padding: clamp(40px, 6vh, 64px) 0;
  background: color-mix(in oklab, var(--brand-tint) 3%, var(--bg));
  border-top: 1px solid color-mix(in oklab, var(--brand), white 88%);
}

.disclaimer {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
  max-width: 85ch;
  margin: 0 auto;
}

/* Responsive Design */
@media (min-width: 768px) {
  .nutrition-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .action-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .action-btn {
    padding: 12px;
    font-size: 13px;
  }
  
  .carousel-control {
    width: 40px;
    height: 40px;
  }
  
  .carousel-control.prev {
    left: 8px;
  }
  
  .carousel-control.next {
    right: 8px;
  }
  
  .favorite-btn {
    width: 40px;
    height: 40px;
    top: 8px;
    right: 8px;
  }
}

@media (max-width: 480px) {
  .recipe-header h1 {
    font-size: 28px;
  }
  
  .action-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .action-btn {
    padding: 10px 8px;
    font-size: 12px;
    gap: 6px;
  }
  
  .action-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .nutrition-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .nutrition-card {
    padding: 16px;
  }
  
  .upload-card {
    padding: 32px 20px;
  }
}

/* Gear Modal Styles */
.gear-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.gear-modal.active {
  display: flex;
}

.gear-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

.gear-modal-dialog {
  position: relative;
  z-index: 1001;
  width: min(680px, 92vw);
  max-height: 85vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Modal Header */
.gear-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid color-mix(in oklab, var(--brand), white 88%);
}

.gear-modal-header h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 700;
  color: var(--brand);
}

.gear-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--brand), white 80%);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--muted);
}

.gear-modal-close:hover {
  background: color-mix(in oklab, var(--brand), white 92%);
  color: var(--brand);
  transform: scale(1.05);
}

/* Tab Bar */
.gear-modal-tabs {
  display: flex;
  border-bottom: 1px solid color-mix(in oklab, var(--brand), white 88%);
  background: color-mix(in oklab, var(--brand-tint) 3%, var(--bg));
}

.gear-tab {
  flex: 1;
  padding: 16px 20px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
}

.gear-tab:hover {
  color: var(--brand-ink);
  background: color-mix(in oklab, var(--brand-tint) 8%, var(--bg));
}

.gear-tab.active {
  color: var(--brand-ink);
  font-weight: 700;
}

.gear-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand);
  border-radius: 3px 3px 0 0;
}

/* Content Area */
.gear-modal-content {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.gear-tab-panel {
  display: none;
}

.gear-tab-panel.active {
  display: block;
}

.gear-list-container {
  padding: 8px 0;
}

/* Gear List */
.gear-list {
  list-style: none;
  padding: 0;
  margin: 0;
  grid-template-columns: auto;
  gap: 0;
}

.gear-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  border-bottom: 1px solid color-mix(in oklab, var(--brand), white 90%);
  transition: background 0.2s ease;
}

.gear-list-item:hover {
  background: color-mix(in oklab, var(--brand-tint) 5%, var(--bg));
}

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

.gear-item-name {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
}

.gear-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.gear-view-btn:hover {
  background: var(--hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(90, 154, 111, 0.3);
}

.gear-view-btn svg {
  flex-shrink: 0;
}

/* Empty State */
.gear-empty-state {
  padding: 60px 28px;
  text-align: center;
}

.gear-empty-state p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

/* Error State */
.gear-error-state {
  padding: 60px 28px;
  text-align: center;
}

.gear-error-state p {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 20px;
}

.gear-retry-btn {
  padding: 10px 20px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.gear-retry-btn:hover {
  background: var(--hover);
  transform: translateY(-2px);
}

/* Loading Skeleton */
.gear-list-item.skeleton {
  pointer-events: none;
}

.skeleton-text {
  height: 20px;
  background: linear-gradient(
    90deg,
    color-mix(in oklab, var(--brand), white 90%) 25%,
    color-mix(in oklab, var(--brand), white 85%) 50%,
    color-mix(in oklab, var(--brand), white 90%) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
  width: 70%;
}

.skeleton-button {
  height: 38px;
  width: 80px;
  background: linear-gradient(
    90deg,
    color-mix(in oklab, var(--brand), white 90%) 25%,
    color-mix(in oklab, var(--brand), white 85%) 50%,
    color-mix(in oklab, var(--brand), white 90%) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Modal Footer */
.gear-modal-footer {
  padding: 20px 28px;
  border-top: 1px solid color-mix(in oklab, var(--brand), white 88%);
  background: color-mix(in oklab, var(--brand-tint) 3%, var(--bg));
}

.gear-modal-footer p {
  margin: 0;
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .gear-modal-dialog {
    width: 95vw;
    max-height: 90vh;
  }
  
  .gear-modal-header {
    padding: 20px 20px;
  }
  
  .gear-modal-header h2 {
    font-size: 22px;
  }
  
  .gear-tab {
    padding: 14px 16px;
    font-size: 14px;
  }
  
  .gear-list-item {
    padding: 16px 20px;
    gap: 16px;
  }
  
  .gear-item-name {
    font-size: 15px;
  }
  
  .gear-view-btn {
    padding: 9px 14px;
    font-size: 13px;
  }
  
  .gear-modal-footer {
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .gear-modal-dialog {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .gear-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .gear-view-btn {
    width: 100%;
    justify-content: center;
  }
}

/* App Modal Styles */
.app-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.app-modal.active {
  display: flex;
}

.app-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

.app-modal-dialog {
  position: relative;
  z-index: 1001;
  width: min(920px, 95vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Modal Header */
.app-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid color-mix(in oklab, var(--brand), white 88%);
}

.app-modal-branding {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-icon {
  flex-shrink: 0;
}

.app-branding-text h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.2;
}

.app-tagline {
  margin: -12px 0 0;
  padding-left: 22px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.app-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--brand), white 80%);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--muted);
  flex-shrink: 0;
}

.app-modal-close:hover {
  background: color-mix(in oklab, var(--brand), white 92%);
  color: var(--brand);
  transform: scale(1.05);
}

/* Modal Body - 2 Column Layout */
.app-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 32px;
  overflow-y: auto;
}

/* Left Column */
.app-modal-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.benefit-pill {
  display: inline-block;
  padding: 8px 16px;
  background: color-mix(in oklab, var(--brand) 15%, white);
  color: var(--brand);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  align-self: flex-start;
}

.app-modal-headline {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.2;
  color: var(--brand-ink);
  font-weight: 700;
  margin: 0;
}

.app-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink);
  line-height: 1.6;
}

.app-benefits li svg {
  flex-shrink: 0;
  color: var(--brand);
  margin-top: 2px;
}

.app-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.app-cta-primary {
  display: inline-block;
  padding: 16px 32px;
  background: var(--brand);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(90, 154, 111, 0.3);
}

.app-cta-primary:hover {
  background: var(--hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(90, 154, 111, 0.4);
}

.app-cta-secondary {
  display: inline-block;
  padding: 12px 24px;
  background: transparent;
  color: var(--brand);
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  transition: all 0.25s ease;
}

.app-cta-secondary:hover {
  background: color-mix(in oklab, var(--brand) 8%, white);
}

.app-reassurance {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.app-store-badges {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.app-store-badges a {
  display: block;
  transition: transform 0.25s ease;
}

.app-store-badges a:hover {
  transform: translateY(-2px);
}

.app-store-badges img {
  display: block;
  height: 40px;
  width: auto;
}

/* Right Column */
.app-modal-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.app-screenshot {
  width: 100%;
  max-width: 280px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  /* border: 1px solid color-mix(in oklab, var(--brand), white 85%); */
}

.app-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.app-qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: color-mix(in oklab, var(--brand) 5%, white);
  border-radius: 12px;
}

.app-qr-code {
  width: 120px;
  height: 120px;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.app-qr-code img {
  width: 100%;
  height: 100%;
  display: block;
}

.app-qr-text {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  max-width: 200px;
  line-height: 1.4;
}

/* Mobile Responsive - Bottom Sheet */
@media (max-width: 768px) {
  .app-modal-dialog {
    width: 100vw;
    max-height: 95vh;
    border-radius: 20px 20px 0 0;
    align-self: flex-end;
  }
  
  .app-modal-body {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px;
  }
  
  .app-modal-header {
    padding: 20px 24px;
  }
  
  .app-branding-text h2 {
    font-size: 20px;
  }
  
  /* Mobile: Screenshot first, then content */
  .app-modal-left {
    order: 2;
  }
  
  .app-modal-right {
    order: 1;
  }
  
  .app-screenshot {
    max-width: 220px;
  }
  
  /* Hide QR code on mobile */
  .app-qr-block {
    display: none;
  }
  
  /* Hide store badges on mobile, keep CTA clean */
  .app-store-badges {
    display: none;
  }
  
  .app-cta-primary {
    font-size: 18px;
    padding: 18px 32px;
  }
  
  .app-modal-headline {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .app-modal-dialog {
    max-height: 100vh;
    border-radius: 0;
  }
  
  .app-modal-body {
    padding: 24px 20px;
    gap: 24px;
  }
  
  .app-modal-header {
    padding: 16px 20px;
  }
  
  .app-screenshot {
    max-width: 180px;
    border-radius: 10px;
  }
  
  .app-benefits {
    gap: 12px;
  }
  
  .app-benefits li {
    font-size: 15px;
  }
}

/* Social Share Section */
.social-share-section {
  padding: clamp(16px, 2vh, 24px) 0;
}

.social-share-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}

.social-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-share-btn svg {
  flex-shrink: 0;
}

.social-share-btn.facebook {
  background: #1877F2;
}

.social-share-btn.facebook:hover {
  background: #0C63D4;
}

.social-share-btn.twitter {
  background: #000000;
}

.social-share-btn.twitter:hover {
  background: #333333;
}

.social-share-btn.instagram {
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
}

.social-share-btn.instagram:hover {
  opacity: 0.9;
}

/* Responsive Social Share */
@media (max-width: 768px) {
  .social-share-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .social-share-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .social-share-btn span {
    display: none;
  }
  
  .social-share-btn svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  .social-share-section {
    padding: 12px 0;
  }
  
  .social-share-buttons {
    gap: 8px;
  }
  
  .social-share-btn {
    padding: 10px;
  }
}

/* Print Styles */
@media print {
  .recipe-header,
  .recipe-section {
    page-break-inside: avoid;
  }
  
  .quick-actions,
  .favorite-btn,
  .carousel-control,
  .upload-card,
  .action-btn,
  .gear-modal {
    display: none !important;
  }
  
  .recipe-detail-page {
    background: #fff;
  }
  
  .hero-media {
    box-shadow: none;
    /* border: 1px solid #ddd; */
  }
  
  .image-carousel {
    aspect-ratio: auto;
    height: auto;
  }
  
  .carousel-image {
    position: relative;
    opacity: 1 !important;
  }
  
  .carousel-image:not(.active) {
    display: none;
  }
}

.instacart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #003D29;
  color: #FAF1E5;
  height: 46px;
  padding: 16px 18px;
  border-radius: 23px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.instacart-button:hover {
  background-color: #005040;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 61, 41, 0.3);
}

.instacart-icon {
  background-image: url(/static/landing/images/Instacart_Carrot.png);
  height: 22px;
  width: 22px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}
