/* ============================================================
   Case Converter — tool-specific styles on base.css.
   No :root / theme; consumes base tokens only.
   ============================================================ */

.cc-tool { background: var(--bg); transition: background 0.5s; }
.cc-tool .tool-instructions-wrapper { text-align: center; margin-bottom: 24px; }
.cc-tool .tool-section-title {
    font-family: var(--font-head); font-weight: 800;
    font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--text);
    margin: 0 0 12px; letter-spacing: -0.3px;
}
.cc-tool .text-primary-red { color: var(--accent-2); }
.cc-tool .tool-section-texte {
    color: var(--text-muted); font-size: 0.95rem; line-height: 1.7;
    max-width: 720px; margin: 0 auto;
}

.cc-panel {
    background: var(--panel-bg); border: 1px solid var(--panel-border);
    border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 18px;
    max-width: 900px; margin: 0 auto;
}

.cc-input {
    width: 100%; box-sizing: border-box; min-height: 220px; resize: vertical;
    background: var(--card-bg); color: var(--text);
    border: 1.5px solid var(--border-color); border-radius: var(--radius-sm);
    padding: 16px; font-family: var(--font-head); font-size: 1rem; line-height: 1.7;
}
.cc-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(231,76,60,0.15); }

.cc-bar {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    margin: 12px 2px; color: var(--text-muted); font-size: 0.85rem;
}
.cc-stat strong { color: var(--text); font-family: var(--font-mono); }
.cc-bar-actions { margin-left: auto; display: flex; gap: 10px; }
.cc-bar-actions .spin-btn { margin: 0; }

.cc-modes {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px;
}
.cc-mode {
    padding: 12px 14px; background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); color: var(--text); font-family: var(--font-head);
    font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: var(--transition);
}
.cc-mode:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.cc-mode.cc-active {
    background: var(--accent); border-color: var(--accent); color: #fff;
    box-shadow: 0 4px 14px rgba(231,76,60,0.3);
}

@media (max-width: 480px) {
    .cc-modes { grid-template-columns: 1fr 1fr; }
    .cc-bar-actions { margin-left: 0; width: 100%; }
}