
/* =========================================================
   BLOODMOON ROLEPLAY
   ALL RACES XP RANKINGS
   Modern Gothic Dark Fantasy
   ========================================================= */


/* =========================================================
   PAGE
   ========================================================= */

.bm-stats-page {
    background-color: #090b0e;
    color: #ece0dc;
}

.bm-stats-main {
    width: min(94%, 1760px);
    margin: 0 auto;
    padding: 35px 0 85px;
}


/* =========================================================
   PAGE HEADING
   ========================================================= */

.bm-stats-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.bm-stats-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #cd6975;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.bm-stats-heading h1 {
    margin: 0;
    color: #f4e6e0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: 500;
    line-height: 1.15;
}

.bm-stats-heading p {
    margin: 14px 0 0;
    color: #aa9b9e;
    font-size: 1rem;
    font-style: italic;
}

.bm-stats-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 10px 17px;
    border: 1px solid #68434b;
    border-radius: 7px;
    background: #17151a;
    color: #ebdcd7;
    font-size: 0.83rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.bm-stats-home-link:hover {
    border-color: #d34b58;
    background: #2a171e;
    color: #ffffff;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.bm-stats-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.bm-stats-summary-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 105px;
    padding: 23px 26px;
    border: 1px solid #49343b;
    border-radius: 9px;
    background: linear-gradient(
        135deg,
        #211219,
        #13151a 75%
    );
}

.bm-stats-summary-box > span {
    color: #b78f94;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.bm-stats-summary-box strong {
    color: #f4e7e0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
}

.bm-stats-summary-box strong small {
    color: #a99c9f;
    font-size: 1rem;
}


/* =========================================================
   BOARD
   ========================================================= */

.bm-stats-board {
    overflow: hidden;
    border: 1px solid #52323b;
    border-radius: 11px;
    background: linear-gradient(
        145deg,
        #15171c,
        #0d0f13
    );
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.bm-stats-board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 17px 25px;
    border-bottom: 1px solid #5c3640;
    background: linear-gradient(
        90deg,
        #3a1019,
        #1c151b 60%,
        #111318
    );
    color: #f1dcd7;
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.bm-stats-board-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 29px;
    padding: 0 9px;
    border: 1px solid #8a4450;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.25);
    color: #f5e3dc;
    letter-spacing: normal;
}

.bm-stats-empty {
    padding: 48px 25px;
    color: #b7a7a7;
    text-align: center;
}


/* =========================================================
   TABLE HEADING
   ========================================================= */

.bm-stats-table-heading,
.bm-stats-player-row {
    display: grid;
    grid-template-columns:
        95px
        minmax(0, 2.5fr)
        minmax(110px, 1fr)
        minmax(130px, 1fr);
    align-items: center;
    gap: 20px;
}

.bm-stats-table-heading {
    min-height: 48px;
    padding: 12px 25px;
    border-bottom: 1px solid #44333b;
    background: #1c1a20;
}

.bm-stats-table-heading span {
    color: #bc9c9c;
    font-size: 0.71rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.bm-stats-table-heading span:last-child {
    text-align: right;
}


/* =========================================================
   PLAYER ROWS
   ========================================================= */

.bm-stats-player-row {
    position: relative;
    min-height: 77px;
    padding: 15px 25px;
    border-bottom: 1px solid #2c2930;
    transition: background-color 0.2s ease;
}

.bm-stats-player-row:last-child {
    border-bottom: none;
}

.bm-stats-player-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.012);
}

.bm-stats-player-row:hover {
    background: rgba(146, 26, 43, 0.13);
}


/* =========================================================
   RANK
   ========================================================= */

.bm-stats-rank {
    display: flex;
    align-items: center;
}

.bm-stats-rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid #56414a;
    border-radius: 50%;
    background: #141419;
    color: #e9d7d2;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
    font-weight: 700;
}


/* =========================================================
   TOP THREE
   ========================================================= */

.bm-stats-player-row.rank-first {
    background: linear-gradient(
        90deg,
        rgba(155, 110, 35, 0.14),
        transparent 70%
    );
}

.bm-stats-player-row.rank-second {
    background: linear-gradient(
        90deg,
        rgba(140, 150, 165, 0.1),
        transparent 70%
    );
}

.bm-stats-player-row.rank-third {
    background: linear-gradient(
        90deg,
        rgba(163, 85, 50, 0.11),
        transparent 70%
    );
}

.rank-first .bm-stats-rank-number {
    border-color: #cda54b;
    background: rgba(186, 130, 32, 0.19);
    color: #f3d47a;
    box-shadow: 0 0 16px rgba(201, 148, 46, 0.16);
}

