/* ============================================================
   BOSS DROP LISTS  -  collapsible per-boss drop tables
   Used by the Raid Bosses / Epic Bosses tabs on Server Info.
   Native <details>/<summary>, no JS required.
   ============================================================ */
.bs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0 26px;
}
.bs-item {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: rgba(255, 255, 255, .02);
    overflow: hidden;
    transition: border-color .16s ease;
}
.bs-item[open] { border-color: rgba(209, 155, 37, .45); }

.bs-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    cursor: pointer;
    list-style: none;
    font-family: "Oxanium", sans-serif;
    transition: background .16s ease;
}
.bs-head::-webkit-details-marker { display: none; }
.bs-head:hover { background: rgba(255, 255, 255, .03); }
/* CSS-drawn chevron (no icon font dependency) */
.bs-head::after {
    content: "";
    margin-left: auto;
    flex: 0 0 auto;
    width: 8px; height: 8px;
    border-right: 2px solid #8f8f8f;
    border-bottom: 2px solid #8f8f8f;
    transform: rotate(45deg);
    transition: transform .2s ease, border-color .2s ease;
}
.bs-item[open] .bs-head::after {
    transform: rotate(-135deg);
    border-color: var(--secondary-color, #d19b25);
}

.bs-ico {
    width: 34px; height: 34px;
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: rgba(209, 155, 37, .14);
    border: 1px solid rgba(209, 155, 37, .3);
}
.bs-ico img { width: 26px; height: 26px; object-fit: contain; }

.bs-name {
    font-weight: 700;
    font-size: 16px;
    color: #e9e9e9;
}
.bs-item[open] .bs-name { color: #fff; }
.bs-meta {
    font-size: 12px;
    color: #9a9a9a;
    letter-spacing: .03em;
    white-space: nowrap;
}
.bs-body { padding: 2px 18px 18px; }
.bs-body table { margin-bottom: 0; }

/* highlight the signature drop of each boss */
.bs-key { color: #ffd873; font-weight: 700; }

@media (max-width: 575px) {
    .bs-head { gap: 10px; padding: 12px 13px; }
    .bs-name { font-size: 14.5px; }
    .bs-meta { display: none; }
    .bs-body { padding: 2px 10px 14px; }
}

/* item icon in front of each drop row (smaller than the boss header icon) */
.bs-body .bs-drop { display: flex; align-items: center; gap: 9px; }
.bs-body .bs-drop img {
    width: 18px; height: 18px;
    flex: 0 0 auto;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(0, 0, 0, .3);
}
@media (max-width: 575px) {
    .bs-body .bs-drop { gap: 7px; }
    .bs-body .bs-drop img { width: 16px; height: 16px; }
}

/* stacked material chips in the Pushkin upgrade tables */
.up-mats { display: flex; flex-direction: column; gap: 6px; }
.up-mats .bs-drop { gap: 8px; }

/* ============================================================
   MOBILE - upgrade tables become stacked cards, drop tables stay
   readable instead of wrapping every cell into 4 lines
   ============================================================ */
@media (max-width: 620px) {
    /* --- Blacksmith Pushkin upgrade tables --- */
    .info-section .up-table,
    .info-section .up-table tbody,
    .info-section .up-table tr,
    .info-section .up-table td { display: block; width: 100%; }
    .info-section .up-table thead { display: none; }
    .info-section .up-table tr {
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 10px;
        background: rgba(255, 255, 255, .02);
        margin-bottom: 12px;
        overflow: hidden;
    }
    .info-section .up-table tr:last-child { margin-bottom: 0; }
    .info-section .up-table td {
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .05);
        padding: 11px 14px;
    }
    .info-section .up-table td:last-child { border-bottom: 0; }
    /* the result is the payoff - highlight it */
    .info-section .up-table td[data-label="Result"] { background: rgba(209, 155, 37, .07); }
    .info-section .up-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        font-family: "Oxanium", sans-serif;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: var(--secondary-color, #d19b25);
        opacity: .85;
    }
    .up-mats { gap: 8px; }
    .bs-body .bs-drop { align-items: flex-start; }
}

/* --- drop tables: keep Amount / Chance on one line --- */
@media (max-width: 620px) {
    .bs-body table.tablerr2:not(.up-table) td:nth-child(2),
    .bs-body table.tablerr2:not(.up-table) td:nth-child(3),
    .bs-body table.tablerr2:not(.up-table) th:nth-child(2),
    .bs-body table.tablerr2:not(.up-table) th:nth-child(3) {
        white-space: nowrap;
        width: 1%;
    }
    .info-section .bs-body table.tablerr2 td,
    .info-section .bs-body table.tablerr2 th { padding: 9px 8px; font-size: 13px; }
    .bs-body .bs-drop { gap: 7px; }
}
