/* ============================================================
   SETTINGS.CSS
   Profile Information, About You, Profile Image, Social Links,
   Account/Plan cards.
   Depends on: main.css (tokens), resources.css (tabs, inputs)
   ============================================================ */


/* ——————————————————————————————————————————————————————————
   PAGE HEADER ROW — title + Save button side by side
   —————————————————————————————————————————————————————————— */
/* SETTINGS TAB PANELS */

.set-panel {
  display: none;
}

.set-panel.active {
  display: block;
}

.set-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(231,207,207,0.22);
}

.set-save-btn {
  padding: 9px 22px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, var(--blush), var(--rose));
  border: none;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 10px rgba(217,180,180,0.4);
  margin-top: 4px;
}
.set-save-btn:hover {
  opacity: 0.88;
  box-shadow: 0 4px 18px rgba(217,180,180,0.52);
}
.set-save-btn.saved {
  background: linear-gradient(135deg, #a8c8a8, #6a9b6a);
  box-shadow: 0 2px 10px rgba(106,155,106,0.35);
}


/* ——————————————————————————————————————————————————————————
   PROFILE LAYOUT — two-column grid
   —————————————————————————————————————————————————————————— */

.set-profile-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}

.set-col-left,
.set-col-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


/* ——————————————————————————————————————————————————————————
   CARDS
   —————————————————————————————————————————————————————————— */

.set-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 26px 28px;
}

.set-card-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}

.set-card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 22px;
}

.set-field-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
}

.set-bio-counter {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 6px;
}


/* ——————————————————————————————————————————————————————————
   PROFILE IMAGE — avatar area
   —————————————————————————————————————————————————————————— */

.set-img-card { text-align: center; }

.set-avatar-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.set-avatar-ring {
  position: relative;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}

.set-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blush), var(--rose));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  color: #fff;
  overflow: hidden;
  border: 3px solid rgba(231,207,207,0.4);
}

.set-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.set-avatar-overlay {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.15s;
}
.set-avatar-ring:hover .set-avatar-overlay {
  transform: scale(1.12);
}

.set-upload-btn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-panel);
  border: 1px solid rgba(231,207,207,0.45);
  border-radius: 50px;
  padding: 7px 18px;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 4px;
}
.set-upload-btn:hover {
  background: rgba(231,207,207,0.3);
  color: var(--text-primary);
}

.set-remove-link {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}
.set-remove-link:hover { color: #c06060; }

.set-img-hint {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
}


/* ——————————————————————————————————————————————————————————
   SOCIAL LINKS
   —————————————————————————————————————————————————————————— */

.set-social-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 14px;
}

.set-social-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.045);
}
.set-social-row:last-child { border-bottom: none; }

.set-soc-badge {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0;
}

.set-soc-platform {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  width: 78px;
  flex-shrink: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.set-soc-input {
  flex: 1;
  min-width: 140px;
  font-size: 12px;
  padding: 7px 11px;
}

.set-soc-rm {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
  transition: background 0.13s, color 0.13s;
}
.set-soc-rm:hover {
  background: rgba(217,180,180,0.3);
  color: #8a3535;
}

.set-add-link-btn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--rose);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.set-add-link-btn:hover { opacity: 0.65; }


/* ——————————————————————————————————————————————————————————
   ACCOUNT TAB — 2-column grid
   —————————————————————————————————————————————————————————— */

.set-account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

/* Title + status pill side by side */
.set-acct-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

/* Active status pill */
.set-active-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(223,230,218,0.65);
  color: #4a6845;
  border: 1px solid rgba(176,196,168,0.5);
  flex-shrink: 0;
  white-space: nowrap;
}

/* Plan name under the title row */
.set-plan-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* Button row (multiple outline buttons side by side) */
.set-btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Shared outline button */
.set-btn-outline {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid rgba(231,207,207,0.5);
  border-radius: 50px;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.set-btn-outline:hover {
  background: rgba(231,207,207,0.2);
  border-color: var(--rose);
  color: var(--text-primary);
}

/* Logout button */
.set-logout-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid rgba(231,207,207,0.45);
  border-radius: 50px;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.15s;
}
.set-logout-btn:hover {
  background: rgba(231,207,207,0.2);
  color: var(--text-primary);
}

/* Danger card — delete account, full width below grid */
.set-danger-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: 1px solid rgba(176,80,80,0.14);
}

.set-danger-content {
  flex: 1;
  min-width: 0;
}

.set-danger-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: #b05050;
  margin-bottom: 5px;
}

.set-danger-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Delete account button */
.set-delete-btn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: #b05050;
  background: rgba(176,80,80,0.07);
  border: 1px solid rgba(176,80,80,0.22);
  border-radius: 50px;
  padding: 8px 20px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.set-delete-btn:hover {
  background: rgba(176,80,80,0.14);
  border-color: rgba(176,80,80,0.4);
}

.set-logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid rgba(231,207,207,0.45);
  border-radius: 50px;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.15s;
}
.set-logout-btn:hover {
  background: rgba(231,207,207,0.2);
  color: var(--text-primary);
}

.set-delete-link {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
  text-decoration: underline;
  text-decoration-color: transparent;
}
.set-delete-link:hover {
  color: #c06060;
  text-decoration-color: currentColor;
}


/* ——————————————————————————————————————————————————————————
   RESPONSIVE
   —————————————————————————————————————————————————————————— */

@media (max-width: 860px) {
  .set-profile-layout {
    grid-template-columns: 1fr;
  }
  .set-col-right {
    order: -1;
  }
  .set-img-card {
    display: flex;
    gap: 24px;
    text-align: left;
    align-items: flex-start;
  }
  .set-img-card .set-card-title,
  .set-img-card .set-card-desc {
    text-align: left;
  }
  .set-avatar-area {
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    min-width: 130px;
  }
  .set-account-grid {
    grid-template-columns: 1fr;
  }
  .set-danger-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .set-soc-input {
    min-width: 0;
  }
}
