/* CaseConvert — tool-specific styles.
   Shared styles (nav, panels, buttons) live in ../../css/style.css */

.cc {
  max-width: 860px;
  margin: 6px auto 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Editor ---------- */
.cc-actions { margin-left: auto; display: flex; gap: 6px; }

#cc-text {
  width: 100%;
  min-height: 240px;
  resize: vertical;
  display: block;
  background: transparent;
  border: none;
  padding: 16px;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.7;
  outline: none;
}
#cc-text::placeholder { color: #5c5c66; }

.cc-applied { margin-left: auto; color: var(--pink); font-weight: 600; }

.icon-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.icon-btn:disabled:hover { background: #1c1c20; color: #c4c4cc; border-color: #26262b; }

/* ---------- Case buttons ---------- */
.cc-cases {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.cc-case {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  text-align: left;
  padding: 13px 14px;
  background: var(--card-2);
  border: 1px solid #26262b;
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .12s;
}
.cc-case:hover { background: #1a1a1f; border-color: var(--pink); }
.cc-case:active { transform: scale(.98); }
.cc-case:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(232, 70, 124, .3); }

.cc-case strong {
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.cc-case em {
  font-style: normal;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .72rem;
  color: #6b6b75;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

@media (max-width: 880px) {
  .cc-cases { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .cc-cases { grid-template-columns: 1fr 1fr; }
  #cc-text { min-height: 180px; }
  .cc-actions { gap: 4px; }
}
