/* Fancy Text Generator — Tool Styles */

.ft-input-wrap {
  margin-bottom: 24px;
}

#ft-input {
  width: 100%;
  min-height: 80px;
  padding: 14px 16px;
  font-size: 1.1rem;
  font-family: var(--font);
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  resize: vertical;
  transition: border-color .2s;
  line-height: 1.5;
}

#ft-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

/* Font style card grid */
.ft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.ft-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .15s, box-shadow .15s;
}

.ft-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(37, 99, 235, .1);
}

.ft-card-name {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-dim);
}

.ft-card-text {
  font-size: 1.05rem;
  line-height: 1.5;
  word-break: break-word;
  overflow-y: auto;
  max-height: 100px;
  min-height: 28px;
  color: var(--text);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.ft-card-text::-webkit-scrollbar { width: 4px; }
.ft-card-text::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.ft-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.ft-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  font-size: .82rem;
  font-weight: 600;
  font-family: var(--font);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}

.ft-copy-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(37, 99, 235, .06);
}

.ft-copy-btn.copied {
  border-color: #22c55e;
  color: #22c55e;
  background: rgba(34, 197, 94, .08);
}

.ft-copy-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Category headers */
.ft-category-header {
  grid-column: 1 / -1;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
  padding: 20px 0 6px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 0;
}

.ft-category-header:first-child {
  padding-top: 0;
}

/* FAQ */
.ft-faq {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.ft-faq h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.ft-faq details {
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.ft-faq summary {
  padding: 12px 16px;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  background: var(--bg-card);
  transition: background .15s;
}

.ft-faq summary:hover {
  background: rgba(128, 128, 128, .06);
}

.ft-faq details[open] summary {
  border-bottom: 1px solid var(--border);
}

.ft-faq details p {
  padding: 12px 16px;
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}

/* Mobile */
@media (max-width: 640px) {
  .ft-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #ft-input {
    font-size: 1rem;
  }

  .ft-card {
    padding: 14px;
  }
}
