
/* =========================================================
   BLOODMOON ROLEPLAY
   PROFILE CLAN — MODERN DARK FANTASY

   /roleplay/css/profile-clan.css
   ========================================================= */


/* =========================================================
   PAGE
   ========================================================= */

.bm-page-clan-profile {
    background-color: #090b0e;
    color: #e9e2de;
}

.bm-clan-page {
    width: min(94%, 1760px);
    margin: 0 auto;
    padding: 38px 0 80px;
}


/* =========================================================
   TITRE PRINCIPAL
   ========================================================= */

.bm-clan-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.bm-clan-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #cf7474;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.23em;
    text-transform: uppercase;
}

.bm-clan-page-heading h1 {
    margin: 0;
    color: #f5eee9;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 4.6rem);
    font-weight: 500;
    line-height: 1.12;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 24px rgba(155, 0, 0, 0.3);
}

.bm-clan-page-heading p {
    margin: 13px 0 0;
    color: #a99b99;
    font-size: 1rem;
    font-style: italic;
}

.bm-clan-heading-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-bottom: 5px;
}


/* =========================================================
   BOUTONS
   ========================================================= */

.bm-clan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 19px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 0.83rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-align: center;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.bm-clan-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.bm-clan-btn-outline {
    border-color: #5f4246;
    background: #111319;
    color: #e9dfdc;
}

.bm-clan-btn-outline:hover {
    border-color: #b84b54;
    background: #1d151a;
    color: #ffffff;
}

.bm-clan-btn-primary {
    border-color: #b5313c;
    background: linear-gradient(
        135deg,
        #a30d1a,
        #5d0811
    );
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(115, 5, 17, 0.25);
}

.bm-clan-btn-primary:hover {
    border-color: #ee5360;
    background: linear-gradient(
        135deg,
        #be1724,
        #790b17
    );
    color: #ffffff;
}


/* =========================================================
   CARTES COMMUNES
   ========================================================= */

.bm-clan-main-card,
.bm-clan-roster-card {
    overflow: hidden;
    border: 1px solid #473237;
    border-radius: 12px;
    background: linear-gradient(
        145deg,
        #15171c,
        #0d0f13 75%
    );
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.bm-clan-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 15px 24px;
    border-bottom: 1px solid #493137;
    background: linear-gradient(
        90deg,
        #351016,
        #171318 58%,
        #111216
    );
    color: #f7e9e4;
    font-size: 0.81rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.bm-clan-card-decoration {
    color: #bd525b;
    font-size: 1.2rem;
}


/* =========================================================
   IDENTITÉ DU CLAN
   ========================================================= */

.bm-clan-identity-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 36px;
    padding: 34px;
}

.bm-clan-emblem-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    border: 1px solid #392b30;
    border-radius: 10px;
    background: radial-gradient(
        circle at 50% 20%,
        #26151a,
        #111216 70%
    );
}

.bm-clan-emblem-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 245px;
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid #8f313c;
    border-radius: 12px;
    background: #090a0d;
    box-shadow:
        0 0 0 6px rgba(113, 25, 35, 0.13),
        0 16px 34px rgba(0, 0, 0, 0.4);
}

.bm-clan-emblem-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bm-clan-emblem-caption {
    width: 100%;
    margin-top: 24px;
    color: #f2e6e2;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    text-align: center;
    overflow-wrap: anywhere;
}

.bm-clan-member-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin-top: 24px;
    padding: 18px 10px;
    border-top: 1px solid #493137;
    color: #bca9a7;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-align: center;
    text-transform: uppercase;
}

.bm-clan-member-total-number {
    color: #f2dfd9;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.6rem;
    line-height: 1;
}


/* =========================================================
   COLONNE INFORMATIONS
   ========================================================= */

.bm-clan-information-column {
    min-width: 0;
}

.bm-clan-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.bm-clan-info-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    min-height: 105px;
    padding: 19px 22px;
    border: 1px solid #343038;
    border-radius: 8px;
    background: #111318;
}

.bm-clan-info-wide {
    grid-column: 1 / -1;
}

.bm-clan-info-label {
    color: #b9858a;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bm-clan-info-box strong {
    color: #eee4df;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.bm-clan-leader-link {
    color: #f0d5cd;
    font-size: 1.04rem;
    font-weight: 800;
    text-decoration: none;
}

.bm-clan-leader-link:hover {
    color: #ff737c;
    text-decoration: underline;
}

.bm-clan-address {
    color: #ddd1ce;
    font-family: inherit;
    overflow-wrap: anywhere;
}


/* =========================================================
   DESCRIPTION COMPLÈTE
   ========================================================= */

.bm-clan-description-panel {
    margin-top: 18px;
    padding: 26px 28px;
    border: 1px solid #473238;
    border-radius: 9px;
    background: linear-gradient(
        135deg,
        rgba(62, 15, 23, 0.2),
        rgba(10, 12, 17, 0.9)
    );
}

.bm-clan-description-panel h2 {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #58343a;
    color: #efcfca;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.38rem;
    font-weight: 500;
}

