/* ==========================================================================
   ＶＯＩＤ — owner profile + Discord server cards
   Two separate blocks: the person, then the server.
   ========================================================================== */

/* ── the person ─────────────────────────────────────────────────────────── */
.profile {
  position: relative; overflow: hidden;
  display: grid; gap: clamp(20px, 3vw, 34px);
  grid-template-columns: auto 1fr;
  align-items: start;
  padding: clamp(26px, 3.6vw, 40px);
  border-radius: var(--r-xl);
  background: var(--surface-1); border: 1px solid var(--border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--inset-hi), var(--sh-2);
}
/* one soft brand bloom behind the avatar, nothing louder */
.profile__ring {
  position: absolute; z-index: 0; pointer-events: none;
  top: -42%; left: -8%; width: 46%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(139, 92, 246, .3), transparent 66%);
  filter: blur(48px);
}
.profile > *:not(.profile__ring) { position: relative; z-index: 1; }

.profile__avatar {
  position: relative; flex: none;
  width: clamp(84px, 9vw, 112px); aspect-ratio: 1;
  border-radius: 30%; padding: 3px;
  background: var(--grad-brand);
  box-shadow: var(--sh-glow);
}
.profile__avatar img {
  width: 100%; height: 100%;
  border-radius: 28%;
  object-fit: cover; display: block;
  background: var(--glass-solid);
}
.profile__presence {
  position: absolute; right: -3px; bottom: -3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ok);
  border: 4px solid var(--bg-elev);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ok) 26%, transparent);
}

.profile__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.profile__handleRow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile__handle {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.025em;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.profile__tag {
  padding: 4px 10px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: var(--text-2);
}
.profile__role {
  padding: 4px 11px; border-radius: var(--r-full);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
  font-size: .7rem; font-weight: 650; letter-spacing: .05em; color: var(--accent);
}
.profile__bio { color: var(--text-2); font-size: .97rem; line-height: 1.68; max-width: 60ch; }

.profile__skills { display: flex; flex-wrap: wrap; gap: 8px; }
.profile__skills li {
  padding: 5px 13px; border-radius: var(--r-full);
  background: var(--grad-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  font-size: .76rem; font-weight: 650; color: var(--text);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.profile__idRow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px solid var(--hairline);
}
.profile__idLabel {
  font-size: .7rem; font-weight: 650; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
}
.profile__idRow code {
  padding: 4px 10px; border-radius: 7px;
  background: var(--surface-1); border: 1px solid var(--border);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .78rem; color: var(--text-2);
}
.owner__copy {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--r-full);
  background: var(--surface-1); border: 1px solid var(--border);
  color: var(--text-3); font-size: .72rem; font-weight: 600;
  transition: color var(--t) var(--e-out), border-color var(--t) var(--e-out),
              background var(--t) var(--e-out), transform var(--t-fast) var(--e-out);
}
.owner__copy .ico { width: 13px; height: 13px; }
.owner__copy:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.owner__copy:active { transform: scale(.94); }
.owner__copy.is-done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }

@media (max-width: 640px) {
  .profile { grid-template-columns: 1fr; }
}

/* ── the server ─────────────────────────────────────────────────────────── */
.server {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--surface-1); border: 1px solid var(--border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--inset-hi), var(--sh-2);
}
.server__banner {
  position: relative; height: clamp(92px, 12vw, 132px);
  background:
    radial-gradient(120% 150% at 22% 0%, rgba(139, 92, 246, .5), transparent 62%),
    linear-gradient(120deg, #17111f, #0d0b12);
  background-size: cover; background-position: center;
  /* A Discord banner is arbitrary art, so it is pushed back rather than
     allowed to fight the copy underneath. */
  filter: saturate(.7);
}
.server__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 9, .34) 0%, rgba(7, 7, 9, .74) 56%, var(--bg-elev) 100%),
    radial-gradient(90% 120% at 20% 0%, rgba(139, 92, 246, .26), transparent 62%);
}
[data-theme="light"] .server__scrim {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .8) 56%, var(--bg-elev) 100%),
    radial-gradient(90% 120% at 20% 0%, rgba(139, 92, 246, .16), transparent 62%);
}

.server__body {
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
  padding: 0 clamp(20px, 3.2vw, 32px) clamp(24px, 3.2vw, 30px);
}
.server__head {
  display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  margin-top: calc(-1 * clamp(26px, 3.6vw, 36px));
}
.server__icon {
  flex: none; width: clamp(60px, 7vw, 80px); aspect-ratio: 1;
  border-radius: 26%; padding: 3px;
  background: var(--grad-brand);
  box-shadow: var(--sh-2);
}
.server__icon img {
  width: 100%; height: 100%; border-radius: 24%;
  object-fit: cover; display: block; background: var(--glass-solid);
}
.server__title { display: flex; flex-direction: column; gap: 4px; padding-bottom: 4px; }
.server__title strong { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 650; letter-spacing: .02em; }
.server__meta { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--text-2); }
.server__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent);
  animation: pulse-dot 2.6s var(--e-in-out) infinite;
}
.server__join { margin-left: auto; }
.server__desc { color: var(--text-2); font-size: .94rem; line-height: 1.65; max-width: 66ch; }

.owner__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.owner__badges li {
  padding: 6px 13px; border-radius: var(--r-full);
  background: var(--surface-1); border: 1px solid var(--border);
  font-size: .73rem; font-weight: 650; letter-spacing: .04em; color: var(--text-2);
  transition: border-color var(--t) var(--e-out), color var(--t) var(--e-out),
              transform var(--t-fast) var(--e-out);
}
.owner__badges li:hover {
  color: var(--text); transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.owner__stats {
  display: grid; gap: 1px; margin-top: 2px;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--border); border: 1px solid var(--border);
}
.ostat { padding: 16px 18px; background: var(--bg-elev); text-align: center; }
.ostat dt { font-size: .72rem; color: var(--text-3); letter-spacing: .04em; }
.ostat dd {
  margin-top: 5px;
  font-family: "Instrument Serif", ui-serif, Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 400;
  font-variant-numeric: tabular-nums;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.owner__live { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; color: var(--text-3); }
.owner__live i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent);
  animation: pulse-dot 2.6s var(--e-in-out) infinite;
}

@media (max-width: 720px) {
  .server__join { margin-left: 0; width: 100%; }
  .owner__stats { grid-template-columns: repeat(2, 1fr); }
}
