/* ---------- Character armory page (roster/character) ---------- */

/* WoW item quality colours */
.q-poor { color: #9d9d9d; }
.q-common { color: #ffffff; }
.q-uncommon { color: #1eff00; }
.q-rare { color: #0070dd; }
.q-epic { color: #a335ee; }
.q-legendary { color: #ff8000; }
.q-artifact, .q-heirloom { color: #e6cc80; }
.q-border-poor { border-color: #9d9d9d !important; }
.q-border-common { border-color: #d8d8d8 !important; }
.q-border-uncommon { border-color: #1eff00 !important; }
.q-border-rare { border-color: #0070dd !important; }
.q-border-epic { border-color: #a335ee !important; }
.q-border-legendary { border-color: #ff8000 !important; }
.q-border-artifact, .q-border-heirloom { border-color: #e6cc80 !important; }

.roster-armory-link:hover strong {
    text-decoration: underline;
}

.armory-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 10px 14px;
    border: 1px solid #8a6a4566;
    background: #1a120cdd;
    color: #e9d3ae;
    font-size: .9rem;
}

/* header: avatar, name, ilvl, crest */
.armory-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, #42120c55, transparent 70%);
}
.armory-head__avatar {
    border: 2px solid #8a6a45;
    border-radius: 50%;
}
.armory-head__text {
    flex: 1;
}
.armory-head h1 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font: 500 2rem/1.1 var(--heading-font);
}
.armory-ilvl {
    padding: 2px 10px;
    border: 1px solid #c99b6266;
    border-radius: 3px;
    color: var(--gold);
    font: 600 1rem var(--body-font);
}
.armory-head__line {
    margin: 6px 0 2px;
    font-size: 1.05rem;
}
.armory-guild {
    color: #ffd100;
}
.armory-head__crest {
    opacity: .9;
}

/* paper doll: slots left and right, model in the middle, weapons below */
.armory-doll {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px minmax(0, 1fr);
    grid-template-areas: "left model right" "bottom bottom bottom";
    gap: 8px 18px;
    padding: 22px 26px 26px;
    background: radial-gradient(ellipse at 50% 55%, #6b1a0f55 0%, #2a0d0833 35%, transparent 65%);
}
.armory-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.armory-slots--left { grid-area: left; }
.armory-slots--right { grid-area: right; }
.armory-slots--bottom {
    grid-area: bottom;
    flex-direction: row;
    justify-content: center;
    gap: 22px;
}
.armory-model {
    grid-area: model;
    position: relative;
    min-height: 520px;
    overflow: hidden;
}
/* Blizzard's render is a 1600x1200 canvas with the character small in the middle (roughly 48% of the height,
   feet at 81%): blow it up and pin the feet to the bottom of the box. */
.armory-model img {
    position: absolute;
    left: 50%;
    bottom: -186px;
    width: auto;
    max-width: none;
    height: 980px;
    transform: translateX(-50%);
    filter: drop-shadow(0 10px 24px #000);
}

.armory-slot {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    outline: none;
}
.armory-slot--right {
    flex-direction: row-reverse;
    text-align: right;
}
.armory-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: 2px solid #5a4732;
    border-radius: 4px;
    background: #0b0908;
    box-shadow: 0 2px 8px #000c;
    overflow: hidden;
}
.armory-icon img {
    display: block;
    width: 100%;
    height: 100%;
}
.armory-icon--empty {
    background: #0b0908 linear-gradient(135deg, #1a1412, #0b0908);
    opacity: .6;
}
.armory-slot__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.armory-slot__name {
    font-size: .95rem;
    line-height: 1.25;
}
.armory-slot__enchant {
    color: #1eff00;
    font-size: .75rem;
    opacity: .8;
}

/* tooltip, WoW style */
.armory-tip {
    position: absolute;
    z-index: 30;
    top: 0;
    left: calc(100% + 10px);
    display: none;
    flex-direction: column;
    gap: 2px;
    width: 300px;
    padding: 10px 12px;
    border: 1px solid #5c6ea8aa;
    border-radius: 4px;
    background: #090b1af2;
    box-shadow: 0 10px 28px #000;
    text-align: left;
    pointer-events: none;
}
.armory-slot--left .armory-tip { left: 60px; }
.armory-slot--right .armory-tip { left: auto; right: 60px; }
.armory-slot:hover .armory-tip,
.armory-slot:focus .armory-tip {
    display: flex;
}
.armory-tip__name {
    margin-bottom: 2px;
    font-size: 1rem;
    font-weight: 600;
}
.armory-tip__line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #fff;
    font-size: .85rem;
    line-height: 1.35;
}
.armory-tip__line--green { color: #1eff00; }
.armory-tip__line--muted { color: #9d9d9d; }
.armory-tip__right { color: #fff; }

/* stats / talents / reputation */
.armory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
    align-items: start;
}
.armory-panel {
    padding: 16px 20px 18px;
}
.armory-panel h2 {
    margin: 0 0 10px;
    color: var(--gold);
    font: 500 1.15rem var(--heading-font);
    letter-spacing: .05em;
    text-transform: uppercase;
}
.armory-panel h3 {
    margin: 12px 0 4px;
    color: #c99b62;
    font: 500 .85rem var(--heading-font);
    letter-spacing: .06em;
    text-transform: uppercase;
}
.armory-stats {
    margin: 0;
}
.armory-stats div {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px solid #5a473222;
}
.armory-stats dt { color: var(--muted); }
.armory-stats dd { margin: 0; color: #fff; }
.armory-spec {
    margin-bottom: 10px;
    border: 1px solid #5a473244;
    background: #0e0d0caa;
}
.armory-spec > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
}
.armory-split { color: var(--muted); }
.armory-active {
    margin-left: auto;
    padding: 1px 8px;
    border-radius: 9px;
    background: #2f6b1e;
    color: #fff;
    font-size: .7rem;
    text-transform: uppercase;
}
.armory-spec h3 { padding: 0 12px; }
.armory-talents {
    margin: 0;
    padding: 0 12px 10px;
    list-style: none;
}
.armory-talents li {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    font-size: .9rem;
    cursor: help;
}
.armory-rank { color: #ffd100; }
.armory-reps {
    margin: 0;
    padding: 0;
    list-style: none;
}
.armory-reps li { margin-bottom: 9px; }
.armory-reps__head {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
}
.armory-bar {
    position: relative;
    display: block;
    height: 14px;
    margin-top: 3px;
    border: 1px solid #00000099;
    background: #1a1412;
}
.armory-bar__fill {
    display: block;
    height: 100%;
}
.armory-bar__text {
    position: absolute;
    inset: 0;
    color: #fff;
    font-size: .68rem;
    line-height: 12px;
    text-align: center;
    text-shadow: 0 1px 2px #000;
}
/* reputation tiers: 0 hated ... 7 exalted */
.armory-standing--0, .armory-standing--1 { color: #cc2222; }
.armory-standing--2 { color: #ff8040; }
.armory-standing--3 { color: #ffff00; }
.armory-standing--4, .armory-standing--5, .armory-standing--6, .armory-standing--7 { color: #40c040; }
.armory-standing-bg--0, .armory-standing-bg--1 { background: #8c1a1a; }
.armory-standing-bg--2 { background: #b05a1e; }
.armory-standing-bg--3 { background: #a39a14; }
.armory-standing-bg--4 { background: #2f7a2a; }
.armory-standing-bg--5 { background: #2f8a3a; }
.armory-standing-bg--6 { background: #1f9a6a; }
.armory-standing-bg--7 { background: #1f8aa0; }
.armory-pvp-title { margin-top: 18px !important; }
