/* ============================================================
   Coindaily - liquidations pages (overview + heatmaps)
   Complements styles.css.
   ============================================================ */

.page-hero { padding: 18px 0 20px; border-bottom: 1px solid var(--hairline); }
.page-hero .ph-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.page-hero .ph-logo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #16171b; }
.page-hero h1 { font-size: 24px; font-weight: 700; color: var(--tx-hi); letter-spacing: -0.025em; }
.page-hero .ph-sym { font-family: var(--mono); font-size: 12px; color: var(--tx-mid); background: var(--panel-2); border: 1px solid var(--hairline); padding: 2px 7px; border-radius: 5px; text-transform: uppercase; }
.page-hero .ph-sub { font-size: 13px; color: var(--tx-dim); margin-top: 6px; }
.page-hero .ph-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* stat strip */
.liq-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--hairline-2); border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; margin: 20px 0; }
.liq-stat { background: var(--panel); padding: 15px 16px; }
.liq-stat .l { font-size: 10.5px; color: var(--tx-dim); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 9px; }
.liq-stat .v { font-family: var(--mono); font-size: 19px; color: var(--tx-hi); font-weight: 600; letter-spacing: -0.01em; }
.liq-stat .d { font-family: var(--mono); font-size: 11.5px; margin-top: 6px; }

/* long/short split bar */
.ls-split { height: 7px; border-radius: 4px; overflow: hidden; display: flex; margin-top: 9px; }
.ls-split .lo { background: var(--up); } .ls-split .sh { background: var(--down); }
.ls-legend { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; margin-top: 7px; }

/* layout */
.liq-grid { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; padding: 4px 0 22px; }
.liq-col { display: flex; flex-direction: column; gap: 18px; }

