/* Bot Cosmetics Management Styles */

.cosmetics-management-section {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.cosmetics-management-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.cosmetics-management-section h4 {
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
}

.cosmetics-management-section h4 i {
    color: #ffd700;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.cosmetics-management-section .btn-info {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transition: all 0.3s ease;
}

.cosmetics-management-section .btn-info:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#edit-cosmetics-container {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cosmetic Item Styles */
.cosmetics-section {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.cosmetic-group {
    margin-bottom: 20px;
}

.cosmetic-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 8px;
}

.cosmetic-group select {
    width: 100%;
    padding: 10px;
    background: rgba(52, 73, 94, 0.8);
    color: #ecf0f1;
    border: 1px solid rgba(127, 140, 141, 0.5);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.cosmetic-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Preview Styles */
#frame-preview, #badge-preview {
    margin-top: 10px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#frame-preview > div, #badge-preview > div {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Rarity Colors */
.rarity-common { border-color: #95a5a6 !important; }
.rarity-rare { border-color: #3498db !important; }
.rarity-epic { border-color: #9b59b6 !important; }
.rarity-legendary { 
    border-color: #f39c12 !important;
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.5);
}

/* Remove Cosmetics Button */
.remove-cosmetics-btn {
    margin-top: 15px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.remove-cosmetics-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Info Box */
.cosmetics-info {
    margin-top: 15px;
    padding: 12px;
    background: rgba(26, 37, 47, 0.8);
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.cosmetics-info small {
    color: #bdc3c7;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cosmetics-info i {
    color: #3498db;
}

/* Empty State */
.no-cosmetics {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.6);
}

.no-cosmetics i {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Loading State */
.cosmetics-loading {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.8);
}

.cosmetics-loading i {
    font-size: 32px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cosmetics-management-section {
        padding: 10px;
    }
    
    .cosmetics-management-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cosmetic-group {
        margin-bottom: 15px;
    }
}
