/* ==========================================================================
   Discover tab — swipe-card deck
   (extends public/css/style.css — same design tokens, no overrides)
   ========================================================================== */

.swipe-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 10px 0 40px;
}

.swipe-deck {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 560px;
}

.swipe-card {
  position: absolute;
  inset: 0;
  background: var(--surface-solid);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  touch-action: none;
  user-select: none;
  cursor: grab;
  transform: scale(calc(1 - var(--depth, 0) * 0.045)) translateY(calc(var(--depth, 0) * 14px));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, box-shadow 0.25s ease;
}

.swipe-card.dragging {
  cursor: grabbing;
  transition: none;
}

.swipe-card-photo {
  position: relative;
  flex: 1 1 auto;
  min-height: 330px;
  background: var(--gradient-soft) center/cover no-repeat;
  background-color: rgba(108, 92, 231, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.swipe-card-fallback {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}

.swipe-card-gradient {
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(to top, rgba(20, 14, 40, 0.55), transparent);
  pointer-events: none;
}

.swipe-card-photo .compat-badge {
  position: absolute;
  top: 16px;
  right: 16px;
}

.swipe-stamp {
  position: absolute;
  top: 26px;
  padding: 8px 18px;
  border: 3px solid;
  border-radius: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
}

.swipe-stamp-like {
  left: 22px;
  color: var(--success);
  border-color: var(--success);
  transform: rotate(-14deg);
  opacity: var(--like-op, 0);
}

.swipe-stamp-pass {
  right: 22px;
  color: var(--danger);
  border-color: var(--danger);
  transform: rotate(14deg);
  opacity: var(--pass-op, 0);
}

.swipe-card-info {
  padding: 18px 22px 22px;
}

.swipe-card-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.swipe-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}

.swipe-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-faint);
}

.swipe-card-bio {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 10px 0 0;
}

.swipe-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.swipe-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-solid);
  color: var(--text-muted);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.swipe-btn:hover {
  transform: translateY(-3px);
}

.swipe-btn:active {
  transform: translateY(0) scale(0.94);
}

.swipe-btn-pass {
  color: var(--danger);
}

.swipe-btn-like {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
  width: 70px;
  height: 70px;
  font-size: 26px;
}

@media (max-width: 460px) {
  .swipe-deck {
    height: 500px;
  }
}
