/* /connect/views/invite.css — Member Invite v1
 * Refinement layer loaded AFTER views.css so it wins the cascade at equal
 * specificity. Matches the Directory/Give "Vibrant Community" style: token
 * colours only (the sole literals are the on-gradient ink #fff and neutral
 * scrim/shadow alpha). Scoped to #bcc-view-invite / .ivx — no global rules.
 * Breakpoints: desktop >=1025 | tablet 768-1024 | mobile <=767 | phone <=480.
 * ─────────────────────────────────────────────────────────────────── */

/* Hidden attribute must beat the display rules below. */
#bcc-view-invite [hidden] { display: none !important; }

/* ================================================================
   1. HERO / HEADER
============================================================= */
.ivx { display: flex; flex-direction: column; }

.ivx-hero {
  position:      relative;
  overflow:      hidden;
  border:        1px solid var(--bcc-border-strong);
  border-radius: var(--bcc-r-xl);
  background:    linear-gradient(135deg, var(--bcc-primary) 0%, var(--bcc-primary-hover) 52%, var(--bcc-accent) 132%);
  box-shadow:    var(--bcc-shadow-2);
  padding:       var(--bcc-s8) var(--bcc-s6);
  margin-bottom: var(--bcc-s5);
}
.ivx-hero::before {
  content:    '';
  position:   absolute;
  inset:      0;
  background: radial-gradient(ellipse at 88% 8%, rgba(255,255,255,.14) 0%, transparent 56%),
              linear-gradient(180deg, rgba(0,0,0,0) 46%, rgba(0,0,0,.24) 100%);
  pointer-events: none;
}
.ivx-hero-inner { position: relative; z-index: 1; max-width: 600px; }
.ivx-hero-chip {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           46px;
  height:          46px;
  margin-bottom:   var(--bcc-s3);
  border-radius:   var(--bcc-r-md);
  background:      rgba(255,255,255,.16);
  color:           #fff;
  backdrop-filter: blur(4px);
}
.ivx .ivx-hero-title {
  font-family:    var(--bcc-font-display);
  font-size:      var(--bcc-t-3xl);
  font-weight:    600;
  letter-spacing: -.01em;
  line-height:    1.15;
  color:          #fff;
  margin:         0 0 var(--bcc-s1);
}
.ivx-hero-sub {
  font-size: var(--bcc-t-sm);
  line-height: 1.5;
  color: rgba(255,255,255,.86);
  margin: 0;
}

/* ================================================================
   2. CARD
============================================================= */
.ivx .ivx-card {
  display:        flex;
  flex-direction: column;
  gap:            var(--bcc-s5);
  padding:        var(--bcc-s6);
}

/* ================================================================
   3. LINK ROW
============================================================= */
.ivx-link-block { display: flex; flex-direction: column; gap: var(--bcc-s2); }
.ivx-link-row {
  display:     flex;
  align-items: stretch;
  gap:         var(--bcc-s2);
}
.ivx .ivx-link-input {
  flex:              1 1 auto;
  min-width:         0;
  font-family:       ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size:         var(--bcc-t-sm);
  text-overflow:     ellipsis;
  white-space:       nowrap;
  overflow:          hidden;
  background:        var(--bcc-surface-2);
}
.ivx .ivx-copy-btn {
  flex:      0 0 auto;
  display:   inline-flex;
  align-items: center;
  gap:       var(--bcc-s2);
  white-space: nowrap;
}
.ivx .ivx-copy-btn .bcc-icon { width: 16px; height: 16px; }

/* ================================================================
   4. QR BLOCK
============================================================= */
.ivx-qr-block {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            var(--bcc-s2);
}
.ivx-qr {
  display:       block;
  width:         200px;
  height:        200px;
  padding:       var(--bcc-s3);
  background:    #fff;
  border:        1px solid var(--bcc-border);
  border-radius: var(--bcc-r-lg);
  box-shadow:    var(--bcc-shadow-1);
}
.ivx-qr-hint {
  font-size: var(--bcc-t-xs);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bcc-ink-3);
  margin: 0;
}

/* ================================================================
   5. SHARE ROW
============================================================= */
.ivx-share-row {
  display:   flex;
  flex-wrap: wrap;
  gap:       var(--bcc-s2);
}
.ivx .ivx-share-btn {
  flex:            1 1 0;
  min-width:       120px;
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             var(--bcc-s2);
  text-decoration: none;
}
.ivx .ivx-share-btn .bcc-icon { width: 16px; height: 16px; }

/* ================================================================
   6. EXPLAINER
============================================================= */
.ivx-explainer {
  font-size:   var(--bcc-t-sm);
  line-height: 1.55;
  color:       var(--bcc-ink-2);
  margin:      0;
  padding-top: var(--bcc-s3);
  border-top:  1px solid var(--bcc-border);
}

/* ================================================================
   7. LOADING / ERROR STATES
============================================================= */
.ivx-state {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  justify-content: center;
  gap:            var(--bcc-s3);
  text-align:     center;
  padding:        var(--bcc-s8) var(--bcc-s4);
}
.ivx-state-text {
  font-size: var(--bcc-t-sm);
  color:     var(--bcc-ink-2);
  margin:    0;
}
.ivx-state-icon {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           48px;
  height:          48px;
  border-radius:   var(--bcc-r-pill);
  background:      var(--bcc-warning-soft);
  color:           var(--bcc-warning);
}
.ivx-state-error .ivx-state-text { color: var(--bcc-ink); }

/* ================================================================
   8. RESPONSIVE
============================================================= */
@media (max-width: 767px) {
  .ivx-hero      { padding: var(--bcc-s6) var(--bcc-s5); }
  .ivx .ivx-card { padding: var(--bcc-s5); }
  .ivx .ivx-hero-title { font-size: var(--bcc-t-2xl); }
}

@media (max-width: 520px) {
  .ivx-link-row { flex-direction: column; }
  .ivx .ivx-copy-btn { justify-content: center; }
  .ivx .ivx-share-btn { flex: 1 1 100%; }
  .ivx-qr { width: 168px; height: 168px; }
}

@media (pointer: coarse) {
  #bcc-view-invite .bcc-btn { min-height: 44px; }
}
