/**
 * Case Converter — case-converter.css
 * Accent: #6366F1 (indigo) | RGB: 99, 102, 241
 */

.cc-section {
    --tool-accent: #6366F1;
    --tool-accent-rgb: 99, 102, 241;
}

/* ── Case Grid ───────────────────────────────────────────── */
.cc-case-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 16px 14px;
    border-bottom: 1px solid rgba(100, 116, 139, 0.1);
}

.cc-case-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cc-group-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-light, #64748B);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding-top: 5px;
    white-space: nowrap;
    min-width: 82px;
    flex-shrink: 0;
}

.cc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cc-pill {
    padding: 3px 11px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
    color: var(--text-secondary, #475569);
    background: var(--bg-muted, #f8fafc);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
    line-height: 1.65;
}

.cc-pill:hover:not(.cc-pill--active) {
    background: rgba(var(--tool-accent-rgb), 0.07);
    border-color: rgba(var(--tool-accent-rgb), 0.35);
    color: var(--tool-accent);
}

.cc-pill--active {
    background: rgba(var(--tool-accent-rgb), 0.1);
    border-color: rgba(var(--tool-accent-rgb), 0.5);
    color: var(--tool-accent);
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(var(--tool-accent-rgb), 0.08);
}

/* ── Options strip (auto-convert toggle) ─────────────────── */
.cc-options-strip {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(100, 116, 139, 0.1);
}

/* ── IO panels ───────────────────────────────────────────── */
.cc-io-wrap .tool-textarea {
    min-height: 280px;
}

/* ── Action bar ──────────────────────────────────────────── */
.cc-section .tool-action-bar {
    padding: 14px 16px;
    border-top: 1px solid rgba(100, 116, 139, 0.1);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 680px) {
    .cc-case-group {
        flex-direction: column;
        gap: 5px;
    }

    .cc-group-label {
        min-width: unset;
        padding-top: 0;
    }
}