/* ============================================================
   BP Pump Calculator — FOMO ladder styles
   Reuses the terminal theme variables from style.css (:root)
   ============================================================ */

:root {
  --pump-green: #3fd17f;
  --pump-green-dim: #1f6b43;
  --pump-gold: #e2c93a;
  --pump-red: #d65454;
}

/* (header nav styles live in the shared style.css) */

.pump-logo {
  color: var(--pump-green);
  text-shadow: 0 0 12px rgba(63, 209, 127, 0.35);
}

/* ---------- Hero: live price + 24h change ---------- */
.pump-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(63, 209, 127, 0.08), rgba(26, 26, 26, 0.4));
  border: 1px solid var(--pump-green-dim);
  border-radius: 6px;
}

.hero-label,
.hero-change-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hero-price {
  font-size: 3.2rem;
  font-weight: bold;
  line-height: 1;
  color: var(--pump-green);
  text-shadow: 0 0 18px rgba(63, 209, 127, 0.5);
}

.hero-change-block {
  text-align: right;
}

.hero-change {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.1;
}

.hero-change.up {
  color: var(--pump-green);
  text-shadow: 0 0 14px rgba(63, 209, 127, 0.45);
}

.hero-change.down {
  color: var(--pump-red);
}

.hero-fdv {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* ---------- Dynamic FOMO headline ---------- */
.fomo-headline {
  text-align: center;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--pump-gold);
  padding: 12px 10px;
  margin-bottom: 14px;
  min-height: 1.4em;
  border-top: 1px dashed var(--text-dim);
  border-bottom: 1px dashed var(--text-dim);
  text-shadow: 0 0 10px rgba(226, 201, 58, 0.3);
  animation: fomoGlow 2.5s ease-in-out infinite;
}

@keyframes fomoGlow {
  0%, 100% { opacity: 0.92; }
  50%      { opacity: 1; text-shadow: 0 0 16px rgba(226, 201, 58, 0.55); }
}

.pump-metrics {
  margin-bottom: 16px;
}

.pump-legend {
  line-height: 1.6;
}

/* ---------- Ladder ---------- */
.ladder-head {
  display: flex;
  justify-content: space-between;
  padding: 0 14px 6px;
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
  border-bottom: 1px solid var(--text-dim);
}

.ladder {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.ladder-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background-color: var(--secondary-color);
  border: 1px solid #262626;
  border-left: 3px solid var(--pump-green-dim);
  border-radius: 4px;
  overflow: hidden;
}

/* heat fill behind the content — width set inline by JS (cost / full-book cost) */
.ladder-row .heat {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(63, 209, 127, 0.22), rgba(226, 201, 58, 0.22));
  border-right: 1px solid rgba(63, 209, 127, 0.4);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ladder-row > .rung-target,
.ladder-row > .rung-cost {
  position: relative;
  z-index: 1;
}

.rung-target {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rung-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-color);
  line-height: 1;
}

.rung-badge {
  font-size: 0.75rem;
  color: var(--pump-green);
}

.rung-rocket {
  margin-right: 4px;
}

.rung-cost {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rung-cost-value {
  font-size: 1.45rem;
  font-weight: bold;
  color: var(--pump-green);
  line-height: 1;
  text-shadow: 0 0 10px rgba(63, 209, 127, 0.25);
}

.rung-cost-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* The cheapest next target — draw the eye */
.ladder-row.near {
  border-left-color: var(--pump-green);
  border-color: var(--pump-green-dim);
  animation: nearPulse 1.8s ease-in-out infinite;
}

@keyframes nearPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(63, 209, 127, 0); }
  50%      { box-shadow: 0 0 14px rgba(63, 209, 127, 0.35); }
}

/* Targets above the top of the sell wall — the wall is already gone */
.ladder-row.beyond {
  border-left-color: var(--pump-gold);
  opacity: 0.82;
}

.ladder-row.beyond .rung-cost-value {
  color: var(--pump-gold);
  text-shadow: 0 0 10px rgba(226, 201, 58, 0.25);
}

.ladder-row.beyond .heat {
  background: linear-gradient(90deg, rgba(226, 201, 58, 0.18), rgba(214, 84, 84, 0.18));
}

.wall-flag {
  font-size: 0.72rem;
  color: var(--pump-gold);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .hero-price { font-size: 2.4rem; }
  .hero-change { font-size: 1.5rem; }
  .fomo-headline { font-size: 1rem; }
  .rung-price { font-size: 1.2rem; }
  .rung-cost-value { font-size: 1.15rem; }
  .ladder-row { padding: 10px; }
}
