/* =========================================================
   pages/settings.css
   ---------------------------------------------------------
   Settings hub, settings sub-pages and shared back link styles.
   ========================================================= */

/* =========================================================
  31) SETTINGS HUB
   ========================================================= */

.nn-settings-hub {
  display: grid;
  gap: 16px;
}

.nn-settings-hub__hero {
  background: #f8fafc;
  border-color: #d8dee6;
}

.nn-settings-hub__hero h1 {
  margin: 0 0 6px;
  font-size: 32px;
}

.nn-settings-hub__hero p {
  margin: 0;
  color: var(--muted);
}

.nn-settings-hub__eyebrow {
  margin: 0 0 6px !important;
  color: #64748b !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nn-settings-panel {
  padding: 0;
  overflow: hidden;
}

.nn-settings-panel__head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: #fbfcfd;
}

.nn-settings-panel__head h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.nn-settings-panel__head p {
  margin: 0;
  color: var(--muted);
}

.nn-settings-list {
  display: grid;
}

.nn-settings-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 18px;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  background: #fff;
}

.nn-settings-row:last-child {
  border-bottom: 0;
}

.nn-settings-row:hover {
  background: #f8fafc;
  text-decoration: none;
}

.nn-settings-row__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2f6;
  color: #475569;
  font-size: 16px;
}

.nn-settings-row__content {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.nn-settings-row__content strong {
  font-size: 16px;
  line-height: 1.2;
}

.nn-settings-row__content small {
  color: var(--muted);
  line-height: 1.35;
}

.nn-settings-row__meta {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.nn-settings-row__arrow {
  color: #94a3b8;
  font-size: 13px;
}

.nn-settings-row--disabled {
  opacity: 0.65;
  cursor: default;
}

.nn-settings-row--disabled:hover {
  background: #fff;
}

.nn-settings-panel--future .nn-settings-row__icon {
  background: #f3f4f6;
  color: #6b7280;
}

@media (max-width: 767px) {
  .nn-settings-hub__hero h1 {
    font-size: 28px;
  }

  .nn-settings-row {
    grid-template-columns: 36px minmax(0, 1fr) 16px;
    padding: 14px;
  }

  .nn-settings-row__icon {
    width: 36px;
    height: 36px;
  }

  .nn-settings-row__meta {
    display: none;
  }
}

/* =========================================================
   SETTINGS SUB-PAGES
   ========================================================= */

.nn-settings-subpage {
  display: grid;
  gap: 16px;
}

.nn-settings-subpage-header {
  padding: 20px;
  border: 1px solid #d8dee6;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.nn-settings-subpage-header h1 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.15;
}

.nn-settings-subpage-header p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.45;
}

.nn-settings-subpage-header__eyebrow {
  margin: 0 0 6px !important;
  color: #64748b !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nn-settings-card {
  border-color: #d8dee6;
}

.nn-settings-card > h2:first-child,
.nn-settings-card > h3:first-child {
  margin-top: 0;
}

.nn-settings-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.nn-settings-section-head h2,
.nn-settings-section-head h3 {
  margin: 0 0 4px;
}

.nn-settings-section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.nn-settings-divider {
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}

@media (max-width: 767px) {
  .nn-settings-subpage-header {
    padding: 16px;
  }

  .nn-settings-subpage-header h1 {
    font-size: 26px;
  }

  .nn-settings-section-head {
    display: block;
  }
}

/* =========================================================
  32) BACK LINKS
   ========================================================= */

.nn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-bottom: 12px;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nn-back-link:hover {
  color: var(--text);
  text-decoration: none;
}

.nn-back-link i {
  font-size: 12px;
  line-height: 1;
}

.nn-back-link--settings {
  margin-top: 2px;
}

