/* Battle Plugin Styles */

.battle-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 30px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.battle-header {
    text-align: center;
    padding: 25px 20px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.battle-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.battle-status {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.battle-status.active {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.battle-status.ended {
    background: rgba(0,0,0,0.3);
    color: #ccc;
}

.battle-arena {
    display: flex;
    align-items: stretch;
    min-height: 300px;
}

.battle-side {
    flex: 1;
    padding: 30px 25px;
    text-align: center;
    transition: background 0.3s ease;
}

.battle-side.left {
    background: #f8f9ff;
}

.battle-side.right {
    background: #fff8f8;
}

.battle-side:hover {
    background: #f0f0ff;
}

.battle-side.right:hover {
    background: #fff0f0;
}

.battle-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.battle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.battle-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #333;
}

.battle-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
    line-height: 1.5;
}

.battle-stats {
    margin-bottom: 20px;
}

.battle-stats .votes {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #333;
    line-height: 1;
}

.battle-stats .percent {
    display: block;
    font-size: 14px;
    color: #999;
    margin-top: 5px;
}

.battle-vote-btn {
    display: inline-block;
    padding: 12px 35px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.battle-vote-btn.left {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.battle-vote-btn.right {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.battle-vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.battle-vote-btn:active {
    transform: translateY(0);
}

.battle-vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.battle-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    flex-shrink: 0;
    background: #333;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 2px;
}

.battle-progress {
    padding: 20px 30px 25px;
    background: #f8f9fa;
}

.battle-progress-bar {
    display: flex;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: #e9ecef;
}

.progress-left {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
}

.progress-right {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transition: width 0.5s ease;
}

.battle-total {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: #666;
}

.battle-total .total-count {
    font-weight: 700;
    color: #333;
}

.battle-winner {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.battle-winner strong {
    font-size: 22px;
}

/* Message */
.battle-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    animation: battleFadeIn 0.3s ease;
}

.battle-message.success {
    background: #28a745;
    color: #fff;
}

.battle-message.error {
    background: #dc3545;
    color: #fff;
}

@keyframes battleFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .battle-arena {
        flex-direction: column;
    }

    .battle-vs {
        width: 100%;
        height: 50px;
        flex-direction: row;
    }

    .battle-side {
        padding: 25px 20px;
    }

    .battle-image {
        width: 120px;
        height: 120px;
    }
}
