/* Poosting - CONFIGURAÇÕES */

.settings-shell {
  width: min(820px, calc(100% - 20px));
  margin: 14px auto 28px;
}

.settings-card {
  min-height: 520px;
  overflow: hidden;
  border-radius: 0 38px 0 0;
}

.settings-header {
  padding: 16px 18px 13px;
  border-bottom: 1px solid #c8d7e3;
}

.settings-header h1 {
  margin: 0;
  color: #111;
  font-size: 30px;
  font-weight: 400;
}

.settings-header p {
  margin: 5px 0 0;
  color: #707d86;
}

.settings-section {
  padding: 16px 18px;
  border-bottom: 1px solid #cbd8e3;
}

.settings-section h2 {
  margin: 0 0 10px;
  color: #40525f;
  font-size: 16px;
}

.settings-row {
  padding: 10px;
  background: #edf6fc;
  border: 1px solid #ccdce8;
}

.settings-row p {
  margin: 4px 0 0;
  color: #74818a;
}

.danger-zone {
  margin: 15px 18px;
  padding: 0;
  border: 1px solid #d8b1b1;
  background: #fffafa;
}

.danger-title {
  padding: 10px 12px;
  background: #f8e7e7;
  border-bottom: 1px solid #d8b1b1;
}

.danger-title h2 {
  margin: 0;
  color: #923f3f;
}

.danger-content {
  padding: 13px;
  color: #5e656a;
  line-height: 1.48;
}

.danger-content ul {
  padding-left: 20px;
}

.delete-account-button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #a64343;
  border-radius: 3px;
  background: linear-gradient(#c95a5a, #a83f3f);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.delete-account-button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.settings-secondary-button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #a8bac9;
  border-radius: 3px;
  background: linear-gradient(#fff, #e6eef4);
  color: #496d86;
  font: inherit;
  cursor: pointer;
}

.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  padding: 18px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  background: rgba(15, 22, 28, .62);
}

.settings-overlay[hidden] {
  display: none !important;
}

.delete-account-modal {
  width: min(470px, 100%);
  margin-top: 70px;
  padding: 18px;
  border: 1px solid #b39797;
  border-radius: 5px;
  background: #fff;
}

.delete-account-modal h2 {
  margin: 0 0 8px;
  color: #8e3e3e;
  font-size: 20px;
}

.delete-account-modal label {
  display: block;
  margin: 16px 0 5px;
  color: #555f66;
}

.delete-account-modal input {
  width: 100%;
  padding: 9px;
  border: 1px solid #b9c6d1;
  font: inherit;
}

.delete-modal-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-message {
  min-height: 20px;
  margin-top: 8px;
  color: #9b3c3c;
  font-size: 12px;
}

@media (max-width: 600px) {
  .settings-shell {
    width: calc(100% - 12px);
  }

  .settings-card {
    border-radius: 7px;
  }

  .danger-zone {
    margin: 10px;
  }

  .delete-modal-actions button {
    width: 100%;
  }
}


/* =========================================================
   MOBILE - BLOQUEIO DE ZOOM
   ========================================================= */

html,
body {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

input,
textarea,
select,
button {
  font-size: 16px;
}

@media (min-width: 701px) {
  input,
  textarea,
  select,
  button {
    font-size: inherit;
  }
}


/* =========================================================
   CONTA - NOME, E-MAIL E SENHA
   ========================================================= */

.settings-account-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.settings-account-form {
  padding: 14px;
  border: 1px solid #ccdce8;
  background: #f8fbfd;
}

.settings-account-form h3 {
  margin: 0 0 5px;
  color: #40525f;
  font-size: 15px;
}

.settings-help {
  margin: 0 0 12px;
  color: #74818a;
  font-size: 12px;
  line-height: 1.45;
}

.settings-account-form label {
  display: block;
  margin: 10px 0 5px;
  color: #4c5b66;
  font-size: 13px;
  font-weight: 700;
}

.settings-account-form input {
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #b9c9d6;
  border-radius: 3px;
  background: #fff;
  color: #27343c;
  font: inherit;
}

.settings-account-form input:focus {
  outline: none;
  border-color: #6f94b0;
  box-shadow: 0 0 0 2px rgba(77, 124, 158, .10);
}

.settings-primary-button {
  min-height: 35px;
  margin-top: 10px;
  padding: 7px 13px;
  border: 1px solid #b52d75;
  border-radius: 3px;
  background: linear-gradient(#e5489a, #d8378a);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.settings-primary-button:hover:not(:disabled) {
  filter: brightness(.98);
}

.settings-primary-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.settings-form-message {
  min-height: 18px;
  margin-top: 7px;
  color: #6d7880;
  font-size: 12px;
}

.settings-form-message.success {
  color: #2f7b4e;
}

.settings-form-message.error {
  color: #a33e3e;
}

@media (min-width: 760px) {
  .settings-account-grid {
    grid-template-columns: 1fr 1fr;
  }

  .settings-account-form:last-child {
    grid-column: 1 / -1;
  }
}


.settings-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 120px;
}

[hidden] {
  display: none !important;
}

/* =========================================================
   ALTERAR @USERNAME
   ========================================================= */
.settings-username-field {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  border: 1px solid #b9c9d6;
  border-radius: 3px;
  background: #fff;
  overflow: hidden;
}

.settings-username-field:focus-within {
  border-color: #6f94b0;
  box-shadow: 0 0 0 2px rgba(77, 124, 158, .10);
}

.settings-username-field > span {
  flex: 0 0 auto;
  padding-left: 10px;
  color: #677985;
  font-weight: 700;
}

.settings-account-form .settings-username-field input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 38px;
  border: 0;
  box-shadow: none;
  padding-left: 2px;
}

.settings-account-form .settings-username-field input:focus {
  border: 0;
  box-shadow: none;
  outline: none;
}

.settings-username-availability {
  min-height: 18px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: #74818a;
}

.settings-username-availability.available {
  color: #2f7b4e;
}

.settings-username-availability.unavailable {
  color: #a33e3e;
}

.settings-username-availability.checking {
  color: #7b4db5;
}


/* =========================================================
   SUPORTE
   ========================================================= */
.settings-support-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.settings-support-row > div {
  flex: 1 1 220px;
  min-width: 0;
}

@media (max-width: 700px) {
  .settings-support-button {
    width: 100%;
  }
}
