@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;700&display=swap');

/* ──────────────────────────────────────────────
   Profile Card Styles
   SCOPED to .profile-card to avoid polluting
   global .card / img / ul rules.
   
   Previously these were unscoped and applied:
   - border-radius:50% to EVERY .card img
   - ::before/::after pseudo-element overlays to EVERY .card
   - display:flex to EVERY .card
   - max-width/display:block to EVERY img
   - list-style:none to EVERY ul
   This caused a dark mask on inventory item images
   and layout issues across multiple pages.
   ────────────────────────────────────────────── */

.abbreviation {
    width: 91px;
    height: 90px;
    margin-left: 2%;
    border-radius: 100%;
    background: #53e7a4;
    padding: 25px;
    margin-top: -5%;
    font-size: 26px;
    font-weight: 900;
}

.modal-close-btn {
    border: none;
    background: transparent;
    font-size: xx-large;
}

/* Scoped: only profile cards get these aggressive styles */
.profile-card::after,
.profile-card img {
    border-radius: 50%;
}

.profile-card {
    display: flex;
    padding: 2.5rem 2rem;
    border-radius: var(--bs-modal-border-radius);
    background-color: rgba(255, 255, 255, .5);
    max-width: 500px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .15);
    margin: 1rem;
    position: relative;
    transform-style: preserve-3d;
    overflow: hidden;
}

.profile-card::before,
.profile-card::after {
    content: '';
    position: absolute;
    z-index: -1;
}

.profile-card::before {
    width: 100%;
    height: 100%;
    border: 1px solid #FFF;
    border-radius: 10px;
    top: -.7rem;
    left: -.7rem;
}

.profile-card::after {
    height: 15rem;
    width: 15rem;
    background-color: #4172f5aa;
    top: -8rem;
    right: -8rem;
    box-shadow: 2rem 6rem 0 -3rem #FFF
}

.profile-card img {
    width: 8rem;
    min-width: 80px;
    box-shadow: 0 0 0 5px #FFF;
}

.profile-card .infos {
    margin-left: 1.5rem;
}

.profile-card .name {
    margin-bottom: 1rem;
}

.profile-card .name h2 {
    font-size: 1.3rem;
}

.profile-card .name h4 {
    font-size: .8rem;
    color: #333
}

.profile-card .text {
    font-size: .9rem;
    margin-bottom: 1rem;
}

.profile-card .stats {
    display: flex;
    margin-bottom: 1rem;
}

.profile-card .stats li {
    min-width: 5rem;
}

.profile-card .stats li h3 {
    font-size: .99rem;
}

.profile-card .stats li h4 {
    font-size: .75rem;
}


@media screen and (max-width: 450px) {
    .profile-card {
        display: block;
    }

    .profile-card .infos {
        margin-left: 0;
        margin-top: 1.5rem;
    }
}