/* ---------- Shared popup window chrome ----------
   The generic "Mac window" shell (backdrop, window frame, traffic-light
   titlebar) used by both the project detail popup (styles/work.css,
   index.html only) and the PhD login popup (styles/phd-login.css,
   every page). Matches the PhD Website project's own popup pattern
   (styles/matrix.css there) for visual consistency across Sam's sites —
   same class names, kept in sync by eye rather than a shared stylesheet
   between the two separate projects. Loaded by every page. */

.popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.popup-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.popup-window {
  width: min(880px, 100%);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.14), 0 4px 14px rgba(17, 17, 17, 0.06);
  transform: scale(0.96) translateY(8px);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.popup-backdrop.is-open .popup-window {
  transform: scale(1) translateY(0);
}

.popup-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
  flex: 0 0 auto;
}

.popup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  padding: 0;
}

.popup-dot-red { background: #ff5f57; cursor: pointer; }
.popup-dot-yellow { background: #febc2e; }
.popup-dot-green { background: #28c840; }
