/* Stats card for popularity and combat power */
.stats-card {
    display: flex;
    justify-content: space-between;
    background: rgba(30, 35, 45, 0.9);
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stats-value {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.stats-value:first-child {
    border-right: 2px solid rgba(255, 255, 255, 0.15);
}

.stats-number {
    font-size: 32px;
    font-weight: 700;
    color: #ffcc00;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

.stats-label {
    font-size: 12px;
    color: #d0d0d0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    font-weight: 600;
    white-space: normal;
    line-height: 1.2;
    max-width: 100%;
}

/* Nation distribution chart */
.nation-distribution-container {
    margin-top: 30px;
    background: rgba(30, 35, 45, 0.8);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: fadeIn 0.5s ease-out 0.2s both;
}

.nation-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ffffff;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nation-chart {
    display: flex;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    max-width: 95%;
    position: relative;
}

.nation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    min-width: 70px;
    overflow: hidden;
}

.nation.cappella {
    background: linear-gradient(to right, #1e40af, #3b82f6);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.nation.procyon {
    background: linear-gradient(to right, #b91c1c, #ef4444);
}

.nation:hover {
    transform: translateY(-2px);
    filter: brightness(1.2) contrast(1.1);
}

.nation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0), rgba(255,255,255,0.1), rgba(255,255,255,0));
    background-size: 200% 100%;
    animation: none;
    transition: 0.5s ease;
    transform: translateX(-100%);
}

.nation:hover::before {
    animation: shimmer-wave 1.5s infinite;
}

@keyframes shimmer-wave {
    0% {
        background-position: 200% 0;
        transform: translateX(-100%);
    }
    100% {
        background-position: -200% 0;
        transform: translateX(100%);
    }
}

.nation.cappella:hover {
    box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.5), 0 0 15px rgba(59, 130, 246, 0.4);
}

.nation.procyon:hover {
    box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.5), 0 0 15px rgba(239, 68, 68, 0.4);
}

.nation-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
    position: relative;
    z-index: 5;
}

.nation-percentage {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 600;
    position: relative;
    z-index: 5;
}

/* Mobile responsiveness for stats display */
@media (max-width: 576px) {
    .stats-card {
        padding: 12px 15px;
    }
    
    .stats-number {
        font-size: 28px;
        margin-bottom: 6px;
    }
    
    .stats-label {
        font-size: 12px;
        letter-spacing: 0.5px;
    }
    
    .nation-chart {
        height: 45px;
    }
    
    .nation-name {
        font-size: 12px;
        margin-bottom: 2px;
    }
    
    .nation-percentage {
        font-size: 10px;
    }
} 