/* ═══════════════════════════════════════════════════════════════
   Poker Mavens — League Pro  |  league.css
   ═══════════════════════════════════════════════════════════════ */

/* ── Shared table ─────────────────────────────────────────────── */
.pml-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

.pml-table th,
.pml-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,.08);
    white-space: nowrap;
}

.pml-table th {
    background: rgba(0,0,0,.25);
    font-weight: 600;
    font-size: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--mvpx-text-muted, #a0aec0);
}

.pml-table td {
    color: var(--mvpx-text, #e2e8f0);
}

.pml-table tbody tr:hover {
    background: rgba(255,255,255,.04);
}

/* ── Column widths ────────────────────────────────────────────── */
.pml-col-rank   { width: 38px; text-align: center; }
.pml-col-pts    { width: 70px; text-align: right; }
.pml-col-events { width: 60px; text-align: center; }
.pml-col-best   { width: 60px; text-align: center; }

/* ── Medal decorations for top 3 ─────────────────────────────── */
.pml-medal { font-size: 1.1rem; }

.pml-top-1 td { background: rgba(212,175,55,.07); }
.pml-top-2 td { background: rgba(192,192,192,.05); }
.pml-top-3 td { background: rgba(205,127,50,.04); }

/* ── Frontend standings widget ────────────────────────────────── */
.pml-standings {
    background: var(--mvpx-surface, #1a202c);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.08);
    overflow: hidden;
}

.pml-standings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    background: rgba(0,0,0,.2);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.pml-standings-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--mvpx-text, #e2e8f0);
}

.pml-standings-cycle {
    font-size: .7rem;
    background: rgba(255,255,255,.08);
    border-radius: 99px;
    padding: 2px 10px;
    color: var(--mvpx-text-muted, #a0aec0);
    font-family: monospace;
}

.pml-view-more-wrap {
    padding: 10px 16px;
    text-align: center;
}

.pml-view-more-btn {
    font-size: .75rem;
    padding: 6px 18px;
    cursor: pointer;
}

.pml-empty {
    padding: 20px 16px;
    color: var(--mvpx-text-muted, #a0aec0);
    font-size: .85rem;
    text-align: center;
}

.pml-error {
    color: #fc8181;
    font-size: .85rem;
}

/* ── Admin styles ─────────────────────────────────────────────── */
.pml-admin-wrap {
    padding-top: 16px;
}

.pml-subnav {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pml-subnav-link {
    padding: 6px 14px;
    border-radius: 6px 6px 0 0;
    background: #2d3748;
    color: #a0aec0;
    text-decoration: none;
    font-size: .85rem;
    border: 1px solid rgba(255,255,255,.08);
    border-bottom: none;
    transition: background .15s;
}

.pml-subnav-link:hover,
.pml-subnav-link.active {
    background: #1a202c;
    color: #e2e8f0;
}

.pml-form-table th {
    width: 200px;
    font-weight: 600;
}

.pml-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: .7rem;
    font-weight: 600;
}

.pml-badge-done {
    background: rgba(72,187,120,.15);
    color: #68d391;
    border: 1px solid rgba(72,187,120,.3);
}

.pml-badge-pending {
    background: rgba(237,137,54,.15);
    color: #fbd38d;
    border: 1px solid rgba(237,137,54,.3);
}

/* Archive list */
.pml-archive-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pml-archive-list li {
    margin-bottom: 4px;
}

.pml-archive-list a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    background: rgba(255,255,255,.04);
    color: #a0aec0;
    font-size: .85rem;
    transition: background .15s;
}

.pml-archive-list a:hover,
.pml-archive-list a.pml-active {
    background: rgba(255,255,255,.1);
    color: #e2e8f0;
}

.pml-archive-list small {
    display: block;
    font-size: .7rem;
    color: #718096;
    margin-top: 2px;
}
