/* ═══════════════════════════════════════════════════════════════════════════
   Combat matchup — supplemental styles
   Combat-specific controls only. Imports shared/style.css first.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Fighter profile block ────────────────────────────────────────────────── */
.fighter-profiles {
    padding: 22px 0;
}

.fighter-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 8px 0;
}

.fighter-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text);
}

.fighter-name-link {
    text-decoration: none;
    color: inherit;
}
.fighter-name-link:hover {
    text-decoration: underline;
    text-decoration-color: var(--border-hi);
    text-underline-offset: 3px;
}

.fighter-detail {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--label);
}

.fighter-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.rules-note {
    margin-top: 14px;
    font-size: 13px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--dim);
    line-height: 1.8;
}

/* ── Weapon image expand ──────────────────────────────────────────────────── */
/* <details>/<summary> pattern: thumbnail collapsed by default, click expands
   to full image + specs table. No JavaScript required. */
.weapon-detail {
    margin-bottom: 14px;
    border: 1px solid var(--border-hi);
}

.weapon-detail summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 6px;
    transition: background 0.1s;
}
.weapon-detail summary::-webkit-details-marker { display: none; }
.weapon-detail summary:hover { background: rgba(255, 204, 0, 0.04); }

.weapon-thumb {
    display: block;
    width: 80px;
    height: 52px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}

.weapon-expand-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--dim);
    flex: 1;
}
.weapon-expand-label::after { content: ' ▾'; }
.weapon-detail[open] .weapon-expand-label::after { content: ' ▴'; }

.weapon-expanded {
    border-top: 1px solid var(--border-hi);
    padding: 12px;
}

.weapon-full-img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    object-position: center;
    margin-bottom: 12px;
}

.weapon-specs {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
}

.spec-row {
    display: flex;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
}
.spec-row:last-child { border-bottom: none; }

.spec-label {
    flex: 0 0 58px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--label);
    padding-top: 1px;
}

.spec-value {
    font-size: 13px;
    color: var(--secondary);
    letter-spacing: 0.02em;
    line-height: 1.5;
}

/* ── Wound flash animation ────────────────────────────────────────────────── */
/* Applied to a fighter's row for 380 ms when a wound lands during the
   progressive reveal. JS adds/removes the class; animation is CSS-only. */
@keyframes wound-flash {
    0%   { background: rgba(255, 204, 0, 0.22); }
    100% { background: transparent; }
}
.wound-flash {
    animation: wound-flash 0.38s ease-out;
}

/* ── Combat condition flag ─────────────────────────────────────────────────── */
/* white-space: pre-line allows the \n between env/duration and deciding factor */
.result-legality.is-combat {
    color: var(--label);
    white-space: pre-line;
    text-transform: none;  /* deciding factor reads better without all-caps */
    letter-spacing: 0.06em;
}
