/* ════════════════════════════════════════════════════════════════════════════
   RECATOOLS — Text Case Converter — style.css
   Tool-specific overrides only.
   Base styles live in /assets/css/tool-page.css.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Input / output textareas ────────────────────────────────────────────────── */
.tcc-textarea {
    width:         100%;
    min-height:    140px;
    resize:        vertical;
    font-family:   'IBM Plex Sans', sans-serif;
    font-size:     0.9375rem;
    line-height:   1.6;
    color:         var(--text, #0D1B2A);
    background:    var(--bg, #FFFFFF);
    border:        1.5px solid var(--border, #E2E4E8);
    border-radius: 8px;
    padding:       0.75rem 1rem;
    box-sizing:    border-box;
    transition:    border-color 0.15s;
    outline:       none;
}
.tcc-textarea:focus {
    border-color: var(--accent, #E8472F);
    background:   #fff;
}
.tcc-textarea[readonly] {
    background:   var(--bg, #FFFFFF);
    cursor:       default;
    color:        var(--text, #0D1B2A);
}
.tcc-textarea::placeholder {
    color: var(--muted, #64748B);
}

/* ── Textarea wrapper (for char count overlay) ───────────────────────────────── */
.tcc-textarea-wrap {
    position: relative;
}
.tcc-char-count {
    position:    absolute;
    bottom:      0.5rem;
    right:       0.75rem;
    font-size:   0.75rem;
    color:       var(--muted, #64748B);
    pointer-events: none;
    user-select: none;
    background:  transparent;
}

/* ── Case conversion button row ──────────────────────────────────────────────── */
.case-btn-row {
    display:   flex;
    flex-wrap: wrap;
    gap:       0.5rem;
    margin:    1rem 0 0.75rem;
}

.case-btn {
    display:        inline-flex;
    align-items:    center;
    justify-content: center;
    padding:        0.35rem 0.85rem;
    font-family:    'IBM Plex Sans', sans-serif;
    font-size:      0.8125rem;
    font-weight:    600;
    line-height:    1;
    white-space:    nowrap;
    cursor:         pointer;
    border:         1.5px solid var(--border, #E2E4E8);
    border-radius:  999px;
    background:     #fff;
    color:          var(--text, #0D1B2A);
    transition:     background 0.15s, border-color 0.15s, color 0.15s;
    outline:        none;
    -webkit-tap-highlight-color: transparent;
}
.case-btn:hover {
    border-color: var(--accent, #E8472F);
    color:        var(--accent, #E8472F);
    background:   #FFF5F2;
}
.case-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(232,98,42,0.25);
    border-color: var(--accent, #E8472F);
}
.case-btn.active {
    background:   var(--accent, #E8472F);
    border-color: var(--accent, #E8472F);
    color:        #fff;
}
.case-btn.active:hover {
    background:   #cf561f;
    border-color: #cf561f;
    color:        #fff;
}

/* ── Output row (textarea + copy button side by side label row) ──────────────── */
.tcc-output-label-row {
    display:     flex;
    align-items: center;
    justify-content: space-between;
    margin-top:  1.25rem;
    margin-bottom: 0.5rem;
    gap:         0.5rem;
}
.tcc-output-label {
    font-size:   0.8125rem;
    font-weight: 600;
    color:       var(--muted, #64748B);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Copy button ─────────────────────────────────────────────────────────────── */
.tcc-copy-btn {
    display:        inline-flex;
    align-items:    center;
    gap:            0.3rem;
    padding:        0.35rem 0.85rem;
    font-family:    'IBM Plex Sans', sans-serif;
    font-size:      0.8125rem;
    font-weight:    600;
    cursor:         pointer;
    border:         1.5px solid var(--accent, #E8472F);
    border-radius:  999px;
    background:     transparent;
    color:          var(--accent, #E8472F);
    transition:     background 0.15s, color 0.15s;
    outline:        none;
    white-space:    nowrap;
}
.tcc-copy-btn:hover {
    background: var(--accent, #E8472F);
    color:      #fff;
}
.tcc-copy-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(232,98,42,0.25);
}
.tcc-copy-btn.copied {
    background: #2e9e6b;
    border-color: #2e9e6b;
    color: #fff;
}

/* ── Action row (clear button) ───────────────────────────────────────────────── */
.tcc-action-row {
    display:    flex;
    gap:        0.75rem;
    margin-top: 0.875rem;
    flex-wrap:  wrap;
}

.tcc-clear-btn {
    padding:        0.4rem 1rem;
    font-family:    'IBM Plex Sans', sans-serif;
    font-size:      0.8125rem;
    font-weight:    600;
    cursor:         pointer;
    border:         1.5px solid var(--border, #E2E4E8);
    border-radius:  999px;
    background:     transparent;
    color:          var(--muted, #64748B);
    transition:     border-color 0.15s, color 0.15s;
    outline:        none;
}
.tcc-clear-btn:hover {
    border-color: #c0392b;
    color:        #c0392b;
}
.tcc-clear-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(192,57,43,0.2);
}

/* ── Input label row ─────────────────────────────────────────────────────────── */
.tcc-input-label-row {
    display:     flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    gap:         0.5rem;
}
.tcc-input-label {
    font-size:   0.8125rem;
    font-weight: 600;
    color:       var(--muted, #64748B);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Mobile tweaks ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .case-btn {
        font-size: 0.75rem;
        padding:   0.3rem 0.65rem;
    }
    .tcc-textarea {
        min-height: 110px;
        font-size:  0.875rem;
    }
    .tcc-output-label-row {
        flex-direction: column;
        align-items:    flex-start;
    }
}

/* cache-buster: 2026-05-24T05:06:05Z */
