/* =========================================================================
   schnapp — Entdecken (Swipe) + Merkliste (Watchlist)
   Extends styles.css · Dark-first · Bootstrap 5.3 · Roboto
   ========================================================================= */

/* Nav bookmark badge */
.sw-badge {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 50rem;
  background: var(--sw-orange);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--bs-body-bg);
}

/* =========================================================================
   Swipe page
   ========================================================================= */
.swipe-page {
  position: relative;
  padding: 3rem 0 4rem;
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
}
.swipe-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 1.75rem;
  padding: 0 1rem;
}
.swipe-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0.4rem 0 0.6rem;
}
.swipe-head p { color: var(--bs-secondary-color); margin: 0; }
.swipe-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--sw-orange);
}
.swipe-saved-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0.4rem 0.95rem;
  border-radius: 50rem;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.28);
  color: var(--sw-orange);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}
.swipe-saved-pill:hover { background: rgba(249, 115, 22, 0.18); color: var(--sw-orange); }
.swipe-saved-pill b { font-weight: 800; }

/* Stage + deck */
.swipe-stage {
  position: relative;
  width: min(94vw, 400px);
  height: min(66vh, 580px);
  margin: 0 auto;
}
.swipe-deck { position: absolute; inset: 0; }

.swipe-card {
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--sw-zinc-900);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
  transform-origin: center bottom;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}
[data-bs-theme="light"] .swipe-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}
.swipe-card.is-front { cursor: grab; touch-action: none; }
.swipe-card.is-front:active { cursor: grabbing; }

.swipe-card-media { position: absolute; inset: 0; background: var(--sw-zinc-850); }
.swipe-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.swipe-card-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(9,9,11,0.96) 0%,
    rgba(9,9,11,0.78) 26%,
    rgba(9,9,11,0.12) 55%,
    rgba(9,9,11,0.28) 100%);
  pointer-events: none;
}

