/**
 * Battle Arena Cards - World Map Integration
 *
 * Styling for Battle Arena mode selection cards
 *
 * @author LEARNature-ly Team
 * @version 1.0.0
 */

/* ========================================
   Battle Arena Section
   ======================================== */

.battle-arena-section {
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.battle-arena-section h2 {
    color: white;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.battle-description {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.battle-modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* ========================================
   Battle Mode Cards
   ======================================== */

.battle-mode-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.battle-mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.battle-mode-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.4);
}

.battle-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.battle-mode-card h3 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.battle-mode-card p {
    color: #4a5568;
    font-size: 0.95rem;
    margin-bottom: 15px;
    min-height: 40px;
}

.battle-duration {
    display: inline-block;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 20px;
}

.btn-battle {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-battle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

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

/* ========================================
   Difficulty Indicators
   ======================================== */

.battle-mode-card[data-difficulty="easy"] .battle-icon {
    filter: hue-rotate(120deg);
}

.battle-mode-card[data-difficulty="medium"] .battle-icon {
    filter: hue-rotate(60deg);
}

.battle-mode-card[data-difficulty="hard"] .battle-icon {
    filter: hue-rotate(0deg);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .battle-modes-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .battle-arena-section {
        padding: 20px;
        margin-top: 30px;
    }

    .battle-arena-section h2 {
        font-size: 2rem;
    }

    .battle-modes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .battle-mode-card {
        padding: 20px;
    }

    .battle-icon {
        font-size: 3rem;
    }

    .battle-mode-card h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .battle-arena-section h2 {
        font-size: 1.5rem;
    }

    .battle-description {
        font-size: 0.95rem;
    }

    .battle-icon {
        font-size: 2.5rem;
    }

    .battle-mode-card h3 {
        font-size: 1.1rem;
    }

    .battle-mode-card p {
        font-size: 0.85rem;
    }

    .btn-battle {
        padding: 12px;
        font-size: 1rem;
    }
}
