/* ============================================================
   OPPDAG (dating) – Swipe / Utforsk / Dagens + match
   Skyport-palett, 0px-hjørner. Runde unntak: kun match-avatarer.
   Handlingsknappene er bevisst REKTANGULÆRE (husets 0px-regel).
   ============================================================ */

.op-wrap { max-width: 720px; padding-left: var(--cx); padding-right: var(--cx); }
.op-wrap > .st-panel-header { padding-left: 0; padding-right: 0; }

/* ── Segmentert kontroll (Swipe / Utforsk / Dagens) ─────────────── */
.op-seg {
  display: flex; gap: 2px; padding: 3px; margin-bottom: var(--sp-4);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md);
}
.op-seg__item {
  flex: 1; min-width: 0; text-align: center; padding: 8px 6px; text-decoration: none;
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-radius: var(--r-md); transition: background var(--dur-fast), color var(--dur-fast);
}
.op-seg__item:hover { color: var(--text-primary); }
.op-seg__item.active { background: var(--surface); color: var(--text-primary); box-shadow: var(--shadow-xs); }

/* ── Felles profilfoto-flate ────────────────────────────────────── */
.op-photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; display: flex; align-items: flex-end; }
.op-photo--wide { aspect-ratio: 16 / 11; }
.op-photo__img { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; }
.op-photo__ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, hsl(var(--op-hue) 45% 52%), hsl(var(--op-hue) 50% 38%));
}
.op-photo__ph span { font-size: 3.4rem; font-weight: 800; color: rgba(255,255,255,.92); }
.op-photo__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.12) 42%, rgba(0,0,0,0) 70%);
}

/* ── Info-overlegg ──────────────────────────────────────────────── */
.op-info { position: relative; padding: var(--sp-4); color: #fff; width: 100%; }
.op-info__name { font-size: var(--fs-2xl); font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
.op-info__name span { font-size: var(--fs-lg); font-weight: 400; opacity: .9; }
.op-info__sub { font-size: var(--fs-sm); opacity: .92; margin-top: 3px; }
.op-info__online { color: #fff; }
.op-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.op-tag {
  padding: 4px 9px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px);
  color: #fff; font-size: var(--fs-xs); font-weight: 600; border-radius: var(--r-md);
}

/* ── SWIPE: kortstabel ──────────────────────────────────────────── */
.op-stage {
  position: relative; width: 100%; max-width: 360px; margin: 0 auto;
  aspect-ratio: 3 / 4;
}
.op-card {
  position: absolute; inset: 0; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  border-radius: var(--r-md); overflow: hidden;
  will-change: transform; touch-action: none;
  opacity: 0; pointer-events: none; transform: scale(.9);
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-base);
}
.op-card.is-next { opacity: 1; transform: scale(.94) translateY(10px); filter: brightness(.97); }
.op-card.is-top  { opacity: 1; transform: none; pointer-events: auto; cursor: grab; z-index: 2; }
.op-card.is-top:active { cursor: grabbing; }
.op-card.is-gone { opacity: 0; pointer-events: none; }
.op-card .op-photo { aspect-ratio: auto; height: 100%; }

/* LIK/NEI-stempler */
.op-stamp {
  position: absolute; top: 24px; z-index: 3; pointer-events: none; opacity: 0;
  font-size: 1.5rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 14px; border: 3px solid; border-radius: var(--r-md); transition: opacity 80ms;
}
.op-stamp--like { left: 18px; color: var(--success); border-color: var(--success); transform: rotate(-14deg); }
.op-stamp--nope { right: 18px; color: var(--danger);  border-color: var(--danger);  transform: rotate(14deg); }

/* Handlingsknapper – REKTANGULÆRE (0px) per husets regel */
.op-actions { display: flex; align-items: center; justify-content: center; gap: var(--sp-5); padding: var(--sp-5) 0 var(--sp-2); }
.op-btn {
  width: 56px; height: 56px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-spring), background var(--dur-fast);
}
.op-btn:hover  { background: var(--surface-hover); }
.op-btn:active { transform: scale(.9); }
.op-btn--big   { width: 66px; height: 66px; }
.op-btn--nope  { color: var(--danger); }
.op-btn--star  { color: var(--accent-2); }
.op-btn--like  { color: var(--accent); }

