/* css/rgpt-token.css
 *
 * Robin OS — Sprint 15.2 (RGPT Token UX Foundation).
 * Dedicated stylesheet for the RGPT Token modal/card — same one-file-
 * per-feature convention as css/swap-bridge.css and css/analyze-premium.css.
 * Every value below is an EXISTING design token from css/style.css
 * (--primary, --radius-*, --font-*, --warning, --shadow-*, etc.) — no
 * new colors, fonts, or spacing scales are introduced.
 *
 * UI FOUNDATION ONLY: nothing here reflects live data. Every number/
 * price/stat in the markup this file styles is a static "Launching
 * Soon" placeholder — see js/rgpt/rgptTokenModal.js's own header
 * comment for the full list of what is deliberately NOT implemented
 * yet (no API calls, no routing, no blockchain reads, no Virtuals/
 * DexScreener integration, no live price).
 */

/* Standard visually-hidden-but-accessible utility — not previously
 * defined anywhere in this codebase; added here since this modal is
 * the first to need it (a real <h2> for screen readers/aria-labelledby
 * without a traditional visible title bar, since the header row above
 * already carries the visual identity). Generic enough to promote to
 * css/style.css later if another feature needs the same pattern. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.modal--rgpt-token {
  width: 420px;
  position: relative; /* anchors .rgpt-toast to this modal's box, not the full-screen .modal-overlay */
}

.rgpt-token-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px 0;
}

.rgpt-token-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--surface-solid);
}

.rgpt-token-identity {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.rgpt-token-symbol-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rgpt-token-symbol {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.rgpt-token-name {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Reuses the exact visual language already established for
 * "coming soon" states elsewhere in this codebase — see
 * css/style.css's .integration-list .pill.coming-soon and
 * .integration-list .dot.coming-soon (amber, calm, never alarming). */
.rgpt-coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--warning-dim);
  border: 1px solid rgba(232, 185, 59, 0.3);
  color: var(--warning);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.rgpt-coming-soon-badge .rgpt-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 6px rgba(255, 184, 0, 0.35);
  animation: pulse-dot 1.4s ease-in-out infinite;
}

.rgpt-token-price-block {
  margin: 18px 20px 0;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}

.rgpt-token-price-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
}

.rgpt-token-price-caption {
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-tertiary);
}

.rgpt-token-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 20px 0;
}

.rgpt-token-stat {
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}

.rgpt-token-stat-label {
  font-family: var(--font-body);
  font-size: 10.5px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rgpt-token-stat-value {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.rgpt-token-description {
  margin: 16px 20px 0;
  padding: 0 2px;
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.rgpt-token-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 20px 22px;
}

.rgpt-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.1s var(--ease);
}
.rgpt-action-btn:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.rgpt-action-btn:active { transform: scale(0.97); }
.rgpt-action-btn svg { flex: 0 0 auto; }

/* A subtle accent treatment for the primary action (View on Virtuals) —
 * still fully inert (Launching Soon on click), just visually first in
 * priority, matching how a real "primary" CTA would eventually look. */
.rgpt-action-btn--accent {
  background: var(--primary-dim);
  border-color: rgba(0, 200, 5, 0.3);
  color: var(--primary);
}
.rgpt-action-btn--accent:hover { background: rgba(0, 200, 5, 0.2); }

/* ---- Toast ---- */
/* Self-contained, scoped to this feature — no site-wide toast system
 * exists yet, so this is deliberately minimal rather than a shared
 * mechanism other features would need to adopt too. */

.rgpt-toast {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(12px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 5;
}
.rgpt-toast.rgpt-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.rgpt-toast-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warning);
  flex: 0 0 auto;
}

@media (max-width: 480px) {
  .modal--rgpt-token { width: 100%; }
  .rgpt-token-stats-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .rgpt-token-actions { grid-template-columns: 1fr; }
  .rgpt-toast { width: calc(100% - 40px); justify-content: center; white-space: normal; text-align: center; }
}
