/* assets/styles/channel-picker.css */

.channel-picker {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #dfe3e8);
    border-radius: 8px;
}

.channel-picker-hint {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted, #52606d);
}

.channel-picker-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem 1rem;
    padding: 0;
    margin: 0 0 1rem;
    border: none;
}

.channel-picker-group:last-child {
    margin-bottom: 0;
}

.channel-picker-group legend {
    grid-column: 1 / -1;
    padding: 0 0 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-muted, #52606d);
    border-bottom: 1px solid var(--border, #dfe3e8);
    margin-bottom: 0.5rem;
}

.channel-picker-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.875rem;
    color: var(--text, #1f2933);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.channel-picker-option:hover {
    background: var(--surface-alt, #f8f9fa);
}

.channel-picker-option input[type="checkbox"] {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    accent-color: var(--accent, #2563eb);
    cursor: pointer;
}

/* Nicht auswählbar, weil Limit von 2 erreicht und diese Checkbox nicht Teil der Auswahl ist */
.channel-picker-option:has(input:disabled) {
    color: var(--text-disabled, #9aa5b1);
    cursor: not-allowed;
}

.channel-picker-option:has(input:disabled):hover {
    background: transparent;
}

.channel-picker-option input:disabled {
    cursor: not-allowed;
}

/* Ausgewählte Optionen leicht hervorheben, auch wenn nicht disabled */
.channel-picker-option:has(input:checked) {
    background: color-mix(in srgb, var(--accent, #2563eb) 8%, transparent);
    font-weight: 500;
}

.channel-picker-option input:focus-visible {
    outline: 2px solid var(--accent, #2563eb);
    outline-offset: 2px;
}

/* Chart-Karte + Empty-State */
.chart-card {
    padding: 1.25rem;
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #dfe3e8);
    border-radius: 8px;
    min-height: 360px;
}

.chart-empty-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 320px;
    margin: 0;
    color: var(--text-muted, #52606d);
    font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
    .channel-picker-option {
        transition: none;
    }
}

@media (max-width: 640px) {
    .channel-picker-group {
        grid-template-columns: 1fr;
    }
}