/* ==========================================================================
   Name Generator Core — Generator Interface CSS
   Styles all elements inside .ng-generator-interface
   ========================================================================== */

:root {
  --ngc-primary:      #2DBBA4;
  --ngc-primary-dark: #22A090;
  --ngc-purple:       #7C3AED;
  --ngc-dark:         #1A1A2E;
  --ngc-muted:        #6B7280;
  --ngc-border:       #E5E7EB;
  --ngc-bg:           #F5F5F8;
  --ngc-surface:      #FFFFFF;
  --ngc-radius:       12px;
  --ngc-radius-sm:    8px;
  --ngc-radius-pill:  999px;
  --ngc-shadow-md:    0 4px 16px rgba(0,0,0,0.08);
  --ngc-shadow-lg:    0 8px 32px rgba(0,0,0,0.10);
  --ngc-transition:   200ms ease;
}

/* --------------------------------------------------------------------------
   Page Wrapper
   -------------------------------------------------------------------------- */
.entry-content,
.wp-block-group main,
main.wp-block-group {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* --------------------------------------------------------------------------
   Generator Interface Container
   -------------------------------------------------------------------------- */
.ng-generator-interface {
  max-width: 900px;
  margin: 0 auto 48px;
  padding: 0 24px;
  font-family: "Inter", ui-sans-serif, sans-serif;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.ng-generator-interface__header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding-top: 32px;
}

.ng-generator-interface__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(45,187,164,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.ng-generator-interface__title {
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--ngc-dark);
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ng-generator-interface__subtitle {
  font-size: 15px;
  color: var(--ngc-muted);
  margin: 0;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Disclaimer
   -------------------------------------------------------------------------- */
.ng-disclaimer {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: var(--ngc-radius-sm);
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #92400E;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Form Body (2-column: controls left, results right)
   -------------------------------------------------------------------------- */
.ng-generator-interface__body {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 768px) {
  .ng-generator-interface__body {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* --------------------------------------------------------------------------
   Controls Panel
   -------------------------------------------------------------------------- */
.ng-controls {
  background: var(--ngc-surface);
  border: 1px solid var(--ngc-border);
  border-radius: var(--ngc-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--ngc-shadow-md);
}

/* Form Groups */
.ng-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ng-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ngc-dark);
  display: flex;
  align-items: center;
  gap: 4px;
}
.ng-label--optional::after {
  content: 'optional';
  font-size: 11px;
  font-weight: 400;
  color: var(--ngc-muted);
  margin-left: 4px;
}

/* Select */
.ng-select-wrap {
  position: relative;
}
.ng-select-wrap::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--ngc-muted);
  border-bottom: 2px solid var(--ngc-muted);
  pointer-events: none;
}
.ng-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--ngc-bg);
  border: 1.5px solid var(--ngc-border);
  border-radius: var(--ngc-radius-sm);
  padding: 10px 36px 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ngc-dark);
  cursor: pointer;
  transition: border-color var(--ngc-transition), box-shadow var(--ngc-transition);
  outline: none;
}
.ng-select:focus {
  border-color: var(--ngc-primary);
  box-shadow: 0 0 0 3px rgba(45,187,164,0.15);
}

/* Text Input */
.ng-input {
  width: 100%;
  background: var(--ngc-bg);
  border: 1.5px solid var(--ngc-border);
  border-radius: var(--ngc-radius-sm);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ngc-dark);
  outline: none;
  transition: border-color var(--ngc-transition), box-shadow var(--ngc-transition);
  box-sizing: border-box;
}
.ng-input:focus {
  border-color: var(--ngc-primary);
  box-shadow: 0 0 0 3px rgba(45,187,164,0.15);
}
.ng-input::placeholder { color: #9CA3AF; }

textarea.ng-input {
  resize: vertical;
  min-height: 80px;
}

/* Slider */
.ng-slider-wrap { display: flex; flex-direction: column; gap: 4px; }
.ng-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ng-slider {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--ngc-border);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  transition: background var(--ngc-transition);
}
.ng-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--ngc-primary);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.ng-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--ngc-primary);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.ng-slider__value {
  font-size: 14px;
  font-weight: 700;
  color: var(--ngc-dark);
  min-width: 24px;
  text-align: right;
  flex-shrink: 0;
}
.ng-slider__labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ngc-muted);
}

/* Toggle */
.ng-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ng-toggle-label { font-size: 14px; color: var(--ngc-dark); }
.ng-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
  display: block;
}
.ng-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.ng-toggle__track {
  position: absolute;
  inset: 0;
  background: var(--ngc-border);
  border-radius: 24px;
  transition: background var(--ngc-transition);
}
.ng-toggle input:checked ~ .ng-toggle__track { background: var(--ngc-primary); }
.ng-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform var(--ngc-transition);
}
.ng-toggle input:checked ~ .ng-toggle__thumb { transform: translateX(20px); }