.bm-clan-description-text {
    color: #d4c8c4;
    font-size: 0.98rem;
    line-height: 1.95;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}


/* =========================================================
   EFFECTIFS PAR RACE
   ========================================================= */

.bm-clan-races {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 28px;
}

.bm-clan-race-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 15px;
    row-gap: 5px;
    min-height: 112px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid #45343a;
    border-radius: 9px;
    background: #15171c;
}

.bm-clan-race-symbol {
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 1.35rem;
    background: rgba(0, 0, 0, 0.27);
}

.bm-clan-race-label {
    align-self: end;
    color: #b8a8a7;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.bm-clan-race-card strong {
    align-self: start;
    color: #f0e5df;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.1;
}

.bm-clan-race-vampire {
    border-color: #5d2830;
}

.bm-clan-race-vampire .bm-clan-race-symbol {
    color: #db515f;
}

.bm-clan-race-lycan {
    border-color: #655039;
}

.bm-clan-race-lycan .bm-clan-race-symbol {
    color: #d6a66d;
}

.bm-clan-race-human {
    border-color: #3c5263;
}

.bm-clan-race-human .bm-clan-race-symbol {
    color: #8aafcb;
}

.bm-clan-race-hybrid {
    border-color: #56416a;
}

.bm-clan-race-hybrid .bm-clan-race-symbol {
    color: #b48cdb;
}


/* =========================================================
   MEMBRES DU CLAN
   ========================================================= */

.bm-clan-roster-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 30px;
    padding: 0 9px;
    border: 1px solid #763641;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    color: #f5e4df;
    font-size: 0.9rem;
    letter-spacing: normal;
}

.bm-clan-roster-scroll {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: auto;
    scrollbar-color: #8d3944 #15171c;
    scrollbar-width: thin;
}

.bm-clan-roster-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.bm-clan-roster-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #24181e;
}

.bm-clan-roster-table th {
    padding: 17px 26px;
    border-bottom: 1px solid #5a343c;
    color: #d7b5b2;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-align: left;
    text-transform: uppercase;
}

.bm-clan-roster-table th:last-child {
    width: 180px;
    text-align: right;
}

.bm-clan-roster-table td {
    padding: 16px 26px;
    border-bottom: 1px solid #29282e;
    color: #e9ddda;
}

.bm-clan-roster-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.018);
}

.bm-clan-roster-table tbody tr:hover {
    background: rgba(148, 28, 42, 0.12);
}

.bm-clan-roster-table td a {
    color: #f0e1dc;
    font-size: 0.96rem;
    font-weight: 750;
    text-decoration: none;
}

.bm-clan-roster-table td a:hover {
    color: #ff6b77;
    text-decoration: underline;
}

.bm-clan-member-race {
    display: block;
    margin-top: 4px;
    color: #978d91;
    font-size: 0.75rem;
}

.bm-clan-roster-xp {
    color: #efc6bc;
    font-size: 1rem;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.bm-clan-empty {
    margin: 0;
    padding: 38px 25px;
    color: #b5a3a4;
    text-align: center;
}


/* =========================================================
   TABLETTES
   ========================================================= */

@media (max-width: 1100px) {

    .bm-clan-identity-layout {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 22px;
        padding: 22px;
    }

    .bm-clan-races {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILES
   ========================================================= */

@media (max-width: 760px) {

    .bm-clan-page {
        width: 94%;
        padding-top: 24px;
    }

    .bm-clan-page-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
    }

    .bm-clan-page-heading h1 {
        font-size: 2.35rem;
    }

    .bm-clan-heading-actions {
        justify-content: flex-start;
    }

    .bm-clan-identity-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 17px;
    }

    .bm-clan-emblem-column {
        padding: 24px 18px;
    }

    .bm-clan-emblem-frame {
        max-width: 210px;
    }

    .bm-clan-info-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .bm-clan-info-wide {
        grid-column: auto;
    }

    .bm-clan-description-panel {
        padding: 22px 18px;
    }

    .bm-clan-races {
        gap: 10px;
    }

    .bm-clan-race-card {
        min-height: 100px;
        padding: 15px;
        column-gap: 10px;
    }

    .bm-clan-race-symbol {
        width: 39px;
        height: 39px;
        font-size: 1rem;
    }

    .bm-clan-race-label {
        font-size: 0.65rem;
    }

    .bm-clan-race-card strong {
        font-size: 1.7rem;
    }

    .bm-clan-card-head {
        padding: 15px 17px;
        font-size: 0.72rem;
    }

    .bm-clan-roster-table th,
    .bm-clan-roster-table td {
        padding: 14px 15px;
    }

    .bm-clan-roster-table th:last-child {
        width: 95px;
    }

}


/* =========================================================
   TRÈS PETITS ÉCRANS
   ========================================================= */

@media (max-width: 400px) {

    .bm-clan-races {
        grid-template-columns: minmax(0, 1fr);
    }

    .bm-clan-btn {
        width: 100%;
    }

    .bm-clan-heading-actions {
        flex-direction: column;
    }

}
