/* Section: Whale Alerts — scoped styles.
 *
 * Every rule sits under .section--whale-alerts so this stylesheet can
 * load in any order on any page without leaking. Color tokens come
 * from shared/css/base.css (--color-bg-card, --color-border, etc.) so
 * the section automatically picks up the active theme.
 *
 * Replaces the legacy whale-* rules in icm-research/dashboard-styles.css
 * (deletable once the 19 base/* migration completes). */

.section--whale-alerts .section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section--whale-alerts .section-status {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

.section--whale-alerts .section-help {
  margin: 0 0 0.85rem 0;
  font-size: 0.78rem;
  color: var(--color-text-dim);
}

.whale-list {
  display: grid;
  gap: 0.75rem;
}

.whale-card {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem 0.85rem 1.1rem;
  overflow: hidden;
  background: linear-gradient(145deg, var(--color-bg-card) 0%, rgba(212, 175, 55, 0.02) 100%);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.whale-card[hidden] { display: none; }

.whale-card::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: rgba(148, 163, 184, 0.25);
  transition: background 0.2s;
}

.whale-card--up::before {
  background: linear-gradient(180deg,
    var(--color-positive, #4ade80) 0%,
    rgba(74, 222, 128, 0.4) 100%);
}

.whale-card--down::before {
  background: linear-gradient(180deg,
    var(--color-negative, #f87171) 0%,
    rgba(248, 113, 113, 0.4) 100%);
}

.whale-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .whale-card,
  .whale-card:hover { transition: none; transform: none; }
}

.whale-rank {
  display: flex;
  justify-content: center;
  align-items: center;
}

.whale-rank-num {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 1.9rem;
  height: 1.9rem;
  padding: 0 0.45rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0.05) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  color: var(--gold-primary, #d4af37);
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.whale-card[data-rank="1"] .whale-rank-num {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.32) 0%, rgba(212, 175, 55, 0.10) 100%);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.18);
}

.whale-main {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.whale-wallet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.whale-wallet-link {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px dotted var(--color-text-dim);
}

.whale-wallet-link:hover {
  color: var(--gold-primary, #d4af37);
  border-bottom-style: solid;
}

.whale-type {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-muted);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.whale-type--lp        { color: var(--color-info,    #60a5fa); border-color: rgba(96,165,250,0.4); }
.whale-type--cex       { color: var(--color-warning, #fbbf24); border-color: rgba(251,191,36,0.4); }
.whale-type--treasury  { color: var(--accent-purple, #a78bfa); border-color: rgba(167,139,250,0.4); }
.whale-type--locked    { color: var(--color-text-dim); border-color: var(--color-border); }
.whale-type--retail    { color: var(--color-text-muted); border-color: var(--color-border); }

.whale-changes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--color-text-dim);
  font-size: 0.75rem;
}

.whale-change {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.whale-change-arrow {
  font-size: 0.7rem;
}

.whale-change-period {
  color: var(--color-text-muted);
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.whale-change-val {
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  color: var(--color-text);
}

.whale-change--up   .whale-change-val,
.whale-change--up   .whale-change-arrow { color: var(--color-positive, #4ade80); }

.whale-change--down .whale-change-val,
.whale-change--down .whale-change-arrow { color: var(--color-negative, #f87171); }

.whale-mag-bar {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.whale-mag-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: var(--color-text-dim);
  transition: width 0.4s ease;
}

.whale-mag-fill--up   { background: linear-gradient(90deg, var(--color-positive, #4ade80), rgba(74, 222, 128, 0.4)); }
.whale-mag-fill--down { background: linear-gradient(90deg, var(--color-negative, #f87171), rgba(248, 113, 113, 0.4)); }
.whale-mag-fill--flat { background: var(--color-text-dim); }

.whale-empty {
  padding: 1rem;
  text-align: center;
  color: var(--color-text-muted);
  background: var(--color-bg-card);
  border: 1px dashed var(--color-border);
  border-radius: 10px;
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .whale-card { grid-template-columns: 1.9rem 1fr; padding: 0.7rem 0.85rem; }
  .whale-rank-num { min-width: 1.6rem; height: 1.6rem; font-size: 0.7rem; }
  .whale-changes { gap: 0.5rem; }
}
