/* wallet.css — Wallet connection button, modal, and nav indicator styles.
   Does NOT own nav layout (shared.css), page gating (auth-gate.css). */

/* ── Nav connect button ──────────────────────────── */
.nav-wallet-wrap {
  display: flex;
  align-items: center;
}

.nav-connect-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: none;
  border-radius: 20px;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.25s;
  box-shadow: 0 2px 16px var(--accent-glow);
  white-space: nowrap;
}

.nav-connect-btn:hover {
  box-shadow: 0 4px 24px var(--accent-glow), 0 0 0 2px rgba(99, 102, 241, 0.25);
  transform: translateY(-1px);
}

.nav-connect-btn svg {
  opacity: 0.85;
}

/* ── Nav wallet info (logged in) ─────────────────── */
.nav-wallet-info {
  display: flex;
  align-items: center;
  gap: 8px;
  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;
  font-size: 0.78rem;
  color: var(--accent2);
}

.nav-wallet-info: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);
  flex-shrink: 0;
}

.nav-wallet-addr {
  cursor: pointer;
  font-family: 'DM Sans', monospace;
  letter-spacing: 0.02em;
}

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

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

/* ── Wallet selection modal ──────────────────────── */
.wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(8, 10, 20, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.25s ease;
}

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

.wallet-modal__card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  max-width: 420px;
  width: 92%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 60px var(--accent-glow);
  animation: walletCardIn 0.3s ease;
}

@keyframes walletCardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.wallet-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
}

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

.wallet-modal__icon {
  width: 56px;
  height: 56px;
  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;
}

.wallet-modal__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

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

/* ── Wallet options ──────────────────────────────── */
.wallet-modal__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wallet-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  width: 100%;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  font-size: inherit;
}

.wallet-option:hover {
  border-color: var(--border-strong);
  background: var(--surface3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.wallet-option:disabled {
  opacity: 0.55;
  cursor: wait;
}

.wallet-option__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wallet-option__logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.wallet-option__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
}

.wallet-option__hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.wallet-option__badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent2);
  background: rgba(6, 182, 212, 0.12);
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.wallet-option--mm:hover {
  border-color: rgba(225, 119, 38, 0.4);
}

.wallet-option--wc:hover {
  border-color: rgba(51, 150, 255, 0.4);
}

/* ── Modal status text ───────────────────────────── */
.wallet-modal__status {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--accent2);
  min-height: 20px;
}

.wallet-modal__status--error {
  color: var(--low);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .nav-connect-btn {
    padding: 7px 14px;
    font-size: 0.76rem;
  }

  .nav-wallet-info {
    padding: 5px 12px;
    font-size: 0.74rem;
  }
}

@media (max-width: 480px) {
  .wallet-modal__card {
    padding: 32px 24px;
  }

  .wallet-option {
    padding: 12px 14px;
  }
}
