/* ── Title Case Converter – Styles ──────────────────────────────────────── */

.tcc-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 960px;
  margin: 2rem auto;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 18px;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  box-shadow: 0 6px 32px rgba(13, 148, 136, 0.12);
  color: #1e293b;
  box-sizing: border-box;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.tcc__header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.tcc__logo {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0d9488, #0891b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

.tcc__title {
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  font-weight: 800;
  margin: 0 0 0.2rem;
  color: #134e4a;
}

.tcc__desc {
  font-size: 0.9rem;
  color: #0f766e;
  margin: 0;
  line-height: 1.5;
}

/* ── Style picker ────────────────────────────────────────────────────────── */

.tcc__style-label {
  font-size: 0.83rem;
  font-weight: 700;
  color: #115e59;
  margin-bottom: 0.55rem;
}

.tcc__styles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tcc__style-btn {
  padding: 0.45rem 0.9rem;
  background: #ccfbf1;
  border: 1.5px solid #99f6e4;
  border-radius: 20px;
  font-size: 0.83rem;
  font-weight: 700;
  color: #0f766e;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.tcc__style-btn:hover { background: #99f6e4; border-color: #2dd4bf; }

.tcc__style-btn--active {
  background: #0d9488;
  border-color: #0f766e;
  color: #fff;
}

/* ── Style description ───────────────────────────────────────────────────── */

.tcc__style-desc {
  display: none;
  font-size: 0.83rem;
  color: #0f766e;
  background: #ccfbf1;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.tcc__style-desc.visible { display: block; }

/* ── Input / output row ──────────────────────────────────────────────────── */

.tcc__io-row {
  display: grid;
  grid-template-columns: 1fr 2rem 1fr;
  gap: 0;
  align-items: start;
  margin-bottom: 0.25rem;
}

@media (max-width: 620px) {
  .tcc__io-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .tcc__io-arrow { display: none; }
}

.tcc__io-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tcc__io-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.tcc__io-label {
  font-size: 0.83rem;
  font-weight: 700;
  color: #115e59;
}

.tcc__io-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #2dd4bf;
  font-weight: 300;
  padding-top: 1.75rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.tcc__btn-clear {
  padding: 0.3rem 0.75rem;
  background: transparent;
  border: 1.5px solid #99f6e4;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f766e;
  cursor: pointer;
  transition: background 0.15s;
}

.tcc__btn-clear:hover { background: #ccfbf1; }

.tcc__btn-copy {
  padding: 0.3rem 0.85rem;
  background: #0d9488;
  border: 1.5px solid #0f766e;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: filter 0.15s;
}

.tcc__btn-copy:hover { filter: brightness(1.1); }
.tcc__btn-copy--success { background: #059669; border-color: #047857; }

/* ── Textareas ───────────────────────────────────────────────────────────── */

.tcc__textarea {
  width: 100%;
  min-height: 160px;
  padding: 0.9rem 1rem;
  border: 1.5px solid #99f6e4;
  border-radius: 10px;
  font-size: 0.97rem;
  font-family: inherit;
  color: #0f172a;
  background: #fff;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  line-height: 1.65;
}

.tcc__textarea:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.tcc__textarea--output {
  background: #f0fdfa;
  color: #134e4a;
  font-weight: 600;
  cursor: default;
  display: block;
  word-break: break-word;
  white-space: pre-wrap;
  resize: none;
  overflow-y: auto;
}

.tcc__placeholder {
  color: #94a3b8;
  font-weight: 400;
  font-style: italic;
}

/* ── Stats row ───────────────────────────────────────────────────────────── */

.tcc__stats {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  text-align: right;
}

/* ── Section title ───────────────────────────────────────────────────────── */

.tcc__section-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #134e4a;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 1.75rem 0 0.7rem;
}

/* ── Style guide reference ───────────────────────────────────────────────── */

.tcc__guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 560px) {
  .tcc__guide { grid-template-columns: 1fr; }
}

.tcc__guide-card {
  background: #ccfbf1;
  border: 1.5px solid #99f6e4;
  border-radius: 12px;
  padding: 0.95rem 1rem;
}

.tcc__guide-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #134e4a;
  margin-bottom: 0.35rem;
}

.tcc__guide-example {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0d9488;
  margin-bottom: 0.4rem;
  font-style: italic;
}

.tcc__guide-rule {
  font-size: 0.82rem;
  color: #0f766e;
  line-height: 1.55;
  margin-bottom: 0.4rem;
}

.tcc__guide-minor {
  font-size: 0.77rem;
  color: #64748b;
  line-height: 1.5;
  border-top: 1px solid #99f6e4;
  padding-top: 0.4rem;
  margin-top: 0.25rem;
}
