/* ================================
   MULTI-COIN 1H SNAPSHOT MODULE
   ================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: transparent;
  font-family: "Kode Mono", monospace;
  color: #e5e7eb;
  line-height: 1.45;
  -webkit-font-smoothing: subpixel-antialiased;
  text-rendering: geometricPrecision;
}

/* Outer overlay container (matches gun_price) */
#coin-overlay {
  width: 520px;
  max-width: 100vw;
  padding: 18px 20px 16px;
}

/* Background image layer */
#coin-list-section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit; /* match card corners */

  background: url("/public/assets/gunzilla_faded_background.jpg")
    center/cover no-repeat;

  opacity: 0.15;          /* <-- adjust this for more/less image visibility */
  pointer-events: none;
  z-index: 0;
}

/* Ensure content sits above the image layer */
#coin-list-section > * {
  position: relative;
  z-index: 1;
}

/* Header: title + LIVE on same row */
.header {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.title {
  font-family: "Kode Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e5e7eb;
}

/* LIVE pill with blinking dot */
.coin-list-meta {
  display: flex;
  align-items: center;
}

.meta-pill {
  position: relative;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 3px 10px 4px 20px; /* extra left space between dot and text */
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.5);
  color: #fecaca;
}

.meta-pill::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #f97316;
  transform: translateY(-50%);
  /* box-shadow: 0 0 8px rgba(249, 115, 22, 0.9); */
  animation: live-pulse 1.1s ease-in-out infinite;
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 0.4;
    box-shadow: 0 0 4px rgba(249, 115, 22, 0.5);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 12px rgba(249, 115, 22, 1);
  }
}

/* Main card (matches gun token card styling) */
#coin-list-section,
.coin-list-module {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(15, 23, 42, 0.8);
  padding: 16px 18px 14px;
  background: radial-gradient(circle at top left, #020617, #020314);
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}

/* Table layout – no inner border now */
.coin-list-table {
  padding: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Table head */
.coin-list-table-head {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr 1fr 1.3fr;
  align-items: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(148, 163, 184, 0.9);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.9);
}

.col {
  display: flex;
  align-items: center;
}

.col-asset {
  justify-content: flex-start;
}

.col-price,
.col-change,
.col-volume {
  justify-content: flex-end;
}

/* Body rows */
.coin-list-table-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.coin-row {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr 1fr 1.3fr;
  align-items: center;
  padding: 4px 0;
  column-gap: 4px;
}

.coin-row + .coin-row {
  border-top: 1px dashed rgba(30, 64, 175, 0.6);
}

/* Asset label */
.asset-symbol {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #e5e7eb;
  margin-right: 6px; /* space between BTC and Bitcoin */
}

.asset-name {
  font-size: 10px;
  color: rgba(148, 163, 184, 0.95);
}

/* Metrics */
.metric-value {
  font-size: 12px;
  letter-spacing: 0.02em;
}

.col-price .metric-value,
.col-change .metric-value {
  font-variant-numeric: tabular-nums;
}

/* Change color states */
.coin-change.is-up {
  color: #4ade80;
}

.coin-change.is-down {
  color: #fb7185;
}

/* Volume */
.col-volume .metric-value {
  font-size: 11px;
  color: rgba(209, 213, 219, 0.95);
}

/* Footer */
.coin-list-footer {
  margin-top: 4px;
}

.coin-list-footer .footnote {
  font-size: 9px;
  color: rgba(148, 163, 184, 0.8);
}