.swipe-card-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.9rem;
  z-index: 3;
}
.swipe-detail-btn {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 9, 11, 0.62);
  backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
}
.swipe-detail-btn:hover { background: var(--sw-orange); color: #fff; border-color: var(--sw-orange); }

.swipe-card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.35rem 1.4rem 1.5rem;
  color: #fff;
  z-index: 3;
}
.swipe-auction {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
  max-width: 100%;
}
.swipe-auction span.txt {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.swipe-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.swipe-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.swipe-price-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.swipe-price {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.swipe-price.has-bids { color: var(--sw-yellow); }
.swipe-bids {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.7rem;
  border-radius: 50rem;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(234, 179, 8, 0.16);
  color: var(--sw-yellow);
  white-space: nowrap;
}
.swipe-bids.fresh { background: rgba(249, 115, 22, 0.18); color: var(--sw-orange-300); }

.swipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.swipe-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.32rem 0.7rem;
  border-radius: 50rem;
  font-size: 0.76rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.swipe-chip.accent { background: rgba(234, 179, 8, 0.16); border-color: rgba(234, 179, 8, 0.3); color: var(--sw-yellow); }
.swipe-chip .live-dot { color: var(--sw-yellow); }

/* Decision stamp overlays */
.swipe-badge {
  position: absolute;
  top: 30px;
  z-index: 4;
  padding: 0.35rem 1rem;
  border: 4px solid;
  border-radius: 0.7rem;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.swipe-badge.like { left: 24px; color: #4ade80; border-color: #4ade80; transform: rotate(-14deg); }
.swipe-badge.nope { right: 24px; color: #f87171; border-color: #f87171; transform: rotate(14deg); }

/* Controls */
.swipe-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 1.75rem;
}
.swipe-btn {
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sw-zinc-900);
  color: var(--bs-body-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}
[data-bs-theme="light"] .swipe-btn { background: #fff; border-color: rgba(0, 0, 0, 0.1); }
.swipe-btn:hover { transform: translateY(-3px); }
.swipe-btn:active { transform: scale(0.94); }
.swipe-btn:disabled { opacity: 0.4; pointer-events: none; }
.swipe-btn.lg { width: 68px; height: 68px; }
.swipe-btn.md { width: 52px; height: 52px; }
.swipe-btn.skip { color: #f87171; }
.swipe-btn.skip:hover { background: #f87171; color: #fff; border-color: #f87171; box-shadow: 0 10px 30px rgba(248, 113, 113, 0.4); }
.swipe-btn.like { color: var(--sw-orange); }
.swipe-btn.like:hover { background: var(--sw-orange); color: #fff; border-color: var(--sw-orange); box-shadow: 0 10px 30px rgba(249, 115, 22, 0.45); }
.swipe-btn.undo { color: var(--sw-yellow); }
.swipe-btn.undo:hover { background: var(--sw-yellow); color: #111; border-color: var(--sw-yellow); }
.swipe-btn.detail { color: var(--bs-secondary-color); }
.swipe-btn.detail:hover { color: var(--sw-orange); border-color: var(--sw-orange); }

.swipe-hint {
  text-align: center;
  color: var(--bs-tertiary-color);
  font-size: 0.8rem;
  margin: 1.1rem auto 0;
  max-width: 420px;
}
.swipe-hint kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.35rem;
  padding: 0.05rem 0.4rem;
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
}

/* Empty state on stage */
.swipe-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed var(--bs-border-color);
}
.swipe-empty .ic {
  width: 68px; height: 68px;
  border-radius: 1.1rem;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: rgba(249, 115, 22, 0.1);
  color: var(--sw-orange);
  margin-bottom: 1.1rem;
}
.swipe-empty h3 { font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.swipe-empty p { color: var(--bs-secondary-color); max-width: 280px; margin: 0 auto 1.4rem; font-size: 0.9rem; }

/* =========================================================================
   Merkliste page
   ========================================================================= */
.wl-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  align-items: center;
  color: var(--bs-secondary-color);
  font-size: 0.9rem;
}
.wl-summary .num { color: var(--bs-body-color); font-weight: 800; font-variant-numeric: tabular-nums; }

.wl-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.wl-viewtoggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50rem;
  padding: 0.25rem;
  gap: 0.15rem;
}
[data-bs-theme="light"] .wl-viewtoggle { background: rgba(0, 0, 0, 0.03); border-color: rgba(0, 0, 0, 0.08); }
.wl-viewtoggle button {
  border: 0;
  background: transparent;
  color: var(--bs-secondary-color);
  padding: 0.4rem 0.9rem;
  border-radius: 50rem;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.wl-viewtoggle button:hover { color: var(--bs-body-color); }
.wl-viewtoggle button.active {
  background: var(--sw-orange);
  color: #fff;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.32);
}

.wl-group { margin-bottom: 2.75rem; }
.wl-group-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding-bottom: 0.85rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--bs-border-color);
}
.wl-group-head h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
}
.wl-group-head .wl-group-meta {
  color: var(--bs-secondary-color);
  font-size: 0.82rem;
  display: flex;
  gap: 0.35rem 0.9rem;
  flex-wrap: wrap;
}
.wl-group-head .wl-group-link {
  margin-left: auto;
  color: var(--bs-secondary-color);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.wl-group-head .wl-group-link:hover { color: var(--sw-orange); }
.wl-count-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 50rem;
  background: rgba(249, 115, 22, 0.12);
  color: var(--sw-orange);
  font-size: 0.72rem;
  font-weight: 700;
}

/* List row */
.wl-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
[data-bs-theme="light"] .wl-row { background: #fff; border-color: rgba(0, 0, 0, 0.06); }
.wl-row + .wl-row { margin-top: 0.6rem; }
.wl-row:hover { border-color: rgba(249, 115, 22, 0.35); }
.wl-thumb {
  flex-shrink: 0;
  width: 74px; height: 74px;
  border-radius: 0.65rem;
  overflow: hidden;
  background: var(--sw-zinc-850);
  display: block;
}
.wl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wl-main { flex: 1; min-width: 0; }
.wl-name {
  display: block;
  font-weight: 600;
  color: var(--bs-body-color);
  text-decoration: none;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wl-name:hover { color: var(--sw-orange); }
.wl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.85rem;
  color: var(--bs-secondary-color);
  font-size: 0.78rem;
}
.wl-chips span { display: inline-flex; align-items: center; gap: 0.3rem; }
.wl-price {
  flex-shrink: 0;
  text-align: right;
  min-width: 110px;
}
.wl-price-label {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bs-tertiary-color);
  font-weight: 600;
}
.wl-price-val {
  font-weight: 800;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--bs-body-color);
}
.wl-price-val.bids { color: var(--sw-yellow); }
[data-bs-theme="light"] .wl-price-val.bids { color: #b45309; }
.wl-remove {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--bs-border-color);
  background: transparent;
  color: var(--bs-secondary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wl-remove:hover { border-color: #f87171; color: #f87171; background: rgba(248, 113, 113, 0.08); }

/* Gallery card */
.wl-card {
  position: relative;
  background: linear-gradient(135deg, #1c1c1e, #18181b);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.85rem;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
[data-bs-theme="light"] .wl-card { background: #fff; border-color: rgba(0, 0, 0, 0.06); }
.wl-card:hover { border-color: rgba(249, 115, 22, 0.35); }
.wl-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--sw-zinc-850);
}
.wl-card-media img { width: 100%; height: 100%; object-fit: cover; }
.wl-card .wl-remove.float {
  position: absolute;
  top: 0.55rem; right: 0.55rem;
  width: 34px; height: 34px;
  background: rgba(9, 9, 11, 0.7);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.wl-card .wl-remove.float:hover { background: #f87171; border-color: #f87171; }
.wl-card-body { padding: 0.85rem 0.9rem 1rem; display: flex; flex-direction: column; flex-grow: 1; }
.wl-card-name {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--bs-body-color);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
  margin-bottom: 0.5rem;
}
.wl-card-name:hover { color: var(--sw-orange); }
.wl-card-foot { margin-top: auto; }
.wl-card-price { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.wl-card-price.bids { color: var(--sw-yellow); }
.wl-card-meta { color: var(--bs-secondary-color); font-size: 0.76rem; display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.15rem; }

@media (max-width: 576px) {
  .wl-row { flex-wrap: wrap; }
  .wl-price { min-width: 0; text-align: left; margin-left: 90px; }
  .wl-remove { margin-left: auto; }
}
