/* Player Avatar System Styles */

.player-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 8px;
    font-size: 18px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.player-avatar.circle {
    border-radius: 50%;
}

.player-avatar.square {
    border-radius: 8px;
}

.player-avatar.diamond {
    border-radius: 4px;
    transform: rotate(45deg);
}

.player-avatar.diamond i {
    transform: rotate(-45deg);
}

/* Avatar color variations using Bootstrap colors */
.player-avatar.bg-primary { background-color: var(--bs-primary) !important; border-color: var(--bs-primary); }
.player-avatar.bg-secondary { background-color: var(--bs-secondary) !important; border-color: var(--bs-secondary); }
.player-avatar.bg-success { background-color: var(--bs-success) !important; border-color: var(--bs-success); }
.player-avatar.bg-danger { background-color: var(--bs-danger) !important; border-color: var(--bs-danger); }
.player-avatar.bg-warning { background-color: var(--bs-warning) !important; border-color: var(--bs-warning); color: var(--bs-dark) !important; }
.player-avatar.bg-info { background-color: var(--bs-info) !important; border-color: var(--bs-info); }
.player-avatar.bg-light { background-color: var(--bs-light) !important; border-color: var(--bs-light); color: var(--bs-dark) !important; }
.player-avatar.bg-dark { background-color: var(--bs-dark) !important; border-color: var(--bs-dark); }

/* Larger avatars for nameplates */
.player-nameplate .player-avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
    margin-right: 6px;
}

/* Smaller avatars for sidebar */
.sidebar-player-item .player-avatar {
    width: 24px;
    height: 24px;
    font-size: 12px;
    margin-right: 4px;
}

/* Avatar selection interface */
.avatar-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.avatar-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--bs-border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bs-body-bg);
}

.avatar-option:hover {
    border-color: var(--bs-primary);
    transform: scale(1.1);
}

.avatar-option.selected {
    border-color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
}

.avatar-option .player-avatar {
    width: 36px;
    height: 36px;
    font-size: 16px;
    margin: 0;
}

/* Icon categories */
.icon-category {
    margin-bottom: 15px;
}

.icon-category h6 {
    margin-bottom: 8px;
    color: var(--bs-text-muted);
}

/* Color selector */
.color-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.color-option {
    width: 40px;
    height: 40px;
    border: 2px solid var(--bs-border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
    border-color: var(--bs-white);
}

.color-option.selected {
    border-color: var(--bs-white);
    box-shadow: 0 0 0 3px var(--bs-primary);
}

.color-option::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bs-white);
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.color-option.selected::after {
    opacity: 1;
}

/* Style selector */
.style-selector {
    display: flex;
    gap: 15px;
    margin: 10px 0;
}

.style-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 2px solid var(--bs-border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bs-body-bg);
}

.style-option:hover {
    border-color: var(--bs-primary);
}

.style-option.selected {
    border-color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
}

.style-preview {
    width: 30px;
    height: 30px;
    background: var(--bs-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-white);
    font-size: 12px;
}

.style-preview.circle {
    border-radius: 50%;
}

.style-preview.square {
    border-radius: 6px;
}

.style-preview.diamond {
    border-radius: 3px;
    transform: rotate(45deg);
}

.style-preview.diamond i {
    transform: rotate(-45deg);
}

/* Bot avatars */
.player-avatar.bot-avatar {
    border-color: var(--bs-info);
    position: relative;
}

.player-avatar.bot-avatar::after {
    content: '🤖';
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 8px;
    background: var(--bs-dark);
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}