/* Badge Honor Board Dashlet Styles */

.dashlet-badge-honor-board {
    padding: 10px;
}

.badge-honor-board-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.honor-board-user-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.honor-board-user-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-stats {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #6c757d;
    flex-wrap: wrap;
}

.badge-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge-stat.legendary {
    color: #ff6b6b;
    font-weight: 600;
}

.user-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
}

.badge-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    transition: transform 0.2s ease;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.badge-item:hover {
    transform: scale(1.15);
    z-index: 1;
}

.badge-item.rarity-common {
    border-color: #95a5a6;
    background: #ecf0f1;
}

.badge-item.rarity-uncommon {
    border-color: #3498db;
    background: #ebf5fb;
}

.badge-item.rarity-rare {
    border-color: #9b59b6;
    background: #f4ecf7;
}

.badge-item.rarity-epic {
    border-color: #e74c3c;
    background: #fadbd8;
}

.badge-item.rarity-legendary {
    border-color: #f39c12;
    background: #fef5e7;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

.badge-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.badge-icon {
    font-size: 24px;
    color: #6c757d;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state-icon {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 15px;
}

.empty-state h4 {
    color: #6c757d;
    margin-bottom: 10px;
}

.loading-container {
    padding: 40px;
    font-size: 16px;
    color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .user-info {
        gap: 10px;
    }
    
    .user-avatar, 
    .user-avatar-placeholder {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .user-name {
        font-size: 14px;
    }
    
    .user-stats {
        font-size: 12px;
    }
    
    .badge-item {
        width: 35px;
        height: 35px;
    }
    
    .badge-icon {
        font-size: 20px;
    }
}
