/* ─────────────────────────────────────────────────────────────────────────────
   bio.css  —  Styles for #window-bio content only
   All selectors are scoped to #window-bio to avoid bleed into other windows.
───────────────────────────────────────────────────────────────────────────── */

/* Window body: keep overflow: hidden (border-radius clip on .window requires it).
   Scrolling happens on the inner .bio-content wrapper, not here. */
#window-bio .window-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

/* ── Profile Header Strip ── */
.bio-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--titlebar-bg);
}

@media (prefers-color-scheme: dark) {
  .bio-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
}

/* Avatar wrapper: fixed size, no shrink */
.bio-avatar-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

/* Circle-cropped photo */
.bio-avatar-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Initials monogram fallback — hidden by default, shown via JS onerror */
.bio-avatar-mono {
  display: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.10);
  font-family: var(--font-system);
  font-weight: 600;
  font-size: 18px;
  color: rgba(0, 0, 0, 0.55);
}

@media (prefers-color-scheme: dark) {
  .bio-avatar-mono {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.70);
  }
}

/* Name + tagline column */
.bio-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bio-name {
  font-family: var(--font-system);
  font-size: 15px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.85);
  line-height: 1.2;
}

.bio-tagline {
  font-family: var(--font-system);
  font-size: 12px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.50);
  line-height: 1.2;
}

@media (prefers-color-scheme: dark) {
  .bio-name    { color: rgba(255, 255, 255, 0.88); }
  .bio-tagline { color: rgba(255, 255, 255, 0.45); }
}

/* ── Scrollable Content Area ── */
.bio-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  /* Custom scrollbar — thin, macOS-style */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.20) transparent;
}

.bio-content::-webkit-scrollbar        { width: 5px; }
.bio-content::-webkit-scrollbar-track  { background: transparent; }
.bio-content::-webkit-scrollbar-thumb  { background: rgba(0, 0, 0, 0.20); border-radius: 3px; }

@media (prefers-color-scheme: dark) {
  .bio-content {
    scrollbar-color: rgba(255, 255, 255, 0.20) transparent;
  }
  .bio-content::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.20); }
}

/* ── Section structure ── */
.bio-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bio-section-heading {
  font-family: var(--font-system);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.40);
}

@media (prefers-color-scheme: dark) {
  .bio-section-heading { color: rgba(255, 255, 255, 0.38); }
}

/* ── About text ── */
.bio-about-text {
  font-family: var(--font-system);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.75);
}

@media (prefers-color-scheme: dark) {
  .bio-about-text { color: rgba(255, 255, 255, 0.72); }
}

/* ── Skills chip groups ── */
.bio-skill-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bio-skill-label {
  font-family: var(--font-system);
  font-size: 11px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.55);
}

@media (prefers-color-scheme: dark) {
  .bio-skill-label { color: rgba(255, 255, 255, 0.50); }
}

.bio-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.bio-chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-system);
  font-size: 11px;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.07);
  color: rgba(0, 0, 0, 0.70);
}

@media (prefers-color-scheme: dark) {
  .bio-chip {
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.70);
  }
}

/* ── Social / Contact Links ── */
.bio-links-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.bio-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.50);
  text-decoration: none;
  transition: color 0.15s ease;
  width: 28px;
  height: 28px;
}

.bio-link-btn:hover {
  color: rgba(0, 0, 0, 0.85);
}

.bio-link-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (prefers-color-scheme: dark) {
  .bio-link-btn       { color: rgba(255, 255, 255, 0.45); }
  .bio-link-btn:hover { color: rgba(255, 255, 255, 0.90); }
}
