/* NameStyle Fonts generator styles - mobile first, no dependencies. */
.nsf-generator { max-width: 860px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.nsf-bar { background: #f7f7fb; border: 1px solid #e4e4ef; border-radius: 12px; padding: 14px; margin-bottom: 16px; }
.nsf-input { width: 100%; box-sizing: border-box; font-size: 20px; padding: 12px 14px; border: 2px solid #d7d7e8; border-radius: 8px; margin-bottom: 10px; }
.nsf-input:focus { outline: none; border-color: #5b5bd6; }
.nsf-bar-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.nsf-bar-row:last-child { margin-bottom: 0; }
.nsf-pick { font-size: 14px; color: #444; display: flex; align-items: center; gap: 6px; }
.nsf-pick select { font-size: 16px; padding: 6px 8px; border: 1px solid #d7d7e8; border-radius: 6px; max-width: 120px; background: #fff; }
.nsf-surprise, .nsf-dark { font-size: 14px; padding: 8px 14px; border: 1px solid #d7d7e8; border-radius: 20px; background: #fff; cursor: pointer; }
.nsf-surprise:hover, .nsf-dark:hover { border-color: #5b5bd6; }
.nsf-search { flex: 1 1 180px; font-size: 15px; padding: 8px 12px; border: 1px solid #d7d7e8; border-radius: 8px; }
.nsf-size { font-size: 13px; color: #555; display: flex; align-items: center; gap: 6px; }
.nsf-count { font-size: 13px; color: #777; margin-left: auto; }
.nsf-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nsf-cat { font-size: 13px; padding: 6px 12px; border: 1px solid #d7d7e8; border-radius: 16px; background: #fff; cursor: pointer; }
.nsf-cat.nsf-active { background: #5b5bd6; border-color: #5b5bd6; color: #fff; }
.nsf-list { display: flex; flex-direction: column; gap: 8px; }
.nsf-style { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e8e8f0; border-radius: 10px; padding: 10px 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.nsf-style:hover { border-color: #5b5bd6; box-shadow: 0 2px 8px rgba(91,91,214,.12); }
.nsf-style-name { flex: 0 0 130px; font-size: 12px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: .04em; }
.nsf-output { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1a1a2e; }
.nsf-actions { flex: 0 0 auto; display: flex; gap: 6px; align-items: center; }
.nsf-copy { font-size: 13px; font-weight: 600; padding: 7px 14px; border: none; border-radius: 6px; background: #5b5bd6; color: #fff; cursor: pointer; }
.nsf-copy:hover { background: #4a4ac4; }
.nsf-share { font-size: 12px; color: #5b5bd6; text-decoration: none; padding: 6px 8px; border: 1px solid #e0e0f0; border-radius: 6px; }
.nsf-share:hover { background: #f0f0ff; }
.nsf-fav { font-size: 18px; background: none; border: none; cursor: pointer; color: #bbb; padding: 4px 6px; }
.nsf-fav.nsf-on { color: #f5a623; }
.nsf-empty { text-align: center; color: #888; padding: 30px 10px; }
.nsf-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: #1a1a2e; color: #fff; font-size: 14px; padding: 10px 22px; border-radius: 24px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 9999; }
.nsf-toast.nsf-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.nsf-flash { animation: nsf-flash 1.2s ease; }
@keyframes nsf-flash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 3px #5b5bd6; } }
/* FAQ */
.nsf-faq { max-width: 860px; margin: 0 auto; }
.nsf-faq-item { border: 1px solid #e8e8f0; border-radius: 8px; margin-bottom: 8px; background: #fff; }
.nsf-faq-item summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 15px; }
.nsf-faq-item p { padding: 0 16px 14px; margin: 0; color: #444; line-height: 1.6; }
/* Dark mode */
.nsf-generator.nsf-dark-mode .nsf-bar { background: #23232e; border-color: #35353f; }
.nsf-generator.nsf-dark-mode .nsf-input { background: #2e2e3a; border-color: #45454f; color: #f0f0f5; }
.nsf-generator.nsf-dark-mode .nsf-style { background: #23232e; border-color: #35353f; }
.nsf-generator.nsf-dark-mode .nsf-output { color: #f0f0f5; }
.nsf-generator.nsf-dark-mode .nsf-style-name { color: #999; }
.nsf-generator.nsf-dark-mode .nsf-pick, .nsf-generator.nsf-dark-mode .nsf-size { color: #bbb; }
.nsf-generator.nsf-dark-mode .nsf-pick select, .nsf-generator.nsf-dark-mode .nsf-search { background: #2e2e3a; border-color: #45454f; color: #f0f0f5; }
.nsf-generator.nsf-dark-mode .nsf-cat, .nsf-generator.nsf-dark-mode .nsf-surprise, .nsf-generator.nsf-dark-mode .nsf-dark { background: #2e2e3a; border-color: #45454f; color: #ddd; }
.nsf-generator.nsf-dark-mode .nsf-share { border-color: #45454f; color: #9d9df0; }
.nsf-generator.nsf-dark-mode .nsf-count { color: #999; }
@media (max-width: 640px) {
  .nsf-style { flex-wrap: wrap; }
  .nsf-style-name { flex: 1 1 100%; }
  .nsf-output { flex: 1 1 100%; white-space: normal; word-break: break-word; }
  .nsf-share { display: none; }
  .nsf-pick select { max-width: 90px; }
}
