/* The pages beside the app (stage 12): "המצגות שלי", the terms, the privacy policy, the password
   reset. Uses app.css tokens and buttons. */

.page-top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  max-width: 920px; margin: 0 auto; padding: 24px 20px 18px; padding-top: max(24px, env(safe-area-inset-top));
}
.page-top h1 { font-size: 28px; }
.page-top .account { justify-self: end; }
.back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.back:hover { color: var(--ink); }
.back svg.i { width: 20px; height: 20px; }
.page { max-width: 920px; margin: 0 auto; padding: 0 20px 24px; }

/* "המצגות שלי" */
.my-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.my-count { color: var(--ink-2); }
.my-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.my-item {
  display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, var(--glass-top) 0%, var(--glass) 55%);
  box-shadow: inset 0 1px 0 var(--sheen), 0 0 0 1px var(--rim), 0 12px 30px -18px rgba(0, 0, 0, 0.8);
}
.my-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--night-deep); display: grid; place-items: center; color: var(--ink-4); }
.my-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.my-thumb svg.i { width: 34px; height: 34px; }
.chip {
  position: absolute; top: 10px; inset-inline-start: 10px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: rgba(5, 15, 29, 0.82); color: var(--ink-2); box-shadow: 0 0 0 1px var(--rim-strong); backdrop-filter: blur(4px);
}
.chip.paid { color: #3ccf8e; }
.chip.exported { color: #8fb6ff; }
.my-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.my-title { font-size: 16px; font-weight: 700; }
.my-meta { font-size: 13px; color: var(--ink-3); }
.my-note { font-size: 13px; color: var(--ink-2); }
.my-note.warn { color: var(--warn); }
.my-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.my-actions .btn { min-height: 42px; padding: 0 14px; font-size: 15px; }
.my-actions .btn.danger { color: var(--bad); }
.my-empty { padding: 40px 16px; text-align: center; color: var(--ink-2); border-radius: var(--r-lg); background: var(--glass); box-shadow: 0 0 0 1px var(--rim); }
.my-empty p { margin-bottom: 14px; }
.signed-out { max-width: 460px; margin: 30px auto; padding: 28px 22px; text-align: center; border-radius: var(--r-lg); background: var(--glass); box-shadow: 0 0 0 1px var(--rim); display: flex; flex-direction: column; gap: 12px; }
.signed-out p { color: var(--ink-2); }
.prefs { margin-top: 22px; padding: 16px; border-radius: var(--r-lg); background: var(--glass); box-shadow: 0 0 0 1px var(--rim); }
.prefs h2 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.prefs .hint { margin-top: 10px; }

/* The terms and the privacy policy */
.legal { max-width: 760px; margin: 0 auto; padding: 0 20px 24px; line-height: 1.7; color: var(--ink-2); }
.legal h1 { font-size: 30px; text-align: start; color: var(--ink); margin-bottom: 6px; }
.legal .updated { color: var(--ink-3); font-size: 14px; margin-bottom: 22px; }
.legal h2 { font-size: 19px; color: var(--ink); margin: 28px 0 8px; }
.legal p, .legal li { font-size: 16px; text-wrap: pretty; }
.legal p + p { margin-top: 10px; }
.legal ul, .legal ol { padding-inline-start: 22px; margin: 8px 0; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--blue-hi); text-underline-offset: 3px; }
.legal b, .legal strong { color: var(--ink); }
.legal table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15px; }
.legal th, .legal td { text-align: start; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--rim-strong); }
.legal th { color: var(--ink); font-weight: 600; }
.legal .box { margin: 14px 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--glass); box-shadow: 0 0 0 1px var(--rim); }

/* The password reset page */
.narrow { max-width: 440px; margin: 20px auto; padding: 24px 22px; border-radius: var(--r-lg); background: var(--glass); box-shadow: 0 0 0 1px var(--rim); display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 640px) {
  .page-top { padding: 14px 16px 12px; padding-top: max(14px, env(safe-area-inset-top)); grid-template-columns: auto 1fr auto; }
  .page-top h1 { font-size: 20px; }
  .back span { display: none; }
  .page, .legal { padding-inline: 16px; }
  .legal h1 { font-size: 24px; }
  .my-list { grid-template-columns: 1fr; }
}

/* The share page (12b) */
body.shared { display: flex; flex-direction: column; min-height: 100dvh; }
.shared-top { max-width: 900px; width: 100%; margin: 0 auto; padding: 26px 20px 14px; padding-top: max(26px, env(safe-area-inset-top)); text-align: center; }
.eyebrow-brand { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 4px; }
.shared-top h1 { font-size: 26px; }
.shared-main { flex: 1; max-width: 900px; width: 100%; margin: 0 auto; padding: 0 16px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
#watch { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.shared-frame { width: 100%; padding: 8px; border-radius: var(--r-lg); background: var(--glass); box-shadow: 0 0 0 1px var(--rim); }
.shared-frame video { display: block; width: 100%; max-height: 72vh; border-radius: 12px; background: #000; }
.shared-frame video.tall { width: auto; max-width: 100%; margin: 0 auto; }
.shared-until { color: var(--ink-2); font-size: 14px; }
.shared-dl { min-height: 52px; font-size: 17px; padding: 0 28px; }
.shared-gone { max-width: 460px; margin: 30px auto 0; padding: 28px 22px; text-align: center; border-radius: var(--r-lg); background: var(--glass); box-shadow: 0 0 0 1px var(--rim); display: flex; flex-direction: column; gap: 10px; }
.shared-gone p { color: var(--ink-2); }
.shared-make { margin-top: 6px; font-size: 14px; }
.shared-make a { color: var(--blue-hi); text-underline-offset: 3px; }
