/* ============================================================================
 * components/panels.css — card / panel surfaces
 * ============================================================================
 * Depends on: core/tokens.css
 * Authoritative source: ForceX_Typography_and_CSS_Catalog_Spec.md §"Cards"
 *
 * Variants:
 *   .panel          — standard panel
 *   .panel-compact  — denser variant
 *   .panel-feature  — emphasized variant (homepage hero, key marketing modules)
 * ========================================================================== */

.panel {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}

.panel-compact { padding: var(--space-5); }
.panel-feature { padding: var(--space-8); }

/* ── Metric tile with navigation CTA ─────────────────────────────────── */
/* Used on xplorer chain-home for tiles that link to a deeper surface.
 * Tile itself is informational (not a link). The CTA circle is the sole
 * interactive navigation element. Append .fx-metric-cta-tile on a
 * .panel-compact to reserve right-side space for the circle. */
.fx-metric-cta-tile { position: relative; padding-right: calc(var(--space-4) + 44px + var(--space-5)); }

.fx-metric-tile-cta {
  position: absolute;
  top: 50%;
  right: var(--space-4);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent-lt);
  text-decoration: none;
  transition: background var(--motion-base), color var(--motion-base);
}
.fx-metric-tile-cta svg {
  width: 18px;
  height: 18px;
  transition: transform var(--motion-base);
}
.fx-metric-tile-cta:hover,
.fx-metric-tile-cta:focus-visible {
  background: var(--accent-bg-strong);
  color: var(--accent);
}
.fx-metric-tile-cta:hover svg { transform: translate(1px, -1px); }
.fx-metric-tile-cta:focus-visible {
  outline: 2px solid var(--accent-lt);
  outline-offset: 2px;
}

.panel-header {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--text);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-5);
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