/* --------------------------------------------------------------------------
   Count Selector
   -------------------------------------------------------------------------- */
.ng-count-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ng-count-selector__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ngc-dark);
  margin-right: 4px;
  white-space: nowrap;
}
.ng-count-btn {
  padding: 5px 14px;
  background: var(--ngc-bg);
  border: 1.5px solid var(--ngc-border);
  border-radius: var(--ngc-radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--ngc-muted);
  cursor: pointer;
  transition: all var(--ngc-transition);
  font-family: inherit;
  line-height: 1.4;
}
.ng-count-btn:hover { border-color: var(--ngc-primary); color: var(--ngc-primary); }
.ng-count-btn.active {
  background: var(--ngc-primary);
  border-color: var(--ngc-primary);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Controls Footer (Generate button)
   -------------------------------------------------------------------------- */
.ng-controls__footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.ng-btn-generate {
  width: 100%;
  background: var(--ngc-primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--ngc-radius-pill);
  padding: 15px 24px;
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background var(--ngc-transition), transform var(--ngc-transition), box-shadow var(--ngc-transition);
  position: relative;
  overflow: hidden;
}
.ng-btn-generate:hover {
  background: var(--ngc-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(45,187,164,0.35);
}
.ng-btn-generate:active { transform: translateY(0); }
.ng-btn-generate:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* Spinner (shown while loading) */
.ng-btn-generate__spinner {
  display: none;
  width: 18px;
  height: 18px;
  animation: ngc-spin 0.8s linear infinite;
  flex-shrink: 0;
}
.ng-btn-generate__text { display: flex; align-items: center; gap: 8px; }
.ng-btn-generate.loading .ng-btn-generate__spinner { display: block; }
.ng-btn-generate.loading .ng-btn-generate__text { opacity: 0.7; }

@keyframes ngc-spin {
  to { transform: rotate(360deg); }
}

/* Generate With AI Button */
.ng-btn-generate-ai {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--ngc-radius-pill);
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--ngc-transition), transform var(--ngc-transition), box-shadow var(--ngc-transition);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}
.ng-btn-generate-ai::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.ng-btn-generate-ai:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.35);
  text-decoration: none;
  color: #FFFFFF;
}
.ng-btn-generate-ai:active {
  transform: translateY(0);
}
.ng-btn-generate-ai svg {
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.4));
}

/* Toolbar Buttons */
.ng-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--ngc-bg);
  border: 1.5px solid var(--ngc-border);
  border-radius: var(--ngc-radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ngc-muted);
  cursor: pointer;
  transition: all var(--ngc-transition);
  font-family: inherit;
  white-space: nowrap;
}
.ng-toolbar-btn:hover { border-color: var(--ngc-primary); color: var(--ngc-primary); background: rgba(45,187,164,0.06); }
.ng-btn-favorites { width: 100%; justify-content: center; }

/* --------------------------------------------------------------------------
   Results Panel
   -------------------------------------------------------------------------- */
.ng-results-panel {
  background: var(--ngc-surface);
  border: 1px solid var(--ngc-border);
  border-radius: var(--ngc-radius);
  overflow: hidden;
  box-shadow: var(--ngc-shadow-md);
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.ng-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ngc-border);
  background: var(--ngc-bg);
  gap: 8px;
  flex-wrap: wrap;
}
.ng-results-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--ngc-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.ng-results-count span { color: var(--ngc-dark); }

.ng-results-list {
  flex: 1;
  overflow-y: auto;
}

/* Empty State */
.ng-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  flex: 1;
  min-height: 240px;
}
.ng-empty-state__icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.6;
  filter: grayscale(0.2);
}
.ng-empty-state__title {
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ngc-dark);
  margin: 0 0 8px;
}
.ng-empty-state__desc {
  font-size: 14px;
  color: var(--ngc-muted);
  margin: 0;
  line-height: 1.6;
  max-width: 280px;
}

/* Result Items */
.ng-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ngc-border);
  transition: background var(--ngc-transition);
  gap: 12px;
}
.ng-result-item:last-child { border-bottom: none; }
.ng-result-item:hover { background: rgba(45,187,164,0.04); }

.ng-result-item__name {
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ngc-dark);
  flex: 1;
  line-height: 1.3;
}
.ng-result-item__tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.ng-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--ngc-radius-pill);
  background: rgba(45,187,164,0.1);
  color: var(--ngc-primary-dark);
  white-space: nowrap;
}

/* Result Actions */
.ng-result-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity var(--ngc-transition);
  flex-shrink: 0;
}
.ng-result-item:hover .ng-result-actions { opacity: 1; }

