/**
 * Text Case Converter – same design language as random string generator.
 * Solid cards, muted colours, no glass.
 */

.tool-text-case-converter .hidden {
  display: none !important;
}

/* Main cards */
.tool-text-case-converter .tcc-card {
  background: var(--bg-800);
  border: 1px solid var(--line2);
  color: var(--fg);
}

.tool-text-case-converter .tcc-icon-wrap,
.tool-text-case-converter .tcc-icon-sm {
  background: var(--bg-900);
  border: 1px solid var(--line2);
  color: var(--fg);
}

/* Case type selection cards */
.tool-text-case-converter .tcc-case-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.75rem;
  background: var(--bg-900);
  border: 2px solid var(--line2);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.tool-text-case-converter .tcc-case-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.tool-text-case-converter .tcc-case-card--checked {
  border-color: var(--cta);
  background: rgba(var(--cta-rgb), 0.06);
}

.tool-text-case-converter .tcc-case-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
}

.tool-text-case-converter .tcc-case-card--checked .tcc-case-label {
  color: var(--cta);
}

/* Input textarea */
.tool-text-case-converter .tcc-textarea {
  background: var(--bg-900);
}

.tool-text-case-converter .tcc-textarea:focus {
  border-color: var(--cta);
}

/* Placeholder (initial state) */
.tool-text-case-converter .tcc-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 12rem;
  aspect-ratio: 1;
  margin: 0 auto 1.5rem;
  background: var(--bg-900);
  border: 2px solid var(--line2);
  border-radius: 20px;
  color: var(--muted);
}

.tool-text-case-converter .tcc-placeholder-icon {
  width: 4rem;
  height: 4rem;
  opacity: 0.5;
}

/* Result output box */
.tool-text-case-converter .tcc-output-wrap {
  background: var(--bg-900);
  border: 1px solid var(--line2);
  position: relative;
}

.tool-text-case-converter .tcc-output-wrap textarea {
  min-height: 200px;
}

.tool-text-case-converter .tcc-copy-success {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cta);
  background: var(--bg-800);
  border: 1px solid var(--line2);
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}

.tool-text-case-converter .tcc-copy-success--visible {
  opacity: 1;
}

.tool-text-case-converter .tcc-card .btn-ghost {
  background: transparent;
}

/* Features section */
.tool-text-case-converter .tcc-features {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.tool-text-case-converter .tcc-feature-card {
  background: var(--bg-800);
  border: 1px solid var(--line2);
  transition: border-color 0.2s;
}

.tool-text-case-converter .tcc-feature-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.tool-text-case-converter .tcc-feature-icon {
  background: var(--bg-900);
  border: 1px solid var(--line2);
  color: var(--fg);
}

/* Mobile */
@media (max-width: 768px) {
  .tool-text-case-converter .tcc-card {
    padding: 1.25rem 1.5rem;
  }

  .tool-text-case-converter .sticky {
    position: relative;
    top: 0;
  }

  .tool-text-case-converter .tcc-card .btn-ghost {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .tool-text-case-converter .tcc-card {
    padding: 1rem 1.25rem;
  }
}
