/* Afriarts Leaderboard Styles */

.afriarts-leaderboard-container {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.afriarts-lb-header {
    background: rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    text-align: center;
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.afriarts-lb-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.afriarts-lb-list {
    padding: 20px;
}

.afriarts-lb-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    margin-bottom: 12px;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.afriarts-lb-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.afriarts-lb-item.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: 2px solid #ffa500;
    margin-bottom: 15px;
}

.afriarts-lb-item.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    border: 2px solid #a9a9a9;
}

.afriarts-lb-item.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
    border: 2px solid #8b4513;
}

/* Rank Badge */
.afriarts-lb-rank {
    flex: 0 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
}

/* Profile Picture */
.afriarts-lb-picture {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.afriarts-lb-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.afriarts-lb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    font-size: 32px;
}

/* Contestant Info */
.afriarts-lb-info {
    flex: 1;
    min-width: 0;
}

.afriarts-lb-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.afriarts-lb-age {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.afriarts-lb-category {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Vote Count */
.afriarts-lb-votes {
    flex: 0 0 80px;
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
}

.vote-number {
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
    line-height: 1;
}

.vote-label {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

/* Progress Bar */
.afriarts-lb-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    width: var(--vote-percentage);
    transition: width 0.3s ease;
}

.afriarts-lb-item {
    position: relative;
}

/* Footer Stats */
.afriarts-lb-footer {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-align: center;
    flex-wrap: wrap;
}

.footer-stat {
    flex: 1;
    min-width: 150px;
}

.footer-stat strong {
    display: block;
    font-size: 20px;
    margin-bottom: 5px;
}

/* Empty State */
.afriarts-lb-empty {
    padding: 50px 20px;
    text-align: center;
    color: #999;
    background: #f9f9f9;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .afriarts-lb-header h2 {
        font-size: 22px;
    }

    .afriarts-lb-item {
        flex-wrap: wrap;
        padding: 12px 15px;
        gap: 10px;
    }

    .afriarts-lb-info {
        flex: 1 1 100%;
        order: 3;
    }

    .afriarts-lb-votes {
        flex: 0 0 auto;
        width: 100%;
        margin-top: 10px;
        order: 4;
    }

    .afriarts-lb-footer {
        flex-direction: column;
        gap: 10px;
    }

    .footer-stat {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .afriarts-leaderboard-container {
        border-radius: 8px;
    }

    .afriarts-lb-header {
        padding: 20px 15px;
    }

    .afriarts-lb-header h2 {
        font-size: 18px;
    }

    .afriarts-lb-list {
        padding: 15px;
    }

    .afriarts-lb-item {
        padding: 10px 12px;
    }

    .afriarts-lb-picture {
        flex: 0 0 60px;
        width: 60px;
        height: 60px;
    }

    .afriarts-lb-name {
        font-size: 14px;
    }

    .vote-number {
        font-size: 16px;
    }
}