.ng-result-btn {
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid var(--ngc-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ngc-muted);
  transition: all var(--ngc-transition);
  flex-shrink: 0;
}
.ng-result-btn:hover { background: var(--ngc-bg); color: var(--ngc-dark); border-color: var(--ngc-dark); }
.ng-result-btn.ng-result-btn--fav.active { color: #EF4444; border-color: #EF4444; background: #FEF2F2; }
.ng-result-btn.ng-result-btn--copy.copied { color: var(--ngc-primary); border-color: var(--ngc-primary); background: rgba(45,187,164,0.08); }

/* Copy success flash */
@keyframes ngc-flash {
  0%   { background: rgba(45,187,164,0.15); }
  100% { background: transparent; }
}
.ng-result-item.copy-flash { animation: ngc-flash 0.4s ease; }

/* Loading shimmer */
.ng-shimmer-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--ngc-border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.ng-shimmer-line {
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: ngc-shimmer 1.5s infinite;
}
@keyframes ngc-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --------------------------------------------------------------------------
   Favorites Drawer — Premium Redesign
   -------------------------------------------------------------------------- */
.ng-favorites-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  bottom: 0;
  width: min(400px, 92vw);
  background: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%);
  border-left: 1px solid rgba(124,58,237,0.12);
  box-shadow: -8px 0 48px rgba(0,0,0,0.14), -2px 0 12px rgba(124,58,237,0.08);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
}
.ng-favorites-drawer.open { right: 0; }

/* Decorative top accent */
.ng-favorites-drawer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7C3AED, #2DBBA4);
  z-index: 1;
}

.ng-favorites-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
  margin-top: 3px; /* clear the accent bar */
}
.ng-favorites-drawer__title {
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #1A1A2E;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.ng-favorites-drawer__title .ng-drawer-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #7C3AED22, #2DBBA422);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.ng-favorites-drawer__close {
  background: none;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 16px;
  cursor: pointer;
  color: #6B7280;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
  line-height: 1;
}
.ng-favorites-drawer__close:hover {
  background: #F3F4F6;
  border-color: rgba(0,0,0,0.15);
  color: #1A1A2E;
  transform: scale(1.05);
}

.ng-favorites-drawer__list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px;
  scroll-behavior: smooth;
}
.ng-favorites-drawer__list::-webkit-scrollbar { width: 4px; }
.ng-favorites-drawer__list::-webkit-scrollbar-track { background: transparent; }
.ng-favorites-drawer__list::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.2); border-radius: 4px; }

/* Premium card-style favorite item */
.ng-favorites-drawer__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 6px;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  border-left: 3px solid #7C3AED;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: all 200ms ease;
  position: relative;
  overflow: hidden;
}
.ng-favorites-drawer__item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.03) 0%, transparent 60%);
  pointer-events: none;
}
.ng-favorites-drawer__item:hover {
  border-color: rgba(124,58,237,0.25);
  border-left-color: #7C3AED;
  box-shadow: 0 4px 16px rgba(124,58,237,0.10);
  transform: translateY(-1px);
}
.ng-favorites-drawer__item-name {
  font-size: 14px;
  font-weight: 600;
  color: #1A1A2E;
  flex: 1;
  line-height: 1.3;
  word-break: break-word;
}
.ng-favorites-drawer__remove {
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  font-size: 14px;
  cursor: pointer;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
  flex-shrink: 0;
  opacity: 0;
}
.ng-favorites-drawer__item:hover .ng-favorites-drawer__remove {
  opacity: 1;
}
.ng-favorites-drawer__remove:hover {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #EF4444;
}

/* Empty state */
.ng-favorites-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  gap: 12px;
}
.ng-favorites-empty::before {
  content: '♡';
  font-size: 40px;
  opacity: 0.25;
  display: block;
  animation: fav-pulse 2.4s ease-in-out infinite;
}
@keyframes fav-pulse {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.1); opacity: 0.35; }
}
.ng-favorites-empty p { font-size: 13px; color: #9CA3AF; margin: 0; line-height: 1.5; }

.ng-favorites-drawer__footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  background: rgba(250,250,250,0.8);
  backdrop-filter: blur(8px);
}
.ng-favorites-drawer__footer .ng-btn-copy-saved {
  flex: 1;
  background: linear-gradient(135deg, #7C3AED, #2DBBA4);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 200ms ease, transform 200ms ease;
  font-family: inherit;
}
.ng-favorites-drawer__footer .ng-btn-copy-saved:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Favorites count badge */
.ng-favs-count {
  background: linear-gradient(135deg, #7C3AED, #9F67FF);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
  line-height: 1.4;
}
.ng-favs-count:empty { display: none; }


/* --------------------------------------------------------------------------
   Generation History
   -------------------------------------------------------------------------- */
.ng-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--ngc-border);
  font-size: 14px;
  color: var(--ngc-muted);
  cursor: pointer;
  transition: background var(--ngc-transition);
}
.ng-history-item:hover { background: var(--ngc-bg); color: var(--ngc-dark); }

