/**
 * Code of Conquest - Combat Screen Stylesheet
 * Turn-based combat interface with 3-column layout
 */

/* ===== COMBAT SCREEN VARIABLES ===== */
:root {
    /* Combat-specific colors */
    --combat-player: #3b82f6;           /* Blue for player actions */
    --combat-enemy: #ef4444;            /* Red for enemy actions */
    --combat-crit: var(--accent-gold);  /* Gold for critical hits */
    --combat-system: var(--text-muted); /* Gray for system messages */
    --combat-heal: var(--accent-green); /* Green for healing */

    /* Resource bar colors */
    --hp-bar-fill: #ef4444;             /* Red for HP */
    --mp-bar-fill: #3b82f6;             /* Blue for MP */

    /* Combat panel sizing */
    --combat-sidebar-width: 280px;
    --combat-header-height: 60px;
    --combat-actions-height: 120px;
}

/* ===== COMBAT PAGE LAYOUT ===== */
.combat-page main {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
}

.combat-container {
    display: grid;
    grid-template-columns: var(--combat-sidebar-width) 1fr var(--combat-sidebar-width);
    grid-template-rows: auto 1fr;
    gap: 1rem;
    height: calc(100vh - 140px);
    padding: 1rem;
    max-width: 2400px;
    margin: 0 auto;
}

/* ===== COMBAT HEADER ===== */
.combat-header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-ornate);
    border-radius: 8px;
}

.combat-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.combat-title-icon {
    font-size: var(--text-2xl);
}

.combat-round {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.round-counter {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--text-primary);
}

.round-counter strong {
    color: var(--accent-gold);
}

