/* ============================================================
   yourcustomprofile.app — the aura on a profile
   A pill in the card's meta row (next to the views pill, in its
   voice) and the dialog it opens: the owner's aura photograph on an
   instant-film print, and the reading. Shared reading + renderer:
   public/js/aura.mjs, public/js/aura-photo.mjs.
   ============================================================ */
.profile-aura {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 8px;
  border: 1px solid rgb(255 255 255 / 0.07);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.profile-aura[hidden] { display: none; }
.profile-aura:hover {
  color: var(--text-0);
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
  background: color-mix(in srgb, var(--accent) 15%, rgb(255 255 255 / 0.06));
}
.profile-aura:focus-visible { outline: 2px solid var(--accent-2, var(--accent)); outline-offset: 2px; }
.profile-aura__dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--aura-dot, conic-gradient(#f472b6, #38bdf8, #a855f7, #f472b6));
  box-shadow: 0 0 10px -1px var(--aura-glow, #f472b6);
}
html.is-light-page .profile-aura { border-color: rgb(0 0 0 / 0.08); background: rgb(0 0 0 / 0.05); }

/* ------------------------------------------------------------- the dialog */
.aura-modal {
  width: min(860px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #170a10;
  color: #f3e9ec;
  font-family: "Outfit", system-ui, sans-serif;
  box-shadow: 0 40px 120px -30px rgb(0 0 0 / 0.85);
  overflow: auto;
}
.aura-modal[open] { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: center; gap: 0; }
.aura-modal::backdrop { background: rgb(10 4 7 / 0.72); backdrop-filter: blur(6px); }
.aura-modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; margin: 0; }
.aura-modal__close button {
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / 0.08); color: #f3e9ec; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.aura-modal__close button:focus-visible, .aura-modal__cta:focus-visible { outline: 2px solid #ffb36b; outline-offset: 3px; }
.aura-modal__print {
  position: relative;
  margin: 28px;
  padding: 4.5% 4.5% 20%;
  background: #efece6;
  border-radius: 3px;
  box-shadow: 0 24px 50px -18px rgb(0 0 0 / 0.8);
  rotate: -2deg;
}
.aura-modal__photo { display: block; width: 100%; height: auto; aspect-ratio: 1; background: #1b1418; }
.aura-modal__caption {
  position: absolute; left: 7%; right: 7%; bottom: 5%;
  color: #2b2228;
  font-family: "Nothing You Could Do", "Segoe Print", cursive;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  line-height: 1.1;
  rotate: -1.5deg;
}
.aura-modal__reading { padding: 32px 36px 32px 8px; }
.aura-modal__kicker { margin: 0 0 6px; color: #b9a6ae; font-size: 0.95rem; }
.aura-modal__name {
  margin: 0 0 14px;
  font-family: "Bricolage Grotesque", "Outfit", system-ui, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.aura-modal__essence { margin: 0 0 12px; font-size: 1.15rem; line-height: 1.35; }
.aura-modal__body { margin: 0 0 14px; color: #e2d4d9; font-size: 0.98rem; line-height: 1.6; }
.aura-modal__tint { margin: 0 0 18px; color: #b9a6ae; font-size: 0.92rem; }
.aura-modal__owner { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: rgb(255 255 255 / 0.05); color: #d7c8ce; font-size: 0.86rem; line-height: 1.5; }
.aura-modal__owner[hidden] { display: none; }
.aura-modal__cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border-radius: 999px; background: #ffb36b; color: #2a1206;
  font-weight: 600; text-decoration: none;
}
.aura-modal__cta:hover { background: #ffc58c; }
.aura-modal.is-developing .aura-modal__reading > * { opacity: 0; translate: 0 8px; }
.aura-modal .aura-modal__reading > * { transition: opacity 0.55s ease, translate 0.55s ease; }

@media (max-width: 720px) {
  .aura-modal[open] { grid-template-columns: minmax(0, 1fr); }
  .aura-modal__print { margin: 60px 26px 4px; }
  .aura-modal__reading { padding: 18px 24px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .aura-modal .aura-modal__reading > * { transition: none; }
}

/* ------------------------------------------------------------- day & night */
.profile-daypart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 9px;
  border: 1px solid rgb(255 255 255 / 0.07);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
  cursor: default;
}
.profile-daypart[hidden] { display: none; }
.profile-daypart__glyph { color: var(--accent-2, var(--accent)); font-size: 0.9rem; }
.profile-daypart__tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; translate: -50% 4px;
  padding: 5px 9px; border-radius: 6px; background: rgb(0 0 0 / 0.84); color: #fff;
  font-size: 0.66rem; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 0.15s ease, translate 0.15s ease;
}
.profile-daypart:is(:hover, :focus-visible) .profile-daypart__tip { opacity: 1; translate: -50% 0; }
.profile-daypart:focus-visible { outline: 2px solid var(--accent-2, var(--accent)); outline-offset: 2px; }
html.is-light-page .profile-daypart { border-color: rgb(0 0 0 / 0.08); background: rgb(0 0 0 / 0.05); }

/* ------------------------------------------------------------- the secret door */
.profile-secret {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 9px;
  border: 1px dashed color-mix(in srgb, var(--accent-2, var(--accent)) 55%, transparent);
  border-radius: 999px;
  background: transparent;
  color: var(--text-1);
  font-family: var(--font-sans); font-size: 0.74rem; font-weight: 600; line-height: 1;
  cursor: pointer;
}
.profile-secret[hidden] { display: none; }
.profile-secret:hover { color: var(--text-0); border-style: solid; }
.profile-secret:focus-visible { outline: 2px solid var(--accent-2, var(--accent)); outline-offset: 2px; }

.secret-modal {
  width: min(460px, calc(100vw - 28px));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #0d0b10;
  color: #f3eef6;
  font-family: "Outfit", system-ui, sans-serif;
  overflow: hidden;
  box-shadow: 0 40px 120px -30px rgb(0 0 0 / 0.9);
}
.secret-modal::backdrop { background: rgb(5 3 8 / 0.78); backdrop-filter: blur(6px); }
.secret-ask { padding: 36px 30px 28px; }
.secret-ask__kicker { margin: 0 0 6px; color: #a99fb2; font-size: 0.9rem; }
.secret-ask__title { margin: 0 0 12px; font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.secret-ask__hint { margin: 0 0 16px; color: #d7cfdc; font-style: italic; }
.secret-ask__hint[hidden] { display: none; }
.secret-ask__form { display: flex; gap: 8px; }
.secret-ask__input {
  flex: 1 1 auto; min-width: 0; min-height: 46px; padding: 0 14px;
  border: 1px solid rgb(255 255 255 / 0.14); border-radius: 12px; background: rgb(255 255 255 / 0.05);
  color: #f3eef6; font: 500 1.05rem/1 "Outfit", system-ui, sans-serif; letter-spacing: 0.04em;
}
.secret-ask__input:focus { outline: 2px solid #ffd27a; outline-offset: 1px; }
.secret-ask__go { min-height: 46px; padding: 0 18px; border: 0; border-radius: 12px; background: #ffd27a; color: #2a1a04; font: 600 1rem/1 "Outfit", system-ui, sans-serif; cursor: pointer; }
.secret-ask__status { min-height: 1.4em; margin: 10px 0 0; color: #ffb4b4; font-size: 0.9rem; }
.secret-ask__tip { margin: 6px 0 0; color: #8f8698; font-size: 0.82rem; }
@media (hover: none) { .secret-ask__tip { display: none; } }

/* the door: two dark leaves part and the light behind them shows the card */
.secret-door { position: relative; min-height: 360px; display: grid; place-items: center; overflow: hidden; }
.secret-door[hidden] { display: none; }
.secret-door__light {
  position: absolute; inset: -20%;
  background: radial-gradient(closest-side, rgb(255 222 150 / 0.95), rgb(255 170 90 / 0.45) 45%, transparent 75%);
  opacity: 0; transform: scale(0.6);
  transition: opacity 0.9s ease 0.15s, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s;
}
.secret-door__card { position: relative; z-index: 1; max-width: 340px; padding: 30px 26px; text-align: center; opacity: 0; transform: translateY(14px) scale(0.97); transition: opacity 0.6s ease 0.75s, transform 0.6s ease 0.75s; }
.secret-door__kicker { margin: 0 0 8px; color: #6b4a1c; font-size: 0.9rem; font-weight: 600; }
.secret-door__title { margin: 0 0 12px; color: #1d1206; font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.secret-door__text { margin: 0 0 18px; color: #3b2a14; line-height: 1.55; white-space: pre-line; }
.secret-door__text[hidden] { display: none; }
.secret-door__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #1d1206; color: #ffe2a8; font-weight: 600; text-decoration: none; }
.secret-door__link[hidden] { display: none; }
.secret-door__leaf {
  position: absolute; top: 0; bottom: 0; z-index: 2; width: 50%;
  background: linear-gradient(90deg, #17121c, #221a29);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.04);
  transition: transform 1s cubic-bezier(0.65, 0, 0.25, 1);
}
.secret-door__leaf--l { left: 0; transform-origin: left center; }
.secret-door__leaf--r { right: 0; transform-origin: right center; background: linear-gradient(270deg, #17121c, #221a29); }
.secret-door.is-open .secret-door__leaf--l { transform: perspective(900px) rotateY(-82deg); }
.secret-door.is-open .secret-door__leaf--r { transform: perspective(900px) rotateY(82deg); }
.secret-door.is-open .secret-door__light { opacity: 1; transform: scale(1); }
.secret-door.is-open .secret-door__card { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .secret-door__leaf { display: none; }
  .secret-door__light, .secret-door__card { transition: opacity 0.3s ease; transform: none; }
}
/* the close button stays above the door's leaves; on the lit card it turns dark */
.secret-modal .aura-modal__close { z-index: 6; }
.secret-modal:has(.secret-door.is-open) .aura-modal__close button { background: rgb(29 18 6 / 0.14); color: #1d1206; }
.secret-door { min-height: min(440px, 70svh); }
/* the pill says what it is: "Vibe" in a quieter weight before the name */
.profile-aura__label { color: var(--text-2, rgb(255 255 255 / 0.62)); font-weight: 500; }
