/* ==========================================================================
   profile.css — "my profile" (profile.php)

   Always loaded, like stats.css and campstatus.css, because profile.php emits
   this markup whether or not the modern layer is on. Tokens carry fallbacks.
   ========================================================================== */

/* ---------- Hero ---------- */

.cs-hero {
  margin: 0 16px 16px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: var(--cs-surface, #fff);
  box-shadow: 0 1px 2px rgba(16, 16, 30, 0.04), 0 8px 24px -6px rgba(16, 16, 30, 0.08),
    0 0 0 1px var(--cs-line, rgba(15, 15, 25, 0.07));
}

.cs-hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cs-hero-avatar {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cs-surface-3, #eeeef2);
}
.cs-hero-avatar.is-empty {
  display: inline-block;
  background: var(--cs-surface-3, #eeeef2);
}

.cs-hero-who { min-width: 0; }

.cs-hero-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 20px;
  font-weight: 680;
  letter-spacing: -0.028em;
  line-height: 1.2;
  color: var(--cs-ink, #0b0b10);
  word-break: break-word;
}
.cs-hero-flag {
  flex: 0 0 auto;
  height: 13px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 15, 25, 0.08);
}
.cs-hero-fullname {
  margin-top: 1px;
  font-size: 14px;
  color: var(--cs-muted, #6b6b76);
}
.cs-hero-facts {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--cs-faint, #9a9aa5);
}

.cs-hero-belt { margin-top: 15px; }
.cs-hero-belt .cs-belt { max-width: 100%; }

.cs-hero-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--cs-surface-2, #f6f6f8);
  font-size: 14px;
  font-weight: 600;
  color: var(--cs-ink-2, #3a3a44) !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease;
}
.cs-hero-link:hover { background: var(--cs-surface-3, #eeeef2); }
.cs-hero-link-icon { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 6px; }
.cs-hero-link span:not(.cs-hero-link-go) { flex: 1 1 auto; }
.cs-hero-link-go {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-right: 1.75px solid var(--cs-faint, #9a9aa5);
  border-top: 1.75px solid var(--cs-faint, #9a9aa5);
  transform: rotate(45deg);
}

/* ---------- Form sections ---------- */

/* Twenty fields in one flat list with no grouping. These headings break it
   into the four things people actually come here to change. */
.cs-formsection {
  margin: 28px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--cs-line, rgba(15, 15, 25, 0.07));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs-faint, #9a9aa5);
}

/* ---------- Dark theme ---------- */

body.theme-dark .cs-hero {
  background: #1c1f24;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
body.theme-dark .cs-hero-name { color: #f4f5f7; }
body.theme-dark .cs-hero-avatar,
body.theme-dark .cs-hero-avatar.is-empty { background: #2b2f36; }
body.theme-dark .cs-hero-link { background: #23262c; color: #d5d7dd !important; }
body.theme-dark .cs-hero-link:hover { background: #2b2f36; }
body.theme-dark .cs-formsection { border-top-color: rgba(255, 255, 255, 0.08); }
