/* Resource fake-door modal (declared inline on the resources page).
 *
 * Uses the .android-modal base class for dialog chrome. Restyled to the
 * dark editorial aesthetic to match the rest of the marketing site, the
 * cookie consent banner, and the homepage auth panel.
 *
 * Local --cb-* tokens keep this file self-contained: no dependency on
 * shared tokens.css cascade order. The values mirror tokens.css so the
 * modal reads as part of the same system.
 */

.android-modal {
  --cb-bg: #0D0D0F;
  --cb-surface: #16161A;
  --cb-text: #F5F5F5;
  --cb-muted: #888888;
  --cb-border-subtle: rgba(245, 245, 245, 0.12);
  --cb-border-default: rgba(245, 245, 245, 0.24);
  --cb-magenta: #E91E8C;
  --cb-magenta-dark: #B0156D;

  border: 1px solid var(--cb-border-subtle);
  border-radius: 14px;
  padding: 36px 28px 24px;
  max-width: 460px;
  width: calc(100% - 32px);
  background: var(--cb-surface);
  color: var(--cb-text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(245, 245, 245, 0.04) inset;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}
.android-modal::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.android-modal[open] { animation: cb-modal-pop 0.2s ease-out; }
@keyframes cb-modal-pop {
  from { transform: translate(-50%, -50%) scale(0.96); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.android-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  font-family: inherit;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: var(--cb-muted);
  cursor: pointer;
  padding: 0;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.android-modal-close:hover {
  background: rgba(245, 245, 245, 0.06);
  border-color: var(--cb-border-default);
  color: var(--cb-text);
}

.android-modal h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--cb-text);
}
.android-modal > p {
  margin: 0 0 24px;
  color: var(--cb-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Permanent Marker for the "Career Badger" callout inside h3.
 * Wrapped span keeps the rest of the heading in system sans. */
.font-display {
  font-family: "Permanent Marker", cursive;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.text-magenta { color: var(--cb-magenta); }

/* Web-app CTA: primary action, white block button. */
.modal-web-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  background: var(--cb-text);
  color: var(--cb-bg);
  border: 1px solid var(--cb-text);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  margin: 0 0 18px;
  transition: background-color 120ms ease, border-color 120ms ease, transform 80ms ease;
}
.modal-web-cta:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
}
.modal-web-cta:active {
  transform: translateY(1px);
  background: #E8E8E8;
  border-color: #E8E8E8;
}


/* ── Mobile tweaks ────────────────────────────────── */

@media (max-width: 480px) {
  .android-modal {
    padding: 28px 20px 20px;
    max-width: calc(100% - 24px);
    width: calc(100% - 24px);
  }
  .android-modal h3 { font-size: 19px; }
  .android-modal > p { font-size: 13px; }
}
