/* AgdpEpochs — Virtuals aGDP epoch-leaderboard panel.
   Reuses the hub's dark-card + blue-accent (#60a5fa) design vocabulary and
   composes MetricTile for the stat row. */

.agdp-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* --- epoch selector (pills) --- */
.agdp-panel__selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.agdp-epoch-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 0.78rem;
    color: var(--color-text-secondary, #d1d5db);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.agdp-epoch-pill:hover {
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.3);
    color: var(--color-text-primary, #f3f4f6);
}
.agdp-epoch-pill--active {
    background: rgba(96, 165, 250, 0.16);
    border-color: rgba(96, 165, 250, 0.5);
    color: #93c5fd;
}
.agdp-epoch-pill__live {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(34, 197, 94, 0.16);
    color: #6ee7a8;
}

/* --- epoch meta + stats --- */
.agdp-panel__range {
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 0.74rem;
    color: var(--color-text-muted, #9ca3af);
}
.agdp-panel__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

/* --- leaderboard table --- */
.agdp-lb__wrap {
    margin-top: 12px;
    overflow-x: auto;
}
.agdp-lb {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.agdp-lb thead th {
    text-align: right;
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted, #9ca3af);
    font-weight: 500;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.agdp-lb thead th:nth-child(2) { text-align: left; }
.agdp-lb tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary, #f3f4f6);
    vertical-align: middle;
}
.agdp-lb tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.agdp-lb__rank {
    text-align: center;
    width: 34px;
    font-family: var(--font-mono, ui-monospace, monospace);
    color: var(--color-text-muted, #9ca3af);
}
.agdp-lb__num {
    text-align: right;
    font-family: var(--font-mono, ui-monospace, monospace);
    white-space: nowrap;
}
.agdp-lb__prize { color: #93c5fd; }
.agdp-lb__name {
    color: var(--color-text-primary, #f3f4f6);
    text-decoration: none;
    font-weight: 600;
}
a.agdp-lb__name:hover { color: #60a5fa; text-decoration: underline; }
.agdp-lb__sym {
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 0.72rem;
    color: var(--color-text-muted, #9ca3af);
    margin-left: 4px;
}
.agdp-lb__cat {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #a5b4fc;
    background: rgba(129, 140, 248, 0.1);
    border-radius: 3px;
    vertical-align: middle;
}
.agdp-lb__empty {
    text-align: center !important;
    color: var(--color-text-muted, #9ca3af);
    padding: 18px !important;
}

/* --- ACP companion line --- */
.agdp-panel__acp {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    color: var(--color-text-muted, #9ca3af);
}
.agdp-panel__acp strong {
    color: var(--color-text-secondary, #d1d5db);
    font-weight: 600;
}

@media (max-width: 560px) {
    .agdp-lb__cat { display: none; }
    .agdp-panel__acp { font-size: 0.72rem; }
}
