/* The candidate pop-up (class-bedri-popup.php, popup.js). Built from the concept's parts: the navy surface and line
   tokens, the 6px card radius, the display type, the solid button (.btn .btn-solid from the theme's global.css), the
   lightbox's blurred navy backdrop and its round close button. Reduced motion: no entrance. */

.bedri-popup {
  width: min(28rem, 100% - 32px); max-width: none; max-height: calc(100% - 32px); margin: auto; padding: 0;
  border: 0; background: none; color: var(--ink, #EEF2F8); overflow: visible;
}
.bedri-popup::backdrop { background: color-mix(in srgb, #0A1020 80%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bedri-popup-card {
  position: relative; max-height: calc(100dvh - 32px); overflow: auto;
  padding: clamp(1.5rem, 4vw, 2.25rem); border: 1px solid var(--line, #24304D); border-radius: var(--card-r, 6px);
  background: var(--surface, #131C33); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
}
.bedri-popup-face { width: 64px; height: 64px; margin-bottom: 1.1rem; border-radius: 50%; object-fit: cover; }
.bedri-popup-kicker { margin: 0 0 .5rem; font-size: .9rem; font-weight: 600; color: var(--accent-lit, #8EC5FF); }
.bedri-popup-title {
  margin: 0 0 .75rem; padding-right: 2rem; text-wrap: balance;
  font-family: var(--font-display); font-weight: var(--display-wght, 600); letter-spacing: var(--display-track, -0.03em);
  font-size: clamp(1.55rem, 1.2rem + 1vw, 2rem); line-height: 1.08;
}
.bedri-popup-text { margin: 0 0 1.5rem; color: var(--muted, #98A0B3); font-size: 1rem; line-height: 1.55; }
.bedri-popup-cta { width: 100%; }

/* the close button: the lightbox's round one, smaller */
.bedri-popup-close {
  position: absolute; top: .85rem; right: .85rem; width: 40px; height: 40px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--ink, #EEF2F8) 30%, transparent); background: none; color: var(--ink, #EEF2F8);
  transition: border-color .25s;
}
.bedri-popup-close::before, .bedri-popup-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; transform: rotate(45deg); }
.bedri-popup-close::after { transform: rotate(-45deg); }
.bedri-popup-close:hover { border-color: var(--ink, #EEF2F8); }

@media (prefers-reduced-motion: no-preference) {
  .bedri-popup[open] .bedri-popup-card { animation: bedri-popup-in .5s cubic-bezier(.22, .8, .2, 1); }
  .bedri-popup[open]::backdrop { animation: bedri-popup-fade .4s ease; }
}
@keyframes bedri-popup-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes bedri-popup-fade { from { opacity: 0; } }
