/**
 * Color Picker Component
 * Composant réutilisable pour les sélecteurs de couleur
 * Design Bubul harmonisé
 */

/* ===== CONTAINER ===== */
.color-picker-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.color-picker-group--row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
}

/* ===== ITEM ===== */
.color-picker-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-md);
    transition: background 150ms ease;
}

.color-picker-item:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Variante pour les pages settings (fond plus visible) */
.color-picker-item--card {
    padding: var(--spacing-md);
    background: var(--color-gray-lightest);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-gray-border);
}

.color-picker-item--card:hover {
    background: var(--color-white);
    border-color: var(--color-primary-light);
    box-shadow: 0 2px 8px rgba(12, 129, 228, 0.08);
}

/* ===== INPUT COLOR ===== */
.color-picker-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 3px solid var(--color-white);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all 200ms ease;
    background: none;
    flex-shrink: 0;
    box-shadow:
        0 0 0 1px rgba(12, 129, 228, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Variante plus grande pour settings */
.color-picker-input--lg {
    width: 48px;
    height: 48px;
}

.color-picker-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-input::-webkit-color-swatch {
    border: none;
    border-radius: calc(var(--border-radius-lg) - 3px);
}

.color-picker-input::-moz-color-swatch {
    border: none;
    border-radius: calc(var(--border-radius-lg) - 3px);
}

.color-picker-input:hover {
    transform: scale(1.08);
    box-shadow:
        0 0 0 2px var(--color-primary),
        0 4px 12px rgba(12, 129, 228, 0.2);
}

.color-picker-input:focus {
    outline: none;
    box-shadow:
        0 0 0 2px var(--color-primary),
        0 0 0 4px rgba(12, 129, 228, 0.15);
}

/* ===== LABELS ===== */
.color-picker-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.color-picker-label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
}

.color-picker-hint {
    font-size: 11px;
    color: var(--color-text-secondary);
}
