
/* =========================================================
   BLOODMOON ROLEPLAY
   PLAYER PROFILE
   Modern Dark Fantasy
   ========================================================= */


/* =========================================================
   PLAYER THEME VARIABLES
   ========================================================= */

.bm-player-page {
    --player-accent: #c63545;
    --player-accent-soft: rgba(198, 53, 69, 0.22);
    --player-accent-border: rgba(198, 53, 69, 0.6);

    background: #090b0e;
    color: #e7dedb;
}

.bm-player-page.race-human {
    --player-accent: #42d98e;
    --player-accent-soft: rgba(66, 217, 142, 0.16);
    --player-accent-border: rgba(66, 217, 142, 0.45);
}

.bm-player-page.race-lycan {
    --player-accent: #65d5ec;
    --player-accent-soft: rgba(101, 213, 236, 0.17);
    --player-accent-border: rgba(101, 213, 236, 0.48);
}

.bm-player-page.race-hybrid {
    --player-accent: #c28bec;
    --player-accent-soft: rgba(194, 139, 236, 0.18);
    --player-accent-border: rgba(194, 139, 236, 0.5);
}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.bm-player-main {
    width: min(94%, 1760px);
    margin: 0 auto;
    padding: 38px 0 85px;
}


/* =========================================================
   PAGE HEADING
   ========================================================= */

.bm-player-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.bm-player-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--player-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.21em;
    text-transform: uppercase;
}

.bm-player-heading h1 {
    margin: 0;
    color: #f4e8e4;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 4vw, 4.4rem);
    font-weight: 500;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.bm-player-name-suffix {
    display: inline-block;
    margin-left: 6px;
    color: #a7a0a3;
    font-size: 0.54em;
}

.bm-player-heading p {
    margin: 14px 0 0;
    color: #ada0a2;
    font-size: 1rem;
    font-style: italic;
}

.bm-player-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 10px 17px;
    border: 1px solid #62434b;
    border-radius: 7px;
    background: #161318;
    color: #eee0da;
    font-size: 0.83rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.bm-player-back-link:hover {
    border-color: var(--player-accent);
    background: #24181e;
    color: #ffffff;
}


/* =========================================================
   COMMON CARDS
   ========================================================= */

.bm-player-primary-card,
.bm-player-section {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #493239;
    border-radius: 11px;
    background: linear-gradient(
        145deg,
        #16181d,
        #0e1014 78%
    );
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
}

.bm-player-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 55px;
    padding: 15px 24px;
    border-bottom: 1px solid #513238;
    background: linear-gradient(
        90deg,
        #351016,
        #19141a 65%,
        #121318
    );
    color: #f2e1dc;
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.bm-player-card-heading small {
    display: block;
    margin-top: 7px;
    color: #b6a2a3;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
}

.bm-player-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 29px;
    padding: 0 8px;
    border: 1px solid #713b46;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.22);
    color: #f5e5df;
    letter-spacing: normal;
}


/* =========================================================
   PROFILE LAYOUT
   ========================================================= */

.bm-player-profile-layout {
    display: grid;
    grid-template-columns: minmax(240px, 315px) minmax(0, 1fr);
    gap: 30px;
    padding: 30px;
}

.bm-player-portrait-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: start;
    padding: 25px 20px;
    border: 1px solid #383039;
    border-radius: 10px;
    background: radial-gradient(
        circle at 50% 15%,
        var(--player-accent-soft),
        #111318 72%
    );
}

.bm-player-portrait-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 250px;
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid var(--player-accent-border);
    border-radius: 11px;
    background: #08090d;
    box-shadow:
        0 0 0 6px var(--player-accent-soft),
        0 15px 35px rgba(0, 0, 0, 0.36);
}

.bm-player-portrait-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bm-player-race-badge {
    margin-top: 25px;
    padding: 9px 20px;
    border: 1px solid var(--player-accent-border);
    border-radius: 30px;
    background: var(--player-accent-soft);
    color: var(--player-accent);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-align: center;
    text-transform: uppercase;
}

.bm-player-portrait-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 27px;
    padding-top: 22px;
    border-top: 1px solid #47353b;
    text-align: center;
}

.bm-player-portrait-status span {
    color: #a99a9e;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.bm-player-portrait-status strong {
    color: #f0e5e0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
    font-weight: 500;
}


/* =========================================================
   VITAL LIQUID
   ========================================================= */

.bm-player-data-column {
    min-width: 0;
}

.bm-player-vital-panel {
    margin-bottom: 20px;
    padding: 24px 26px;
    border: 1px solid var(--player-accent-border);
    border-radius: 9px;
    background: linear-gradient(
        135deg,
        var(--player-accent-soft),
        #111318 75%
    );
}

.bm-player-vital-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 17px;
}

.bm-player-vital-heading span {
    color: #eadcda;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bm-player-vital-heading strong {
    color: var(--player-accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    font-weight: 500;
}

.bm-player-vital-track {
    height: 18px;
    overflow: hidden;
    border: 1px solid #42343a;
    border-radius: 20px;
    background: #07090d;
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.55);
}

.bm-player-vital-fill {
    position: relative;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        var(--player-accent),
        color-mix(in srgb, var(--player-accent), white 28%)
    );
    box-shadow: 0 0 18px var(--player-accent-soft);
}

