/* Video invitation pages (/invitation, pay, my invitations). Loaded only on those pages. Uses tokens.css. */

/* gallery hero: same shell as the home hero (.hero2), with three phone posters instead of the photo mosaic */
.inv-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; margin: 0 0 var(--s4); }
.inv-hero .lead { color: #cbd5e1; max-width: 34rem; }
.inv-phones { display: flex; gap: clamp(8px, 1.6vw, 16px); justify-content: center; align-items: flex-end; }
.inv-phones img { width: 30%; height: auto; border-radius: 20px; border: 4px solid #0b1020; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.inv-phones img:nth-child(2) { width: 35%; transform: translateY(-16px); }
/* Hindi intro video in the hero: 16:9 beside the text, 9:16 when the hero stacks (hero.css stacks at 980px) */
.inv-intro { display: flex; justify-content: center; }
.inv-intro-v { display: block; width: 100%; height: auto; border-radius: 18px; background: #2a0618;
  border: 3px solid rgba(233, 182, 76, .55); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.inv-intro-m { display: none; }
@media (max-width: 980px) {
  .inv-intro-pc { display: none; }
  .inv-intro-m { display: block; max-width: 380px; }
}

.inv-strip { background: #fff7ed; border-bottom: 1px solid #fed7aa; }
.inv-strip .container { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); justify-content: center; padding-block: var(--s3); font-weight: 600; color: #7c2d12; font-size: .95rem; }

.inv-steps-grid { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.inv-steps-grid li { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow-sm); }
.inv-steps-grid h3 { margin: var(--s3) 0 var(--s2); font-size: 1.05rem; }
.inv-steps-grid p { margin: 0; color: var(--c-muted); font-size: .92rem; }
.inv-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 800; color: #111827;
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 60%, #f97316 100%); }

.inv-filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s4) 0 var(--s5); }
.inv-filters .chip { cursor: pointer; font-family: inherit; }
.inv-filters .chip.is-on { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }

.inv-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.inv-card[hidden] { display: none; }
.inv-cover { position: relative; aspect-ratio: 9 / 13; overflow: hidden; background: #1e1b4b; }
.inv-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.inv-cover .badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
/* sample video on the card: loads only when Play is pressed */
.inv-cover video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; background: #000; }
.inv-cover video:fullscreen { object-fit: contain; }
.inv-player { position: absolute; inset: 0; z-index: 1; }
.inv-play-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .85); background: rgba(15, 23, 42, .55); color: #fff; font-size: 24px; cursor: pointer; padding-left: 4px; }
.inv-play-big:hover { background: rgba(29, 78, 216, .85); }
.inv-player.is-playing .inv-play-big { display: none; }
.inv-vbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 8px; padding: 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.inv-vbar button { border: 0; border-radius: 999px; padding: 6px 12px; background: rgba(255, 255, 255, .92); color: #0f172a;
  font: 600 13px/1 var(--font, inherit); font-family: inherit; cursor: pointer; }
.inv-vbar button:hover { background: #fff; }
.inv-cover-word { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--s4); text-align: center;
  color: #fff; font: 700 2rem/1.15 var(--font-display); text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
.inv-cover-sagai { background: linear-gradient(160deg, #4a0e2e, #b0125b 60%, #f6a5c0); }
.inv-cover-mundan { background: linear-gradient(160deg, #6e2306, #e0701e 60%, #fde68a); }
.inv-cover-nikah { background: linear-gradient(160deg, #062e1d, #0f5132 60%, #d4af37); }
.badge-soon { background: #fef3c7; color: #92400e; }
.btn.is-disabled { opacity: .55; pointer-events: none; }

.inv-faq details { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: var(--s4); margin-bottom: var(--s3); }
.inv-faq summary { font-weight: 700; cursor: pointer; }
.inv-faq p { margin: var(--s3) 0 0; color: var(--c-ink-2); }

/* pay page */
.inv-pay-wrap { max-width: 920px; }
.inv-pay .facts { grid-template-columns: 1fr; }
.inv-pay .actions { margin-top: var(--s4); }
.inv-pay { display: grid; grid-template-columns: 200px 1fr; gap: var(--s6); align-items: start; margin-top: var(--s5);
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow-sm); }
.inv-pay-poster { width: 100%; height: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.inv-pay-name { margin: 0 0 var(--s4); font-size: 1.4rem; }
.inv-pay-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--c-line);
  margin: var(--s4) 0 var(--s2); padding-top: var(--s4); font-size: 1.1rem; }
.inv-pay-total b { font-size: 1.6rem; }

/* account: my invitations */
.inv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.inv-row { display: grid; grid-template-columns: 72px 1fr auto; gap: var(--s4); align-items: center; background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--s3); box-shadow: var(--shadow-sm); }
.inv-row img { width: 72px; height: 128px; object-fit: cover; border-radius: 10px; }
.inv-row-info { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.inv-row-info b { font-size: 1.05rem; }
.inv-row .item-actions { margin: 0; }

@media (max-width: 860px) {
  .inv-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inv-pay { grid-template-columns: 1fr; }
  .inv-pay-poster { max-width: 220px; }
}
@media (max-width: 560px) {
  .inv-steps-grid { grid-template-columns: 1fr; }
  .inv-row { grid-template-columns: 60px 1fr; }
  .inv-row img { width: 60px; height: 107px; }
  .inv-row .item-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* offers, limits (admin controls) */
.inv-offer { position: absolute; top: 10px; right: 10px; z-index: 2; background: #dc2626; color: #fff; font-weight: 800; font-size: .8rem;
  padding: 4px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.pcard-foot .price s { font-weight: 500; font-size: .85em; margin-right: 4px; }
.inv-offer-until { display: block; font-size: .7rem; font-weight: 600; color: #dc2626; }
.inv-pay-line { display: flex; justify-content: space-between; margin: 4px 0; color: var(--c-ink-2, #475569); }
.inv-limit-warn { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: var(--radius-sm, 10px); padding: 10px 14px; line-height: 1.55; margin: var(--s4, 16px) 0; }
.inv-usage { color: #0f172a; font-weight: 700; }
