/**
 * Hero Conveyor Menu CSS — accbaohanh.com
 * Taste 2.5 Anti-Slop Audit: Linear / Figma level polish
 */

.hero-conveyor-wrap {
  position: relative;
  width: 100%;
  margin: 28px 0 20px;
  padding: 32px 28px 28px;
  background: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 24px;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  overflow: hidden;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .hero-conveyor-grid {
    display: grid;
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
    align-items: center;
    gap: 36px;
  }
}

@media (max-width: 1023px) {
  .hero-conveyor-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
}

/* Left Typography: Plain, Confident, Anti-Slop */
.hero-conveyor-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-conveyor-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground, #0f172a);
}

@media (min-width: 1024px) {
  .hero-conveyor-title {
    font-size: 32px;
  }
}

.hero-conveyor-caption {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-conveyor-caption-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground, #0f172a);
  margin: 0;
  line-height: 1.45;
}

.hero-conveyor-caption-desc {
  font-size: 13px;
  color: var(--muted-foreground, #64748b);
  margin: 4px 0 0;
  line-height: 1.4;
}

.hero-conveyor-actions {
  margin-top: 6px;
  display: flex;
  align-items: center;
}

.hero-conveyor-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--foreground, #0f172a);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.hero-conveyor-btn-primary:hover {
  background: var(--primary, #0866d0);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(8, 102, 208, 0.35);
  color: #ffffff !important;
}

.hero-conveyor-btn-primary:active {
  transform: translateY(0);
}

/* Stage & Belt */
.hero-conveyor-stage-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

.hero-conveyor-stage {
  position: relative;
  width: 100%;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  overflow: clip;
}

.hero-conveyor-stage:active {
  cursor: grabbing;
}

.hero-conveyor-belt {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.hero-conveyor-counter {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 0 1px, transparent 1px, rgba(15, 23, 42, 0.02) 40%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

/* Plates & Badges */
.conveyor-plate-btn {
  position: absolute;
  left: 0;
  top: 0;
  cursor: pointer;
  border-radius: 50%;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  outline: none;
  transform-origin: center center;
  will-change: transform, z-index;
}

.conveyor-plate-btn:focus-visible {
  outline: 2px solid var(--primary, #0866d0);
  outline-offset: 4px;
}

.conveyor-plate-lift {
  position: absolute;
  inset: 0;
  transform-origin: center bottom;
  will-change: transform;
}

.conveyor-plate-img {
  pointer-events: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.16));
}

.conveyor-plate-ring {
  pointer-events: none;
  position: absolute;
  inset: -1.5%;
  border-radius: 50%;
  border: 2px solid;
  opacity: 0.8;
}

.conveyor-plate-chip-anchor {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 0;
  width: 0;
  height: 0;
}

.conveyor-plate-chip {
  position: absolute;
  bottom: 8px;
  left: 0;
  transform: translateX(-50%) translateY(4px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border-radius: 9999px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--foreground, #0f172a);
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.12);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.conveyor-plate-btn[data-active="true"] .conveyor-plate-chip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.conveyor-plate-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.conveyor-plate-chip-price {
  font-weight: 500;
  color: var(--muted-foreground, #64748b);
  margin-left: 2px;
}

/* Tier Accents */
.tier-ring-1 { border-color: #10b981 !important; }
.tier-dot-1 { background-color: #10b981 !important; }

.tier-ring-2 { border-color: #3b82f6 !important; }
.tier-dot-2 { background-color: #3b82f6 !important; }

.tier-ring-3 { border-color: #8b5cf6 !important; }
.tier-dot-3 { background-color: #8b5cf6 !important; }

.tier-ring-4 { border-color: #f59e0b !important; }
.tier-dot-4 { background-color: #f59e0b !important; }

.tier-ring-5 { border-color: #ec4899 !important; }
.tier-dot-5 { background-color: #ec4899 !important; }

/* Belt Controls */
.hero-conveyor-controls {
  position: relative;
  z-index: 10;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.conveyor-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border, #e2e8f0);
  background: #ffffff;
  color: var(--muted-foreground, #64748b);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: all 0.15s ease;
}

.conveyor-ctrl-btn:hover {
  color: var(--foreground, #0f172a);
  border-color: #cbd5e1;
  transform: translateY(-0.5px);
}

/* Modal Dialog */
.conveyor-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.conveyor-dialog-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.conveyor-dialog-modal {
  position: relative;
  width: 100%;
  max-width: 580px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  padding: 28px;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.conveyor-dialog-backdrop.is-open .conveyor-dialog-modal {
  transform: scale(1);
}

.conveyor-dialog-close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: #f1f5f9;
  border: none;
  border-radius: 9999px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: background 0.15s ease, color 0.15s ease;
}

.conveyor-dialog-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.conveyor-dialog-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: center;
}

@media (max-width: 640px) {
  .conveyor-dialog-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.conveyor-dialog-figure {
  width: 140px;
  height: 140px;
  margin: 0 auto;
}

.conveyor-dialog-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.conveyor-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.conveyor-dialog-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.conveyor-dialog-desc {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.conveyor-dialog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.conveyor-dialog-chip {
  font-size: 11px;
  padding: 3px 9px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  color: #475569;
  font-weight: 500;
}

.conveyor-dialog-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.conveyor-dialog-price {
  font-size: 21px;
  font-weight: 700;
  color: var(--primary, #0866d0);
  margin: 0;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.conveyor-dialog-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary, #0866d0);
  color: #ffffff !important;
  border: none;
  border-radius: 9999px;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px -2px rgba(8, 102, 208, 0.35);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.conveyor-dialog-add-btn:hover {
  background: #0757b4;
  transform: translateY(-0.5px);
  box-shadow: 0 6px 16px -2px rgba(8, 102, 208, 0.45);
  color: #ffffff !important;
}
