/* ================================================================
 *  Ranglista lapozó (2026-11-12)
 *  A [lexilet_leaderboard] shortcode 10-es lapozásához.
 *  A keret magasságát a assets/js/lexilet-leaderboard-pager.js méri
 *  és rögzíti, hogy lapozás közben ne változzon az ablak mérete.
 * ================================================================ */

.lexilet-lb-page-hidden {
    display: none !important;
}

/* Grid, nem flex: a flex-wrap a lapok között hol egy, hol két sorba törte a
   gombsort, és attól az ablak magassága laponként változott. */
.lexilet-lb-pager {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.lexilet-lb-page-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    border: 2px solid #6c63ff;
    color: #6c63ff !important;
    background: #fff;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.88em;
    line-height: 1.25;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.lexilet-lb-page-btn:hover {
    background: #ede9ff;
}

.lexilet-lb-page-btn[aria-disabled="true"] {
    border-color: #e2e2e2;
    color: #b5b5b5 !important;
    background: #fafafa;
    cursor: default;
    pointer-events: none;
}

.lexilet-lb-page-info {
    text-align: center;
    font-size: 0.85em;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .lexilet-lb-pager {
        grid-template-columns: auto auto;
        justify-content: space-between;
        row-gap: 8px;
        gap: 8px;
    }

    .lexilet-lb-page-info {
        grid-column: 1 / -1;
        grid-row: 1;
        font-size: 0.8em;
    }

    .lexilet-lb-page-btn {
        padding: 9px 14px;
        font-size: 0.82em;
    }

    .lexilet-lb-page-btn[data-lb-prev] {
        grid-row: 2;
        justify-self: start;
    }

    .lexilet-lb-page-btn[data-lb-next] {
        grid-row: 2;
        justify-self: end;
    }
}
