/* Modern Battles Styles */
.battles-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    overflow: hidden;
    height: 500px;
    display: flex;
    flex-direction: column;
}

/* Battles Header */
.battles-header {
    background: rgba(102, 126, 234, 0.1);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
    backdrop-filter: blur(10px);
}

.battles-title {
    color: #495057;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 1rem 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.battles-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
    font-weight: 500;
}

/* Filter Buttons */
.battles-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.battles-filter-btn {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.battles-filter-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: #5a6fd8;
    text-decoration: none;
}

.battles-filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.battles-filter-btn i {
    font-size: 0.8rem;
}

/* Battles Content */
.battles-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(248, 249, 250, 0.8);
}

.battles-content::-webkit-scrollbar {
    width: 8px;
}

.battles-content::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
}

.battles-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 4px;
}

.battles-content::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* Battle Items */
.battle-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.battle-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

.battle-item:last-child {
    margin-bottom: 0;
}

.battle-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.battle-team {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.battle-team-flag {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.battle-team-flag:hover {
    border-color: rgba(102, 126, 234, 0.6);
    transform: scale(1.05);
}

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

.battle-team-name {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
    margin: 0;
}

.battle-center {
    flex: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.battle-name {
    color: #495057;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    margin: 0;
}

.battle-name:hover {
    color: #667eea;
    text-decoration: none;
}

.battle-time {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    margin: 0;
    min-width: 120px;
    text-align: center;
}

.battle-vs {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin: 0;
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

/* Empty State */
.battles-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.battles-empty-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.battles-empty-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .battles-container {
        height: 400px;
        border-radius: 15px;
    }

    .battles-header {
        padding: 1rem;
    }

    .battles-title {
        font-size: 1.3rem;
    }

    .battles-filters {
        flex-direction: column;
        gap: 0.5rem;
    }

    .battle-row {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .battle-team {
        flex: none;
        width: 100%;
    }

    .battle-center {
        flex: none;
        width: 100%;
    }

    .battle-team-flag {
        width: 50px;
        height: 50px;
    }

    .battle-name {
        font-size: 1rem;
    }

    .battle-time {
        font-size: 0.8rem;
        min-width: 100px;
    }
}

/* Animation for battles */
.battle-item {
    animation: slideInUp 0.3s ease-out;
}

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

/* Transition effects */
.slide-fade-enter-active {
    transition: all 0.3s ease;
}

.slide-fade-leave-active {
    transition: all 0.3s ease;
}

.slide-fade-enter-from,
.slide-fade-leave-to {
    opacity: 0;
    transform: translateY(10px);
}

/* Battle status indicators */
.battle-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.battle-status.active {
    background: #28a745;
    animation: pulse 2s infinite;
}

.battle-status.ending {
    background: #ffc107;
}

.battle-status.finished {
    background: #dc3545;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}