/* auth-gate.css — Modal popup styles for function-level wallet auth gating.
   Does NOT own page content or nav styles (shared.css). */

/* ── Modal backdrop (semi-transparent, no page blur) ── */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(8, 10, 20, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.auth-modal--hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── Modal card ──────────────────────────────────── */
.auth-modal__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 44px 36px 36px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 60px var(--accent-glow);
  animation: authModalIn 0.3s ease;
}

@keyframes authModalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Close button ────────────────────────────────── */
.auth-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.auth-modal__close:hover {
  color: var(--text);
}

/* ── Icon circle ─────────────────────────────────── */
.auth-modal__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(6,182,212,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

/* ── Text ────────────────────────────────────────── */
.auth-modal__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.auth-modal__desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* ── Connect button ──────────────────────────────── */
.auth-modal__connect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
  transition: all 0.25s;
}

.auth-modal__connect:hover {
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

/* ── Nav wallet indicator (shared across pages) ──── */
.nav-wallet {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--accent2);
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  cursor: pointer;
  transition: all 0.2s;
}

.nav-wallet:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.35);
}

.nav-wallet__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--high);
}

.nav-wallet__disconnect {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  margin-left: 4px;
}

.nav-wallet__disconnect:hover {
  color: var(--low);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 480px) {
  .auth-modal__card {
    padding: 36px 24px 28px;
  }
}