.turn-indicator {
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.turn-indicator--player {
    background: rgba(59, 130, 246, 0.2);
    color: var(--combat-player);
    border: 1px solid var(--combat-player);
}

.turn-indicator--enemy {
    background: rgba(239, 68, 68, 0.2);
    color: var(--combat-enemy);
    border: 1px solid var(--combat-enemy);
}

/* ===== COMBATANT PANEL (Left Column) ===== */
.combatant-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.combatant-section {
    padding: 1rem;
    border-bottom: 1px solid var(--border-primary);
}

.combatant-section:last-child {
    border-bottom: none;
}

.combatant-section-title {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

/* Combatant Card */
.combatant-card {
    padding: 0.75rem;
    background: var(--bg-input);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.combatant-card:last-child {
    margin-bottom: 0;
}

.combatant-card--player {
    border-left-color: var(--combat-player);
}

.combatant-card--enemy {
    border-left-color: var(--combat-enemy);
}

.combatant-card--active {
    background: var(--bg-tertiary);
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.2);
}

.combatant-card--defeated {
    opacity: 0.5;
}

.combatant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.combatant-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.combatant-level {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* Resource Bars (HP/MP) */
.combatant-resources {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.resource-bar {
    position: relative;
}

.resource-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-xs);
    margin-bottom: 0.125rem;
}

.resource-bar-name {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resource-bar-value {
    color: var(--text-primary);
    font-weight: 600;
}

.resource-bar-track {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.resource-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.resource-bar--hp .resource-bar-fill {
    background: linear-gradient(90deg, var(--hp-bar-fill), #f87171);
}

.resource-bar--mp .resource-bar-fill {
    background: linear-gradient(90deg, var(--mp-bar-fill), #60a5fa);
}

/* Low HP warning animation */
.resource-bar--hp.low .resource-bar-fill {
    animation: pulse-hp 1s ease-in-out infinite;
}

@keyframes pulse-hp {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ===== COMBAT MAIN (Center Column) ===== */
.combat-main {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Combat Log */
.combat-log {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.combat-log__entry {
    padding: 0.625rem 0.875rem;
    background: var(--bg-input);
    border-radius: 6px;
    font-size: var(--text-sm);
    line-height: 1.5;
    border-left: 3px solid transparent;
    animation: slideInLog 0.2s ease;
}

@keyframes slideInLog {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.combat-log__entry--player {
    border-left-color: var(--combat-player);
    background: rgba(59, 130, 246, 0.1);
}

.combat-log__entry--enemy {
    border-left-color: var(--combat-enemy);
    background: rgba(239, 68, 68, 0.1);
}

.combat-log__entry--crit {
    border-left-color: var(--combat-crit);
    background: rgba(243, 156, 18, 0.15);
}

.combat-log__entry--system {
    border-left-color: var(--combat-system);
    background: var(--bg-tertiary);
    font-style: italic;
    color: var(--text-secondary);
}

.combat-log__entry--heal {
    border-left-color: var(--combat-heal);
    background: rgba(39, 174, 96, 0.1);
}

.log-actor {
    font-weight: 600;
    color: var(--text-primary);
}

.log-message {
    color: var(--text-secondary);
}

.log-damage {
    font-weight: 700;
    color: var(--combat-enemy);
    margin-left: 0.25rem;
}

.log-damage--crit {
    color: var(--combat-crit);
    font-size: var(--text-base);
}

.log-heal {
    font-weight: 700;
    color: var(--combat-heal);
    margin-left: 0.25rem;
}

/* Empty log state */
.combat-log__empty {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem;
}

/* Combat Actions */
.combat-actions {
    padding: 1rem;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-primary);
}

.combat-actions__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.combat-action-btn {
    padding: 0.75rem 0.5rem;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.combat-action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.combat-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.combat-action-btn__icon {
    font-size: var(--text-xl);
}

/* Action button variants */
.combat-action-btn--attack {
    background: linear-gradient(135deg, var(--accent-red) 0%, #dc2626 100%);
    border-color: var(--accent-red);
    color: white;
}

.combat-action-btn--attack:hover:not(:disabled) {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.combat-action-btn--ability {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-color: #8b5cf6;
    color: white;
}

.combat-action-btn--ability:hover:not(:disabled) {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.combat-action-btn--item {
    background: linear-gradient(135deg, var(--accent-green) 0%, #16a34a 100%);
    border-color: var(--accent-green);
    color: white;
}

.combat-action-btn--item:hover:not(:disabled) {
    box-shadow: 0 0 15px rgba(39, 174, 96, 0.4);
}

.combat-action-btn--defend {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #2563eb 100%);
    border-color: var(--accent-blue);
    color: white;
}

.combat-action-btn--defend:hover:not(:disabled) {
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.4);
}

.combat-action-btn--flee {
    background: transparent;
    border-color: var(--border-primary);
    color: var(--text-secondary);
}

.combat-action-btn--flee:hover:not(:disabled) {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

/* Disabled state message */
.combat-actions__disabled-message {
    text-align: center;
    padding: 0.5rem;
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-style: italic;
}

/* ===== COMBAT SIDEBAR (Right Column) ===== */
.combat-sidebar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Turn Order */
.turn-order {
    padding: 1rem;
    border-bottom: 1px solid var(--border-primary);
}

.turn-order__title {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.turn-order__list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.turn-order__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    background: var(--bg-input);
    border-radius: 4px;
    font-size: var(--text-sm);
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.turn-order__item--active {
    background: var(--bg-tertiary);
    border-left-color: var(--accent-gold);
    box-shadow: 0 0 8px rgba(243, 156, 18, 0.2);
}

.turn-order__item--player {
    border-left-color: var(--combat-player);
}

.turn-order__item--enemy {
    border-left-color: var(--combat-enemy);
}

.turn-order__item--defeated {
    opacity: 0.4;
    text-decoration: line-through;
}

.turn-order__position {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: 600;
    background: var(--bg-tertiary);
    border-radius: 50%;
    color: var(--text-muted);
}

.turn-order__item--active .turn-order__position {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.turn-order__name {
    flex: 1;
    color: var(--text-primary);
}

.turn-order__check {
    color: var(--accent-green);
    font-size: var(--text-sm);
}

/* Active Effects */
.effects-panel {
    padding: 1rem;
    flex: 1;
}

.effects-panel__title {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.effects-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.effect-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    background: var(--bg-input);
    border-radius: 4px;
    font-size: var(--text-sm);
}

.effect-item--buff {
    border-left: 3px solid var(--accent-green);
}

.effect-item--debuff {
    border-left: 3px solid var(--accent-red);
}

.effect-item--shield {
    border-left: 3px solid var(--accent-blue);
}

.effect-icon {
    font-size: var(--text-base);
}

.effect-name {
    flex: 1;
    color: var(--text-primary);
}

.effect-duration {
    font-size: var(--text-xs);
    color: var(--text-muted);
    padding: 0.125rem 0.375rem;
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.effects-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-style: italic;
    padding: 1rem;
}

/* ===== ABILITY MODAL ===== */
.ability-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ability-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.ability-btn:hover:not(:disabled) {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.ability-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ability-icon {
    font-size: var(--text-xl);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

.ability-info {
    flex: 1;
    min-width: 0;
}

.ability-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.ability-description {
    font-size: var(--text-xs);
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ability-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.ability-cost {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--mp-bar-fill);
    padding: 0.125rem 0.375rem;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 3px;
}

.ability-cooldown {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.ability-cooldown--active {
    color: var(--accent-red);
}

/* ===== ITEM MODAL ===== */
.item-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.item-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.item-btn:hover:not(:disabled) {
    border-color: var(--accent-green);
    background: rgba(39, 174, 96, 0.1);
}

.item-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.item-icon {
    font-size: var(--text-xl);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.item-effect {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.item-quantity {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.items-empty {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem;
}

/* ===== VICTORY/DEFEAT SCREENS ===== */
.combat-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
    text-align: center;
}

.combat-result__icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.combat-result__title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.combat-result--victory .combat-result__title {
    color: var(--accent-gold);
}

.combat-result--defeat .combat-result__title {
    color: var(--accent-red);
}

.combat-result__subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Rewards Section */
.combat-rewards {
    background: var(--bg-secondary);
    border: 2px solid var(--border-ornate);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    min-width: 300px;
}

.rewards-title {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-align: center;
}

.rewards-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--bg-input);
    border-radius: 4px;
}

.reward-icon {
    font-size: var(--text-xl);
}

.reward-label {
    flex: 1;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.reward-value {
    font-size: var(--text-sm);
    font-weight: 600;
}

.reward-value--xp {
    color: var(--accent-gold);
}

.reward-value--gold {
    color: #fbbf24;
}

.reward-value--level {
    color: var(--accent-green);
}

/* Loot Items */
.loot-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-primary);
}

.loot-title {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.loot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.loot-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: var(--text-sm);
}

.loot-item--common {
    border-left: 3px solid #9ca3af;
}

.loot-item--uncommon {
    border-left: 3px solid var(--accent-green);
}

.loot-item--rare {
    border-left: 3px solid var(--accent-blue);
}

.loot-item--epic {
    border-left: 3px solid #8b5cf6;
}

.loot-item--legendary {
    border-left: 3px solid var(--accent-gold);
}

/* Combat Result Actions */
.combat-result__actions {
    display: flex;
    gap: 1rem;
}

.combat-result__actions .btn {
    min-width: 150px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .combat-container {
        grid-template-columns: 1fr var(--combat-sidebar-width);
        height: auto;
        min-height: calc(100vh - 140px);
    }

    .combat-header {
        grid-column: 1 / -1;
    }

    .combatant-panel {
        display: none;
    }

    /* Show combatants inline in header on tablet */
    .combat-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .combat-actions__grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    .combat-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr auto;
        gap: 0;
        padding: 0;
        height: 100vh;
    }

    .combat-header {
        border-radius: 0;
        padding: 0.75rem 1rem;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .combat-title {
        font-size: var(--text-base);
    }

    .combat-round {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.25rem;
    }

    .round-counter {
        font-size: var(--text-sm);
    }

    .turn-indicator {
        font-size: var(--text-xs);
        padding: 0.25rem 0.5rem;
    }

    /* Mobile combatants bar */
    .combatant-panel--mobile {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding: 0.5rem;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-primary);
        gap: 0.5rem;
    }

    .combatant-card--mobile {
        flex-shrink: 0;
        width: 140px;
        padding: 0.5rem;
    }

    .combat-main {
        border-radius: 0;
        border-left: none;
        border-right: none;
        flex: 1;
        min-height: 0;
    }

    .combat-log {
        padding: 0.75rem;
    }

    .combat-actions {
        position: sticky;
        bottom: 0;
        padding: 0.75rem;
        border-radius: 0;
    }

    .combat-actions__grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    .combat-action-btn {
        padding: 0.625rem 0.375rem;
        font-size: var(--text-xs);
    }

    .combat-action-btn__icon {
        font-size: var(--text-base);
    }

    /* Hide sidebar on mobile */
    .combat-sidebar {
        display: none;
    }

    /* Victory/Defeat mobile adjustments */
    .combat-result {
        padding: 1.5rem;
        min-height: 50vh;
    }

    .combat-result__icon {
        font-size: 3rem;
    }

    .combat-result__title {
        font-size: var(--text-2xl);
    }

    .combat-rewards {
        padding: 1rem;
        min-width: auto;
        width: 100%;
    }

    .combat-result__actions {
        flex-direction: column;
        width: 100%;
    }

    .combat-result__actions .btn {
        width: 100%;
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .combat-actions__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
}

/* ===== HTMX LOADING STATES ===== */
.combat-action-btn.htmx-request {
    opacity: 0.7;
    pointer-events: none;
}

.combat-action-btn.htmx-request::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Combat log loading indicator */
.combat-log.htmx-request::after {
    content: 'Processing...';
    display: block;
    text-align: center;
    padding: 0.5rem;
    color: var(--text-muted);
    font-style: italic;
    font-size: var(--text-sm);
}

/* ===== ACCESSIBILITY ===== */
.combat-log {
    /* Screen reader announcements */
}

.combat-log[aria-live="polite"] .combat-log__entry:last-child {
    /* Most recent entry */
}

/* Focus styles */
.combat-action-btn:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

.ability-btn:focus,
.item-btn:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .combat-log__entry,
    .combat-result__icon,
    .resource-bar-fill {
        animation: none;
        transition: none;
    }
}

/* ===== CUSTOM SCROLLBAR ===== */
.combat-log::-webkit-scrollbar,
.combatant-panel::-webkit-scrollbar,
.combat-sidebar::-webkit-scrollbar {
    width: 6px;
}

.combat-log::-webkit-scrollbar-track,
.combatant-panel::-webkit-scrollbar-track,
.combat-sidebar::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.combat-log::-webkit-scrollbar-thumb,
.combatant-panel::-webkit-scrollbar-thumb,
.combat-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-primary);
    border-radius: 3px;
}

.combat-log::-webkit-scrollbar-thumb:hover,
.combatant-panel::-webkit-scrollbar-thumb:hover,
.combat-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
