/* ════════════════════════════════════════════════
   Discover Screen — Pure JS snap, no scroll-snap
   ════════════════════════════════════════════════ */

#screen-discover {
  position: relative;
  display: none;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
body.discover-active #screen-discover { display: flex; }

/* Feed container — FIXED height, no scroll */
#discover-feed {
  flex: 1;
  position: relative;
  overflow: hidden;
  touch-action: none; /* Let JS handle all touch */
  user-select: none;
  -webkit-user-select: none;
}

/* Inner wrapper — all cards stacked, moved by translateY */
.df-inner {
  position: absolute;
  top: 0; left: 0; right: 0;
  will-change: transform;
}

/* Each card = exactly 100% of feed height */
.discover-card {
  width: 100%;
  height: calc(var(--card-h, 100vh) - 56px);
  position: relative;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
  /* Ensure cards use fixed height in stack */
  box-sizing: border-box;
}

/* Media layer */
.dc-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.dc-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  pointer-events: none;
}
.dc-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.0) 35%,
    rgba(0,0,0,0.55) 65%,
    rgba(0,0,0,0.85) 100%
  );
}

/* Chef Pick badge */
.dc-expert-badge {
  position: absolute; top: 16px; left: 16px; z-index: 4;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.7rem; font-weight: 700;
  padding: 5px 11px; border-radius: 20px;
  letter-spacing: 0.05em;
}

/* Top badges row */
.dc-top {
  position: absolute; top: 16px; right: 16px; z-index: 4;
  display: flex; gap: 6px;
  flex-direction: column; align-items: flex-end;
}
.dc-badge {
  font-size: 0.72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
  letter-spacing: 0.05em;
}
.dc-badge.open  { background: rgba(20,180,80,0.9); color: #fff; }
.dc-badge.closed{ background: rgba(0,0,0,0.6); color: rgba(255,255,255,0.8); }
.dc-category {
  background: rgba(0,0,0,0.55); color: rgba(255,255,255,0.9);
  font-size: 0.7rem; padding: 3px 9px; border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* Info panel (bottom) */
.dc-info {
  position: absolute; bottom: 0; left: 0; right: 52px;
  z-index: 4; padding: 0 16px 24px;
}
.dc-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 700;
  color: #fff; line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  margin-bottom: 5px;
}
.dc-meta-row {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 5px;
}
.dc-neighborhood {
  font-size: 0.78rem; color: rgba(255,255,255,0.88);
}
.dc-price {
  font-size: 0.72rem; color: var(--accent);
  font-weight: 700;
}
.dc-rating {
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 7px;
}
.dc-stars { color: #FFD700; font-size: 0.8rem; letter-spacing: 2px; }
.dc-rating-num { color: #fff; font-size: 0.78rem; font-weight: 700; }
.dc-reviews { color: rgba(255,255,255,0.65); font-size: 0.72rem; }

.dc-must-try {
  display: flex; align-items: flex-start; gap: 6px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 9px 12px; margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.12);
}
.dc-must-label {
  font-size: 0.65rem; font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em; white-space: nowrap;
  margin-top: 1px;
}
.dc-must-text {
  font-size: 0.78rem; color: #fff;
  line-height: 1.3;
}

.dc-actions { display: flex; gap: 8px; }
.dc-btn {
  border: none; border-radius: 24px;
  font-size: 0.78rem; font-weight: 600;
  cursor: pointer; display: flex;
  align-items: center; gap: 5px;
  transition: opacity 0.2s, transform 0.15s;
}
.dc-btn:active { transform: scale(0.95); }
.dc-btn-primary {
  flex: 1;
  background: var(--primary); color: var(--bg);
  padding: 10px 16px;
}
.dc-btn-save,
.dc-btn-share {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: #fff;
  justify-content: center; padding: 0;
  backdrop-filter: blur(6px);
  font-size: 1rem;
}

/* Right sidebar (TikTok-style) */
.dc-sidebar {
  position: absolute; right: 10px; bottom: 100px;
  z-index: 5;
  display: flex; flex-direction: column; gap: 18px;
  align-items: center;
}
.dc-side-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; background: none; border: none;
  cursor: pointer; color: #fff;
  font-size: 1.4rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  transition: transform 0.15s;
}
.dc-side-btn:active { transform: scale(0.9); }
.dc-side-btn.active { color: var(--accent); }
.dc-side-btn span {
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.02em;
}

/* Scroll hint */
.dc-scroll-hint {
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; z-index: 6; opacity: 0.85;
  animation: hintBob 1.8s ease-in-out infinite;
  padding-bottom: 12px;
}
.dc-scroll-hint span {
  color: rgba(255,255,255,0.85);
  font-size: 0.72rem; font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.scroll-hint-arrow {
  color: rgba(255,255,255,0.9);
  font-size: 1.3rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
@keyframes hintBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-6px); }
}

/* Progress counter (top bar) */
#discover-progress {
  font-size: 0.72rem; color: rgba(255,255,255,0.8);
  font-weight: 600; background: rgba(0,0,0,0.45);
  border-radius: 12px; padding: 3px 8px;
}

/* Discover topbar overlay */
.discover-topbar {
  position: absolute;
  top: 0; left: 0; right: 0; z-index: 10;
  height: 56px;
  background: linear-gradient(rgba(0,0,0,0.5), transparent);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
}
.discover-topbar > * { pointer-events: all; }
.discover-topbar .dtb-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* Desktop discover: constrain to content column */
@media (min-width: 768px) {
  #discover-feed { max-width: 480px; margin: 0 auto; }
  .discover-card { height: calc(100vh - 56px); }
}

/* Ensure card height matches discover-feed */