.bm-player-vital-fill::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.28),
        transparent 52%,
        rgba(0, 0, 0, 0.18)
    );
    content: "";
    pointer-events: none;
}


/* =========================================================
   CHARACTER DETAILS
   ========================================================= */

.bm-player-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.bm-player-detail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    min-width: 0;
    min-height: 91px;
    padding: 17px;
    border: 1px solid #333039;
    border-radius: 8px;
    background: #121419;
}

.bm-player-detail > span {
    color: #bd9294;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bm-player-detail strong,
.bm-player-detail a {
    color: #ede3df;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.bm-player-detail a {
    color: #f3c6c0;
    text-decoration: none;
}

.bm-player-detail a:hover {
    color: var(--player-accent);
    text-decoration: underline;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.bm-player-about {
    margin-top: 19px;
    padding: 24px 26px;
    border: 1px solid #46333b;
    border-radius: 8px;
    background: #111217;
}

.bm-player-about h2 {
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #4d333a;
    color: #f0d9d5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 500;
}

.bm-player-about p {
    margin: 0;
    color: #d1c6c3;
    font-size: 0.97rem;
    line-height: 1.9;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.bm-player-section {
    margin-top: 25px;
}

.bm-player-bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
    margin-top: 25px;
}

.bm-player-bottom-grid .bm-player-section {
    margin-top: 0;
}


/* =========================================================
   TABLES
   ========================================================= */

.bm-player-table-scroll {
    max-height: 470px;
    overflow-x: auto;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #7f3641 #15171c;
}

.bm-player-tall-scroll {
    max-height: 400px;
}

.bm-player-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.bm-player-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #251a20;
}

.bm-player-table th {
    padding: 16px 21px;
    border-bottom: 1px solid #653b43;
    color: #d6b8b5;
    font-size: 0.71rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-align: left;
    text-transform: uppercase;
}

.bm-player-table td {
    padding: 14px 21px;
    border-bottom: 1px solid #292830;
    color: #e6dbd8;
    vertical-align: middle;
}

.bm-player-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.018);
}

.bm-player-table tbody tr:hover {
    background: rgba(157, 33, 49, 0.13);
}

.bm-player-table a {
    color: #f1ded9;
    font-weight: 750;
    text-decoration: none;
}

.bm-player-table a:hover {
    color: #ff6b78;
    text-decoration: underline;
}

.bm-player-item-image {
    display: block;
    width: 65px;
    height: 65px;
    object-fit: contain;
    border: 1px solid #574047;
    border-radius: 9px;
    background: #0c0e12;
}

.bm-player-item-title {
    min-width: 180px;
    font-weight: 750;
}

.bm-player-item-quantity {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.bm-player-table-dash {
    color: #827a7e;
}

.bm-player-attack-date {
    color: #bdb0af;
    font-size: 0.88rem;
    white-space: nowrap;
}

.bm-player-empty {
    margin: 0;
    padding: 35px 24px;
    color: #aa9b9d;
    text-align: center;
}


/* =========================================================
   ITEM CONTAINER PROGRESS
   ========================================================= */

.bm-player-mini-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 155px;
}

.bm-player-mini-track {
    width: 125px;
    height: 12px;
    overflow: hidden;
    border-radius: 12px;
    background: #090b0f;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55);
}

.bm-player-mini-fill {
    height: 100%;
    border-radius: inherit;
    background: #c63545;
    box-shadow: 0 0 12px rgba(198, 53, 69, 0.35);
}

.bm-player-mini-bar.race-human .bm-player-mini-fill {
    background: #42d98e;
    box-shadow: 0 0 12px rgba(66, 217, 142, 0.35);
}

.bm-player-mini-bar.race-lycan .bm-player-mini-fill {
    background: #65d5ec;
    box-shadow: 0 0 12px rgba(101, 213, 236, 0.35);
}

.bm-player-mini-bar.race-hybrid .bm-player-mini-fill {
    background: #c28bec;
    box-shadow: 0 0 12px rgba(194, 139, 236, 0.35);
}

.bm-player-mini-bar > span {
    color: #d9cbc7;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1200px) {

    .bm-player-profile-layout {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 20px;
        padding: 22px;
    }

    .bm-player-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 780px) {

    .bm-player-main {
        width: 94%;
        padding-top: 23px;
    }

    .bm-player-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .bm-player-heading h1 {
        font-size: 2.4rem;
    }

    .bm-player-profile-layout {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px;
    }

    .bm-player-portrait-column {
        padding: 23px 18px;
    }

    .bm-player-portrait-frame {
        max-width: 220px;
    }

    .bm-player-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bm-player-bottom-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .bm-player-card-heading {
        padding: 15px 16px;
        font-size: 0.72rem;
    }

    .bm-player-table th,
    .bm-player-table td {
        padding: 13px 14px;
    }

    .bm-player-item-image {
        width: 54px;
        height: 54px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .bm-player-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .bm-player-vital-panel {
        padding: 20px 17px;
    }

    .bm-player-about {
        padding: 20px 17px;
    }

    .bm-player-back-link {
        width: 100%;
    }

}