/* ── UTFORSK: rutenett ──────────────────────────────────────────── */
.op-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
@media (min-width: 720px) { .op-grid { grid-template-columns: repeat(4, 1fr); } }
.op-pcard {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; display: flex; align-items: flex-end;
  border: 1px solid var(--border); border-radius: var(--r-md); text-decoration: none;
}
.op-pcard .op-photo { aspect-ratio: auto; position: absolute; inset: 0; }
.op-pcard__info { position: relative; padding: 10px; color: #fff; width: 100%; }
.op-pcard__name { font-weight: 700; font-size: var(--fs-base); display: flex; align-items: center; gap: 5px; }
.op-pcard__sub { font-size: var(--fs-xs); opacity: .9; }
.op-pcard__dot { width: 9px; height: 9px; border-radius: var(--r-full); background: var(--online); border: 1.5px solid #fff; display: inline-block; }

/* ── DAGENS ─────────────────────────────────────────────────────── */
.op-daily-head { text-align: center; margin-bottom: var(--sp-3); }
.op-daily-head__title { font-weight: 700; font-size: var(--fs-lg); }
.op-daily-head__sub { font-size: var(--fs-sm); color: var(--text-secondary); }
.op-daily-list { display: flex; flex-direction: column; gap: var(--sp-4); max-width: 520px; margin: 0 auto; }
.op-daily { overflow: hidden; padding: 0; }
.op-daily__reason {
  display: flex; align-items: center; gap: 8px; padding: 10px var(--sp-4);
  background: var(--accent-subtle); color: var(--accent); font-size: var(--fs-sm); font-weight: 600;
}
.op-daily__actions { display: flex; gap: var(--sp-3); padding: var(--sp-3); }
.op-daily__skip { flex: 1; min-width: 0; }
.op-daily__like { flex: 2; min-width: 0; }

/* ── MATCHER (egen oversikt) ────────────────────────────────────── */
.op-matches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.op-match-row {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-1); border-bottom: 1px solid var(--divider);
}
.op-match-row:last-child { border-bottom: none; }
.op-match-row__user { display: flex; align-items: center; gap: var(--sp-3); flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.op-mav {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--r-full);
  background-size: cover; background-repeat: no-repeat; flex-shrink: 0;
  font-weight: 700; color: #fff; font-size: 1.1rem;
}
.op-mav--ph { background: linear-gradient(150deg, hsl(var(--op-hue) 45% 52%), hsl(var(--op-hue) 50% 38%)); }
.op-match-row__body { display: flex; flex-direction: column; min-width: 0; }
.op-match-row__name { font-weight: 600; font-size: var(--fs-base); color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-match-row__meta { font-size: var(--fs-xs); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-match-row__msg { flex-shrink: 0; }

/* ── MATCH-ØYEBLIKK ─────────────────────────────────────────────── */
.op-match {
  position: fixed; inset: 0; z-index: 4000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-5); padding: var(--sp-6); text-align: center; color: #fff;
  background: linear-gradient(160deg, var(--accent), var(--accent-2));
  animation: op-fadein var(--dur-base) var(--ease);
}
.op-match[hidden] { display: none; }
.op-match__label { font-family: var(--font-mono); letter-spacing: .12em; font-size: .8rem; opacity: .9; }
.op-match__title { font-size: 2.2rem; font-weight: 800; line-height: 1.1; }
.op-match__avatars { display: flex; align-items: center; }
.op-match__av {
  width: 84px; height: 84px; border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; font-weight: 800; color: #fff;
  background: hsl(var(--op-hue, 210) 48% 52%); background-size: cover; background-position: center;
  border: 3px solid rgba(255,255,255,.9);
}
.op-match__heart {
  margin: 0 -14px; z-index: 2; width: 44px; height: 44px; border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.95); color: var(--accent);
}
.op-match__sub { font-size: var(--fs-md); opacity: .95; }
.op-match__cta { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 300px; }
.op-match__msg  { background: #fff; color: var(--accent); }
.op-match__cont { background: rgba(255,255,255,.18); color: #fff; }
@keyframes op-fadein { from { opacity: 0; } to { opacity: 1; } }

/* ── Tom-tilstand ───────────────────────────────────────────────── */
.op-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-2); padding: var(--sp-10) var(--sp-6); text-align: center; color: var(--text-muted);
}
.op-empty__title { font-weight: 600; color: var(--text-secondary); }

@media (prefers-reduced-motion: reduce) {
  .op-card, .op-btn, .op-match { transition: none; animation: none; }
}
