/* ============================================================
   SHADOWSKINGS — QUEST COMBAT PANEL (VIOLET RUNE THEME)
   ============================================================ */

#combat-panel {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;

    background: radial-gradient(
        circle at center,
        rgba(70, 0, 120, 0.25) 0%,
        rgba(20, 0, 40, 0.35) 60%,
        rgba(0, 0, 0, 0.85) 100%
    );

    box-shadow:
        0 0 25px rgba(120, 0, 255, 0.25) inset,
        0 0 40px rgba(120, 0, 255, 0.15);
}

/* ============================================================
   HERO & ENEMY PANELS
   ============================================================ */

.combat-side {
    width: 260px;
    background: rgba(0,0,0,0.45);
    border: 2px solid rgba(120, 60, 200, 0.55);
    border-radius: 8px;
    padding: 12px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;

    box-shadow:
        0 0 14px rgba(120, 60, 200, 0.45),
        0 0 22px rgba(120, 60, 200, 0.25) inset;
}

.combat-portrait {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 12px;

    filter: drop-shadow(0 0 8px rgba(140, 60, 255, 0.35));
}

/* ============================================================
   BARS (HP & POWER)
   ============================================================ */

.combat-bars {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hp-bar,
.power-bar {
    width: 100%;
    height: 16px;
    background: rgba(0,0,0,0.6);
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
}

.hp-fill {
    height: 100%;
    background: linear-gradient(to right, #ff3c3c, #b80000);
    transition: width 0.25s ease;
}

.power-fill {
    height: 100%;
    background: linear-gradient(to right, #8a4cff, #4a1c8f);
    transition: width 0.25s ease;
}

.combat-stats {
    margin-top: 6px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 14px;
}

/* ============================================================
   ABILITY BAR
   ============================================================ */

#combat-ability-bar {
    position: absolute;
    bottom: 20px;
    left: 20px;

    display: flex;
    flex-direction: row;
    gap: 10px;
}

.ability-button {
    background: rgba(0,0,0,0.55);
    border: 2px solid rgba(140, 60, 255, 0.35);
    border-radius: 6px;
    padding: 10px 14px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;

    box-shadow:
        0 0 8px rgba(140, 60, 255, 0.35),
        0 0 16px rgba(140, 60, 255, 0.20) inset;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ability-button:hover {
    border-color: rgba(180, 100, 255, 0.85);
    box-shadow:
        0 0 12px rgba(180, 100, 255, 0.75),
        0 0 22px rgba(180, 100, 255, 0.55) inset;
}

/* ============================================================
   COMBAT LOG
   ============================================================ */

#combat-log {
    flex: 1;
    height: 100%;
    background: rgba(0,0,0,0.45);
    border: 2px solid rgba(120, 60, 200, 0.55);
    border-radius: 8px;
    padding: 12px;
    box-sizing: border-box;
    overflow-y: auto;

    box-shadow:
        0 0 14px rgba(120, 60, 200, 0.45),
        0 0 22px rgba(120, 60, 200, 0.25) inset;
}

#combat-log-entries {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #fff;
    font-size: 14px;
}

/* ============================================================
   RESULT BANNER
   ============================================================ */

#combat-result-banner {
    position: absolute;
    top: 20px;
    right: 20px;

    padding: 10px 20px;
    border-radius: 6px;
    font-size: 22px;
    font-weight: bold;
    color: #fff;

    opacity: 0;
    transition: opacity 0.4s ease;
}

#combat-result-banner.victory {
    background: rgba(80, 0, 140, 0.75);
    box-shadow: 0 0 20px rgba(160, 80, 255, 0.75);
    opacity: 1;
}

#combat-result-banner.defeat {
    background: rgba(120, 0, 0, 0.75);
    box-shadow: 0 0 20px rgba(255, 60, 60, 0.75);
    opacity: 1;
}
