/**
 * Account settings (settings.html) styles.
 *
 * Redesigned as part of the account-pages UI revamp: the old "blue bar +
 * floating circular avatar" header (the avatar was always the same
 * placeholder image) is now the shared .account-hero / .account-subnav
 * shell in css/account-shared.css. This file covers what's specific to
 * settings: the details card, the labeled rows, and the action buttons.
 */

/* ===== Global ===== */
body {
  font-family: "Inter", sans-serif;
  background: #fff;
  color: var(--text-body);
  margin: 0;
  padding: 0;
}

/* Sticky footer (height/display/flex-direction on html,body,
   .footer { margin-top: auto }) now lives site-wide in style.css --
   this used to override it with height: 0%; display: block, which
   defeated it specifically on this page. */

.gradient-section {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #ffffff 20%,
    #ffffff 60%,
    #c8dfff 100%
  );
}

a {
  text-decoration: none;
  transition: all 0.2s ease;
}

/* ===== Settings card ===== */
.settings-body {
  max-width: 680px;
}

.settings-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
}

.settings-card__section + .settings-card__section {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-color);
}

.settings-card__heading {
  font-size: 1.05rem;
  font-weight: var(--font-weight-bold);
  color: var(--dark);
  margin: 0 0 var(--space-4);
}

.settings-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.settings-row__label {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 0 0 auto;
}

.settings-row__value {
  font-weight: var(--font-weight-semibold);
  color: var(--dark);
  text-align: right;
  word-break: break-word;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-settings {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background-color: var(--surface-alt);
  color: var(--dark);
  border: 1px solid var(--border-color);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
}

.btn-settings:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--accent-soft, rgba(30, 96, 170, 0.06));
}

.btn-settings--accent {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-settings--accent:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

button.btn-settings {
  outline: none;
}

.settings-note {
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.settings-note a {
  color: var(--primary);
  font-weight: var(--font-weight-semibold);
}

.settings-back {
  margin-top: var(--space-5);
  margin-bottom: 0;
  font-size: 0.9rem;
}

.settings-back a {
  color: var(--text-muted);
}

.settings-back a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .settings-card {
    padding: var(--space-4);
  }

  .settings-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .settings-row__value {
    text-align: left;
  }

  .settings-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===== Mobile home button (nav) =====
   Appears on every page's mobile nav -- same block as the homepage. */
.home-btn {
  width: 56px;
  height: 56px;
  background: #dedfe0;
  border-radius: var(--radius-full);
  color: #000;
  text-decoration: none;
  margin-left: -5px;
  transition: all 0.2s ease;
}

.home-btn:hover {
  background-color: #e9ecef;
  color: #000;
  transform: scale(1.05);
}

.home-btn:active {
  transform: scale(0.95);
}

.home-btn i {
  font-size: 1.5rem;
  line-height: 1;
}

.home-text {
  font-size: 10px;
  line-height: 1;
  margin-top: 2px;
  color: #1f2937;
}

/* ===== Full-width wrapper ===== */
.full-width-wrapper,
.full-width-footer {
  width: 100%;
  margin: 0;
  padding: 0;
}
