/* =========================================================
   Sac d'exploration — panel + header slot + FightScene HUD
   ========================================================= */

/* ---- Header slot (upgrade rapide + état du sac) ---- */
.header-bag-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(var(--bg-panel-rgb), 0.6);
    border: 1px solid rgba(var(--gold-rgb), 0.35);
    border-radius: 8px;
    padding: 4px 10px;
    height: 36px;
    color: var(--text-main);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    font-family: 'Oswald', sans-serif;
}
.header-bag-btn:hover {
    background: rgba(var(--bg-panel-rgb), 0.9);
    border-color: rgba(var(--gold-rgb), 0.7);
}
.header-bag-btn .icon-btn {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 4px rgba(var(--gold-rgb), 0.4));
}
.header-bag-btn .header-bag-count {
    font-weight: 700;
    font-size: 14px;
    color: var(--gold);
    letter-spacing: 0.5px;
}
.header-bag-btn .header-bag-sep {
    opacity: 0.5;
    margin: 0 2px;
}
/* ---- Panel: Sac d'exploration ---- */
.panel-exploration-bag .expbag-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.panel-exploration-bag .expbag-header .panel-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.panel-exploration-bag .expbag-sub {
    color: var(--text-muted);
    margin: 8px 0 0 0;
    font-size: 14px;
    line-height: 1.5;
}

.expbag-capacity-card,
.expbag-upgrade-card {
    background: rgba(var(--bg-panel-rgb), 0.6);
    border: 1px solid rgba(var(--gold-rgb), 0.3);
    border-radius: 10px;
    padding: 18px 20px;
}
.expbag-capacity-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}
.expbag-capacity-label {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    color: var(--text-main);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.expbag-capacity-value {
    font-family: 'Oswald', sans-serif;
    color: var(--gold);
    font-weight: 700;
}
.expbag-capacity-value .expbag-capacity-sep { opacity: 0.5; margin: 0 3px; }
.expbag-capacity-value .expbag-capacity-unit {
    margin-left: 6px;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 13px;
    text-transform: lowercase;
}
.expbag-capacity-bar {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(var(--gold-rgb), 0.2);
}
.expbag-capacity-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(var(--gold-rgb), 0.9), rgba(var(--gold-rgb), 0.6));
    transition: width 0.3s ease;
}

.expbag-upgrade-card {
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: 10px;
    column-gap: 16px;
    align-items: center;
}
.expbag-upgrade-head {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.expbag-upgrade-title {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-main);
}
.expbag-upgrade-next {
    color: var(--text-muted);
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
}
.expbag-upgrade-cost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: var(--gold);
    font-size: 18px;
}
.expbag-upgrade-cost .icon-btn-sm { width: 20px; height: 20px; }
.expbag-upgrade-cost-label {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 13px;
    margin-left: 2px;
}
.expbag-upgrade-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.expbag-upgrade-max {
    grid-column: 1 / -1;
    color: var(--text-muted);
    font-style: italic;
    font-size: 13px;
    text-align: center;
}

.expbag-info {
    background: rgba(var(--bg-panel-rgb), 0.35);
    border: 1px dashed rgba(var(--gold-rgb), 0.25);
    border-radius: 8px;
    padding: 14px 18px;
}
.expbag-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
}
.expbag-info-list li::before {
    content: "▸ ";
    color: var(--gold);
    margin-right: 4px;
}

/* ---- Raccourci depuis la page Banque ---- */
.inv-bag-shortcut {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 18px;
    margin: 0 0 14px;
    background: linear-gradient(135deg, rgba(var(--bg-panel-rgb), 0.85) 0%, rgba(var(--bg-panel-rgb), 0.6) 100%);
    border: 1px solid rgba(var(--gold-rgb), 0.35);
    border-radius: 10px;
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
    font-family: 'Oswald', sans-serif;
}
.inv-bag-shortcut:hover {
    border-color: rgba(var(--gold-rgb), 0.8);
    background: linear-gradient(135deg, rgba(var(--bg-panel-rgb), 0.95) 0%, rgba(var(--bg-panel-rgb), 0.7) 100%);
    transform: translateY(-1px);
}
.inv-bag-shortcut-icon {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 0 6px rgba(var(--gold-rgb), 0.45));
    flex-shrink: 0;
}
.inv-bag-shortcut-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.inv-bag-shortcut-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--gold);
}
.inv-bag-shortcut-sub {
    font-size: 13px;
    color: var(--text-secondary, #9aa0a6);
}
.inv-bag-shortcut-sub strong {
    color: var(--text-main);
    font-weight: 700;
}
.inv-bag-shortcut-chev {
    font-size: 26px;
    color: var(--gold);
    opacity: 0.6;
    line-height: 1;
    padding-right: 4px;
}