/* heatmap */
.heat-toolbar { display: flex; align-items: center; gap: 10px; }
.lev-tabs { display: flex; gap: 1px; background: var(--hairline-2); border: 1px solid var(--hairline); border-radius: var(--r-sm); overflow: hidden; }
.lev-tabs button { padding: 4px 11px; font-family: var(--mono); font-size: 11px; color: var(--tx-dim); background: var(--panel); transition: .12s; }
.lev-tabs button.active { color: var(--amber); }
.lev-tabs button:hover { color: var(--tx); }
.heat-wrap { position: relative; background: #0a0a0b; }
.heat-canvas { display: block; width: 100%; height: 460px; }
.heat-ylab { position: absolute; right: 9px; font-family: var(--mono); font-size: 10px; color: var(--tx-hi); background: rgba(8,8,9,.62); padding: 1px 5px; border-radius: 3px; transform: translateY(-50%); pointer-events: none; }
.heat-xlab { position: absolute; bottom: 5px; font-family: var(--mono); font-size: 10px; color: var(--tx-mid); transform: translateX(-50%); pointer-events: none; }
.heat-pxtag { position: absolute; right: 9px; font-family: var(--mono); font-size: 11px; font-weight: 700; color: #100B02; background: var(--amber); padding: 2px 7px; border-radius: 4px; transform: translateY(-50%); pointer-events: none; }
.heat-legend { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--hairline-2); font-family: var(--mono); font-size: 10.5px; color: var(--tx-dim); }
.heat-legend .bar { flex: 1; max-width: 260px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #0a0a0b, #16263f, #1d7d83, #3fa05a, #d9a93a, #ffe9a8); }

/* levels table */
.lvl-table { width: 100%; border-collapse: collapse; }
.lvl-table thead th { text-align: right; font-size: 10px; color: var(--tx-dim); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; padding: 10px 14px; border-bottom: 1px solid var(--hairline); }
.lvl-table th:first-child, .lvl-table td:first-child { text-align: left; }
.lvl-table td { padding: 11px 14px; border-bottom: 1px solid var(--hairline-2); text-align: right; font-family: var(--mono); font-size: 12.5px; color: var(--tx); }
.lvl-table tbody tr:last-child td { border-bottom: none; }
.lvl-table tbody tr:hover { background: rgba(255,255,255,.018); }
.side-tag { display: inline-block; font-family: var(--mono); font-size: 10px; padding: 2px 7px; border-radius: 5px; letter-spacing: .04em; }
.side-tag.long { color: var(--up); background: var(--up-bg); }
.side-tag.short { color: var(--down); background: var(--down-bg); }

/* overview bars chart */
.liqbars-wrap { padding: 14px 14px 6px; position: relative; }
.liqbars { width: 100%; height: 250px; display: block; }
.liqbars-mid { position: absolute; left: 14px; right: 14px; top: 50%; height: 1px; background: var(--hairline); }

/* by-asset / by-exchange tables (reuse screener look) */
.liq-table { width: 100%; border-collapse: collapse; }
.liq-table thead th { text-align: right; font-size: 10px; color: var(--tx-dim); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; padding: 11px 14px; border-bottom: 1px solid var(--hairline); }
.liq-table th:nth-child(1), .liq-table th:nth-child(2), .liq-table td:nth-child(1), .liq-table td:nth-child(2) { text-align: left; }
.liq-table td { padding: 12px 14px; border-bottom: 1px solid var(--hairline-2); text-align: right; font-family: var(--mono); font-size: 12.5px; color: var(--tx); }
.liq-table tbody tr:last-child td { border-bottom: none; }
.liq-table tbody tr.clickable { cursor: pointer; }
.liq-table tbody tr:hover { background: rgba(255,255,255,.018); }
.liq-asset { display: flex; align-items: center; gap: 10px; }
.liq-asset img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: #16171b; }
.liq-asset .s { font-family: var(--sans); font-weight: 600; color: var(--tx-hi); }
.liq-asset .n { font-family: var(--sans); font-size: 10.5px; color: var(--tx-dim); }
.mini-ls { width: 116px; height: 5px; border-radius: 3px; overflow: hidden; display: inline-flex; vertical-align: middle; }
.mini-ls .lo { background: var(--up); } .mini-ls .sh { background: var(--down); }
.arrow-link { color: var(--amber); font-size: 12px; }

/* liquidation treemap */
.tm-wrap { position: relative; width: 100%; height: 420px; }
.tm-tile { position: absolute; border: 1px solid rgba(8,8,9,.65); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4px; overflow: hidden; transition: filter .1s; }
.tm-tile:hover { filter: brightness(1.16); }
.tm-tile .ts { font-weight: 700; color: #EAEEF3; line-height: 1.05; letter-spacing: -0.01em; }
.tm-tile .tc { font-family: var(--mono); color: rgba(234,238,243,.82); margin-top: 4px; }

/* other heatmaps / similar list */
.sim-row { display: flex; align-items: center; gap: 11px; padding: 11px 16px; border-bottom: 1px solid var(--hairline-2); font-size: 13px; }
.sim-row:last-child { border-bottom: none; }
.sim-row:hover { background: rgba(255,255,255,.018); }
.sim-row img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.sim-row .s { font-weight: 600; color: var(--tx-hi); }
.sim-row .n { font-size: 11px; color: var(--tx-dim); }
.sim-row .px { margin-left: auto; font-family: var(--mono); text-align: right; }

@media (max-width: 1000px) {
  .liq-grid { grid-template-columns: 1fr; }
  .liq-stats { grid-template-columns: repeat(2, 1fr); }
}

/* heatmap loading skeleton - shimmer the canvas area until the real CoinGlass heatmap lands */
@keyframes liq-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
#heat-wrap.liq-loading { position: relative; }
#heat-wrap.liq-loading::after {
  content: ""; position: absolute; inset: 0; border-radius: 8px; pointer-events: none;
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--elevated) 37%, var(--panel-2) 63%);
  background-size: 400% 100%; animation: liq-shimmer 1.3s ease-in-out infinite;
}
/* a second range-tab group sits beside the venue tabs in the heatmap header */
#heat-range { margin-left: 8px; }

/* overview loading skeleton - shimmer the stats/tables/treemap until real CoinGlass data lands */
body.liq-ov-loading .liq-stat .v,
body.liq-ov-loading #ov-ls-long,
body.liq-ov-loading #ov-ls-short {
  color: transparent; border-radius: 5px;
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--elevated) 37%, var(--panel-2) 63%);
  background-size: 400% 100%; animation: liq-shimmer 1.3s ease-in-out infinite;
}
.liq-sk-row td { padding: 12px 14px; border-bottom: 1px solid var(--hairline-2); }
.liq-sk-row:last-child td { border-bottom: none; }
.liq-sk { display: block; height: 13px; border-radius: 4px; max-width: 150px;
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--elevated) 37%, var(--panel-2) 63%);
  background-size: 400% 100%; animation: liq-shimmer 1.3s ease-in-out infinite; }
.liq-tm-sk { width: 100%; height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--elevated) 37%, var(--panel-2) 63%);
  background-size: 400% 100%; animation: liq-shimmer 1.3s ease-in-out infinite; }
