/* PromptTick - Quick view modal for guide cards (loaded only on guide-layout pages). */

/* Button on the card, next to Copy */
.pg-qv { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: transparent; color: #e9e1fb; font: inherit; font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) and (pointer: fine) { .pg-qv:hover { background: rgba(255,255,255,.1); } }
.pg-qv:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; }
@media (max-width: 639px) {
  .pg-qv { min-height: 36px; padding: 0 10px; border-radius: 12px; }
  .pg-qv .pg-qv-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Modal */
html.pgq-lock, body.pgq-lock { overflow: hidden; }
.pgq[hidden] { display: none; }
.pgq { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity .2s ease; }
.pgq.is-open { opacity: 1; }
.pgq-back { position: absolute; inset: 0; background: rgba(8,4,18,.78); }
.pgq-dlg { position: relative; width: 100%; max-width: 880px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; border-radius: 24px; background: #150d26; color: var(--pt-text, #f3eeff); box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 30px 80px rgba(0,0,0,.6); outline: none; overflow: hidden; transform: translateY(10px) scale(.985); transition: transform .22s ease; }
.pgq.is-open .pgq-dlg { transform: none; }
.pgq-x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(21,13,38,.82); color: #fff; cursor: pointer; }
.pgq-x:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; }
.pgq-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pgq-media { position: relative; align-self: start; position: sticky; top: 0; padding: 16px; }
.pgq-media.is-empty .pgq-img { display: none; }
.pgq-img { display: block; width: 100%; height: auto; border-radius: 16px; background: #1b1030; }
.pgq-bf { margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.pgq-bf[hidden] { display: none; }
.pgq-bf-l { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pt-muted, #c4b8e0); }
.pgq-bf-i { width: 84px; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.pgq-body { padding: 22px 24px 24px 8px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pgq-title { margin: 0; padding-right: 44px; font-family: var(--font-heading, inherit); font-size: 24px; line-height: 1.2; font-weight: 800; }
.pgq-prompt { margin: 0; padding: 14px 16px; border-radius: 14px; background: #1b1030; border: 1px solid rgba(255,255,255,.14); font-size: 14.5px; line-height: 1.65; color: #e9e1fb; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy-btn.pg-copy.pgq-copy { flex: none; width: 100%; }
.pgq-copy[hidden] { display: none; }
.pgq-secs { display: flex; flex-direction: column; gap: 14px; }
.pgq-sec h3 { margin: 0 0 4px; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--pt-purple-light, #a78bfa); font-weight: 700; }
.pgq-sec p { margin: 0; font-size: 14.5px; line-height: 1.65; color: #e9e1fb; white-space: pre-wrap; overflow-wrap: anywhere; }
.pgq-qa + .pgq-qa { margin-top: 10px; }
.pgq-qa h4 { margin: 0 0 3px; font-size: 14.5px; font-weight: 700; color: #fff; }
.pgq-meta { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--pt-border, rgba(255,255,255,.12)); display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--pt-muted, #c4b8e0); }
.pgq-meta[hidden] { display: none; }
.pgq-meta b { color: #fff; font-weight: 600; }

/* Phones: full-screen sheet with its own scroll */
@media (max-width: 639px) {
  .pgq { padding: 0; align-items: stretch; }
  .pgq-dlg { max-width: none; max-height: none; height: 100%; border-radius: 0; box-shadow: none; transform: translateY(18px); }
  .pgq-x { top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; }
  .pgq-wrap { display: block; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .pgq-media { position: relative; padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 0; }
  .pgq-body { padding: 16px 16px 24px; }
  .pgq-title { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .pgq, .pgq-dlg { transition: none; }
}
