/* /Components/Pages/GemAlerts.razor.rz.scp.css */
/* ── Score column ─────────────────────────────────────────── */
.gem-score-wrap[b-uw0jkfs2bt] {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    /* anchor for the absolute popup */
}

.gem-info-btn[b-uw0jkfs2bt] {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1;
}

.gem-info-btn:hover[b-uw0jkfs2bt] {
    opacity: 1;
}

.gem-score-breakdown[b-uw0jkfs2bt] {
    position: absolute;
    /* float above the table — never pushes content down */
    top: calc(100% + 4px);
    /* appears just below the score badge */
    left: 0;
    z-index: 200;
    /* above sticky header, above table rows */
    padding: 10px 12px;
    background: var(--tg-surface, #1e2432);
    border: 1px solid var(--tg-border, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--tg-text, #e2e8f0);
    min-width: 200px;
    max-width: 320px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.gem-score-why[b-uw0jkfs2bt] {
    margin-bottom: 8px;
    font-style: italic;
    color: var(--tg-muted, #94a3b8);
    line-height: 1.4;
}

.gem-score-pills[b-uw0jkfs2bt] {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.gem-score-pill[b-uw0jkfs2bt] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    color: var(--tg-text, #e2e8f0);
    white-space: nowrap;
}

.gem-pill-green[b-uw0jkfs2bt] {
    background: rgba(16, 185, 129, 0.18);
    color: #10b981;
}

.gem-pill-red[b-uw0jkfs2bt] {
    background: rgba(239, 68, 68, 0.18);
    color: #ef4444;
}

.gem-pill-hot[b-uw0jkfs2bt] {
    background: rgba(251, 146, 60, 0.18);
    color: #fb923c;
}

/* ── Price column ─────────────────────────────────────────── */
.gem-price-cell[b-uw0jkfs2bt] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gem-price-val[b-uw0jkfs2bt] {
    font-weight: 600;
    font-size: 0.92rem;
}

.gem-change-pill[b-uw0jkfs2bt] {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 20px;
    white-space: nowrap;
}

.gem-change-up[b-uw0jkfs2bt] {
    background: rgba(16, 185, 129, 0.18);
    color: #10b981;
}

.gem-change-dn[b-uw0jkfs2bt] {
    background: rgba(239, 68, 68, 0.18);
    color: #ef4444;
}

/* Table text: use CSS variable so dark/light mode work automatically.
   Must be in this scoped file because Blazor scoped CSS has priority
   over global selectors in main.css for elements inside this component. */
thead th[b-uw0jkfs2bt],
tbody td[b-uw0jkfs2bt],
tbody td strong[b-uw0jkfs2bt],
tbody td small[b-uw0jkfs2bt] {
    color: var(--tg-text) !important;
}