.rank-second .bm-stats-rank-number {
    border-color: #a0acbc;
    background: rgba(139, 154, 171, 0.14);
    color: #dbe3ec;
}

.rank-third .bm-stats-rank-number {
    border-color: #b67e5b;
    background: rgba(164, 93, 56, 0.15);
    color: #efb68e;
}


/* =========================================================
   PLAYER NAME
   ========================================================= */

.bm-stats-player-name {
    min-width: 0;
}

.bm-stats-player-name a {
    color: #f0e2dd;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.5;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.bm-stats-player-name a:hover {
    color: #ff6d78;
    text-decoration: underline;
}


/* =========================================================
   RACE BADGES
   ========================================================= */

.bm-stats-race-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 8px 12px;
    border: 1px solid;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-align: center;
}

.bm-stats-race-badge.race-vampire {
    border-color: #923d49;
    background: rgba(162, 35, 50, 0.13);
    color: #ed7a86;
}

.bm-stats-race-badge.race-lycan {
    border-color: #416e7c;
    background: rgba(50, 133, 151, 0.13);
    color: #80dce9;
}

.bm-stats-race-badge.race-human {
    border-color: #3b7a5e;
    background: rgba(35, 137, 84, 0.12);
    color: #83e1ad;
}

.bm-stats-race-badge.race-hybrid {
    border-color: #78538e;
    background: rgba(126, 69, 153, 0.15);
    color: #d0a2f2;
}

.bm-stats-race-badge.race-unknown {
    border-color: #61565e;
    background: rgba(120, 110, 120, 0.1);
    color: #bdb4b9;
}


/* =========================================================
   EXPERIENCE
   ========================================================= */

.bm-stats-player-xp {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 7px;
    white-space: nowrap;
    text-align: right;
}

.bm-stats-player-xp strong {
    color: #f2d4ca;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.bm-stats-player-xp small {
    color: #a9888a;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.1em;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.bm-stats-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 30px;
}

.bm-stats-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 43px;
    min-height: 43px;
    padding: 10px 13px;
    border: 1px solid #574149;
    border-radius: 7px;
    background: #15171c;
    color: #eadbd6;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
}

a.bm-stats-page-button:hover {
    border-color: #c53e4c;
    background: #28161d;
    color: #ffffff;
}

.bm-stats-page-button.active {
    border-color: #d14250;
    background: linear-gradient(
        135deg,
        #a91423,
        #650914
    );
    color: #ffffff;
    box-shadow: 0 7px 20px rgba(126, 12, 26, 0.2);
}

.bm-stats-page-nav {
    padding: 10px 17px;
}

.bm-stats-ellipsis {
    padding: 0 4px;
    color: #9c8a90;
    font-size: 1rem;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

    .bm-stats-table-heading,
    .bm-stats-player-row {
        grid-template-columns:
            65px
            minmax(0, 2fr)
            minmax(95px, 1fr)
            minmax(105px, 1fr);
        gap: 12px;
    }

    .bm-stats-player-row {
        padding: 14px 18px;
    }

    .bm-stats-table-heading {
        padding: 12px 18px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .bm-stats-main {
        width: 94%;
        padding-top: 24px;
    }

    .bm-stats-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 19px;
    }

    .bm-stats-heading h1 {
        font-size: 2.25rem;
    }

    .bm-stats-home-link {
        align-self: flex-start;
    }

    .bm-stats-summary {
        gap: 10px;
    }

    .bm-stats-summary-box {
        min-height: 92px;
        padding: 18px 14px;
    }

    .bm-stats-summary-box strong {
        font-size: 1.6rem;
    }

    .bm-stats-table-heading,
    .bm-stats-player-row {
        grid-template-columns:
            48px
            minmax(0, 1fr)
            minmax(80px, auto);
        gap: 10px;
    }

    .bm-stats-table-heading span:nth-child(3),
    .bm-stats-player-race {
        display: none;
    }

    .bm-stats-player-row {
        min-height: 68px;
        padding: 12px;
    }

    .bm-stats-table-heading {
        padding: 12px;
    }

    .bm-stats-rank-number {
        width: 39px;
        height: 39px;
        font-size: 0.98rem;
    }

    .bm-stats-player-name a {
        font-size: 0.88rem;
    }

    .bm-stats-player-xp strong {
        font-size: 1.1rem;
    }

    .bm-stats-player-xp small {
        font-size: 0.6rem;
    }

    .bm-stats-page-button {
        min-width: 37px;
        min-height: 39px;
        padding: 8px 10px;
    }

}
