/* ===== LETRAS TOOL ===== */
.letras-main {
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
  box-sizing: border-box;
  width: 100%;
}

/* ── Hero ── */
.letras-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.letras-icone {
  font-size: 3rem;
  margin-bottom: 0.4rem;
}

.letras-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
}

.letras-sub {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  max-width: 420px;
  margin: 0 auto 1.25rem;
  line-height: 1.5;
}

/* ── Textarea ── */
.letras-input-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.letras-input-wrap textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 0.9rem 1.4rem 2rem;
  color: #fff;
  font-size: 1.05rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  overflow: hidden;
  min-height: 70px;
  line-height: 1.5;
}

.letras-input-wrap textarea:focus {
  border-color: rgba(192,38,255,0.7);
}

.letras-input-wrap textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.contador {
  position: absolute;
  right: 1rem;
  bottom: 0.6rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  pointer-events: none;
}

/* ── Seletor de gênero ── */
.genero-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.genero-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

.genero-btn {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.38rem 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.genero-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.genero-btn.ativo {
  background: linear-gradient(135deg, #7c3aed, #c026ff);
  border-color: transparent;
  color: #fff;
}

/* ── Ideias de bio ── */
.ideias-bio {
  max-width: 480px;
  margin: 1.1rem auto 0;
  text-align: left;
}

.ideias-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.55rem;
  padding-left: 0.1rem;
}

.ideias-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.ideia-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s, color 0.15s;
  font-family: inherit;
  white-space: nowrap;
  user-select: none;
}

.ideia-chip:hover {
  background: rgba(192,38,255,0.18);
  border-color: rgba(192,38,255,0.5);
  color: #fff;
  transform: translateY(-1px);
}

.ideia-chip:active { transform: translateY(0); }

.ideia-sep {
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.45);
  font-size: 0.9rem;
  padding: 0.3rem 0.6rem;
  letter-spacing: 0;
}

.ideia-sep:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

.ideia-nl {
  background: rgba(255,255,255,0.03);
  border-style: dashed;
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
}

.ideia-nl:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

.ideias-limpar {
  background: none;
  border: none;
  color: rgba(255,255,255,0.25);
  font-size: 0.7rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}
.ideias-limpar:hover { color: rgba(255,255,255,0.6); }

/* ── Grupos por categoria ── */
.lista-estilos {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cat-grupo {}

.cat-titulo {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.6rem;
  padding-left: 0.25rem;
}

.cat-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* ── Card de estilo ── */
.estilo-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}

.estilo-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(192,38,255,0.35);
}

.estilo-card:active {
  background: rgba(192,38,255,0.12);
}

.estilo-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.estilo-emoji {
  font-size: 1rem;
  flex-shrink: 0;
}

.estilo-nome {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  flex: 1;
}

.btn-copiar {
  background: linear-gradient(135deg, #7c3aed, #c026ff);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.btn-copiar.copiado {
  background: #10b981;
}

.estilo-preview {
  font-size: 1.15rem;
  color: #fff;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
  pointer-events: none;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #10b981;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 999;
  white-space: nowrap;
}

.toast.visivel {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Responsivo ── */
@media (max-width: 480px) {
  .letras-hero h1 {
    font-size: 1.55rem;
  }

  .letras-input-wrap textarea {
    font-size: 0.95rem;
    padding: 0.8rem 1.2rem 2rem;
  }

  .estilo-preview {
    font-size: 1rem;
  }
}
