/* ==========================================================================
   confirm-modal.css — Orcheum CANONICAL confirmation dialog (shared)
   --------------------------------------------------------------------------
   A reusable yes/no confirmation, adapted from the Create Project pop-up
   (create-project-modal.css): the same blurred, dimmed overlay and lifting
   cream card — the product's one pop-up dynamic — with a title, a message,
   and a Cancel / confirm button row. The host owns only the trigger.

   No Figma frame specifies this dialog; its shell is the approved Create
   Project pop-up (547:6476), reused so every modal enters the same way.
   ========================================================================== */

/* ------------------------------- overlay -------------------------------- */
/* Same dim + blur as the Create Project / Share pop-ups. */
.oc-confirm {
  position: fixed;
  inset: 0;
  z-index: 1100;                 /* above other pop-ups: it confirms their actions */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(36, 37, 45, 0.12);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}
.oc-confirm.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 180ms ease;
}

/* -------------------------------- card ---------------------------------- */
.oc-confirm__card {
  position: relative;
  width: 400px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 18px;
  background: var(--color-cream-50);
  border-radius: 16px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(8px) scale(0.985);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.oc-confirm.is-open .oc-confirm__card { transform: none; }

.oc-confirm__inner {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

/* ------------------------------- header --------------------------------- */
.oc-confirm__head {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.oc-confirm__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: var(--font-weight-medium);
  font-size: 24px;
  line-height: normal;
  letter-spacing: 0.24px;
  color: #000;
  word-break: break-word;
}
.oc-confirm__message {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--font-weight-normal);
  font-size: var(--text-sm);     /* 14 — this is the body, not a subtitle */
  line-height: 1.4;
  color: var(--color-text-secondary);
  word-break: break-word;
}
/* The subject (project name) reads as part of the sentence but emphasised. */
.oc-confirm__subject {
  font-weight: var(--font-weight-medium);
  color: var(--color-foreground);
}

/* ------------------------------- actions -------------------------------- */
/* Both buttons are the canonical .oc-btn; the row only splits the width. */
.oc-confirm__row {
  display: flex;
  gap: 12px;
}
.oc-confirm__row .oc-btn {
  flex: 1 0 0;
}

/* ------------------------- reduced motion ------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .oc-confirm,
  .oc-confirm__card { transition: opacity 120ms ease; }
  .oc-confirm__card { transform: none; }
}

/* ---------------------------- narrow screens ---------------------------- */
@media (max-width: 440px) {
  .oc-confirm {
    padding: 0;
    align-items: flex-end;
  }
  .oc-confirm__card {
    width: 100%;
    border-radius: 16px 16px 0 0;
  }
}