/* --------------------------------------------------------------------------
   Related Generators Section
   -------------------------------------------------------------------------- */
.ng-related-section {
  max-width: 900px;
  margin: 0 auto 64px;
  padding: 0 24px;
}
.ng-related-section h3 {
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--ngc-dark);
  margin: 0 0 24px;
}

/* --------------------------------------------------------------------------
   Live Region (a11y)
   -------------------------------------------------------------------------- */
.ng-live-region {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Generator page layout (single template context)
   -------------------------------------------------------------------------- */
.wp-block-group main,
main.wp-block-group {
  background: var(--ngc-bg);
  min-height: 60vh;
}

/* Post title hidden on generator pages (title is in interface header) */
.single-name_generator .wp-block-post-title { display: none; }
.single-name_generator .wp-block-post-excerpt { display: none; }

/* Breadcrumbs */
.ng-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  font-size: 13px;
  color: var(--ngc-muted);
  max-width: 900px;
  margin: 24px auto 0;
  padding: 0 24px;
}
.ng-breadcrumbs a { color: var(--ngc-muted); text-decoration: none; }
.ng-breadcrumbs a:hover { color: var(--ngc-purple); }
.ng-breadcrumbs__sep { color: var(--ngc-border); }

/* Post content area (FAQ and body text below tool) */
.ng-generator-interface ~ .wp-block-post-content,
.ng-generator-interface + div {
  max-width: 900px;
  margin: 0 auto 48px;
  padding: 0 24px;
  font-size: 15px;
  color: var(--ngc-muted);
  line-height: 1.75;
}
.ng-generator-interface ~ .wp-block-post-content h2 {
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--ngc-dark);
  margin: 32px 0 14px;
}
.ng-generator-interface ~ .wp-block-post-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ngc-dark);
  margin: 24px 0 10px;
}

/* --------------------------------------------------------------------------
   Responsive tweaks
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .ng-generator-interface { padding: 0 16px; }
  .ng-generator-interface__header { flex-direction: row; align-items: center; gap: 14px; }
  .ng-generator-interface__icon { width: 48px; height: 48px; font-size: 1.4rem; flex-shrink: 0; }
  .ng-result-actions { opacity: 1; }
  .ng-results-toolbar { gap: 6px; }
  .ng-related-section { padding: 0 16px; }
}

/* =================================================================---------
   Name Popularity Checker Overhaul Styles
   ========================================================================== */
.ng-popularity-report {
  padding: 24px;
  background: var(--ngc-surface);
  color: var(--ngc-dark);
}

.ng-popularity-report__title {
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--ngc-dark);
}

.ng-popularity-report__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ngc-muted);
  margin-bottom: 24px;
}
.ng-popularity-report__text p {
  margin-bottom: 12px;
}
.ng-popularity-report__text strong {
  color: var(--ngc-dark);
}

/* Stats Cards Grid */
.ng-popularity-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 640px) {
  .ng-popularity-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.ng-popularity-card {
  background: var(--ngc-bg);
  border: 1px solid var(--ngc-border);
  border-radius: var(--ngc-radius-sm);
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  transition: transform var(--ngc-transition), border-color var(--ngc-transition);
}
.ng-popularity-card:hover {
  transform: translateY(-2px);
  border-color: var(--ngc-primary);
}

.ng-popularity-card__val {
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--ngc-dark);
  margin-bottom: 4px;
}

.ng-popularity-card__lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--ngc-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Charts Grid */
.ng-popularity-charts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}
@media (max-width: 768px) {
  .ng-popularity-charts {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.ng-popularity-chart-box {
  background: var(--ngc-surface);
  border: 1px solid var(--ngc-border);
  border-radius: var(--ngc-radius);
  padding: 20px;
  box-shadow: var(--ngc-shadow-md);
  overflow: hidden;      /* prevent canvas blowout */
  min-width: 0;          /* fix grid child overflow */
}
.ng-popularity-chart-box h4 {
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ngc-dark);
}

.ng-popularity-canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: #FFFFFF;
}

/* Data Table Styles */
.ng-popularity-table-wrap {
  margin-top: 24px;
}
.ng-popularity-table-wrap h4 {
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ngc-dark);
}

.ng-popularity-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}
.ng-popularity-table th, 
.ng-popularity-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ngc-border);
}
.ng-popularity-table th {
  font-weight: 600;
  color: var(--ngc-dark);
  background: var(--ngc-bg);
}
.ng-popularity-table td {
  color: var(--ngc-muted);
}
.ng-popularity-table tr:hover td {
  background: rgba(45,187,164,0.02);
  color: var(--ngc-dark);
}
