/* ═══════════════════════════════════════════════════════════════
   ABOUT PAGE STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ── Page Header ───────────────────────────────────────────── */
.page-header {
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  padding-bottom: var(--space-xl);
  position: relative;
}

.page-header .math-watermark {
  top: 10%;
  right: -5%;
}

/* ── Profile Section ───────────────────────────────────────── */
.profile-section {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.profile-card {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
}

.profile-image-wrapper {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  background: var(--bg-card);
  margin-bottom: var(--space-lg);
}

.profile-image-wrapper .placeholder-icon {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--text-muted);
}

.profile-image-wrapper .placeholder-icon svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.profile-image-wrapper .placeholder-icon span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.05);
  pointer-events: none;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.profile-role {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-bottom: var(--space-md);
}

.profile-meta {
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
}

.profile-meta-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

.profile-meta-item .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-meta-item .value {
  color: var(--text-secondary);
  font-weight: 500;
}

.profile-socials {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.profile-social-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.profile-social-link:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.04);
}

.profile-social-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── About Content ─────────────────────────────────────────── */
.about-content {
  padding-top: 0.5rem;
}

.about-content .about-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.95;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.about-content .about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Modules Section ───────────────────────────────────────── */
.modules-section {
  margin-top: var(--space-xl);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.module-card {
  padding: 1.3rem 1.5rem;
  cursor: default;
}

.module-card .module-code {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
}

.module-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.module-card .module-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.module-card .module-tags {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

/* ── Timeline ──────────────────────────────────────────────── */
.timeline-section {
  margin-top: var(--space-2xl);
}

.timeline {
  margin-top: var(--space-lg);
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--border), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-xl);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  background: var(--bg-primary);
  transform: translateX(-4px);
}

.timeline-item .timeline-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.timeline-item h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.timeline-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Chess Section ─────────────────────────────────────────── */
.chess-section {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.chess-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
  align-items: center;
}

.chess-board-mini {
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.chess-board-mini .sq {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.chess-board-mini .sq.light {
  background: rgba(56, 189, 248, 0.06);
}

.chess-board-mini .sq.dark {
  background: rgba(56, 189, 248, 0.12);
}

.chess-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.chess-stat {
  text-align: center;
}

.chess-stat .chess-stat-value {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.chess-stat .chess-stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .profile-section {
    grid-template-columns: 260px 1fr;
    gap: var(--space-xl);
  }
}

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

  .profile-card {
    position: static;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
  }

  .profile-meta-item {
    justify-content: center;
    gap: var(--space-md);
  }

  .profile-socials {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }

  .chess-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}
