/*
 * sidebar.css
 * ─────────────────────────────────────────────────────────
 * LEARNER NOTE:
 * The sidebar is the left "profile card" column.
 * It uses flex-direction: column to stack items vertically.
 * Sticky positioning keeps it in view while content scrolls.
 * ─────────────────────────────────────────────────────────
 */

.sidebar {
  background: var(--clr-surface-2);
  border-right: 1px solid var(--clr-border);
  padding: var(--sp-7) var(--sp-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  position: sticky;
  top: 0;
  align-self: start; /* Don't stretch to full panel height */
}

/* ── Avatar ── */
.avatar-wrap {
  position: relative;
  margin-bottom: var(--sp-2);
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--clr-surface-2), 0 0 0 6px var(--clr-accent), 0 8px 24px rgba(0,0,0,0.4);
}

/* Green "available" dot */
.status-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: var(--radius-full);
  border: 3px solid var(--clr-surface-2);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  /* Pulse animation defined in animations.css */
  animation: pulse 2s ease-in-out infinite;
}

/* ── Name & Badge ── */
.sidebar__name {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-white);
  text-align: center;
  letter-spacing: -0.02em;
}

.sidebar__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-white);
  padding: var(--sp-1) var(--sp-4);
  white-space: nowrap;
}

/* ── Info list ── */
.sidebar__info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--sp-4);
}

.sidebar__info li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.4;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease-smooth);
}

.sidebar__info li:hover {
  background: rgba(108, 99, 255, 0.08);
}

.sidebar__info .email-wrap {
  word-break: break-all;
  line-height: 1.5;
  
}

.sidebar__info .icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--clr-accent-glow);
  border-radius: var(--radius-sm);
  color: var(--clr-accent);
}

/* ── Social links ── */
.sidebar__socials {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--clr-text-muted);
  transition: all var(--dur-base) var(--ease-smooth);
}

.social-link:hover {
  color: var(--clr-white);
  border-color: var(--clr-accent);
  background: var(--clr-accent-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent);
}

/* ── Resume Download Button ── */
.sidebar__resume-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  width: 60%;
  padding: var(--sp-3) var(--sp-4);
  margin-top: var(--sp-2);
  color: var(--clr-white);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  transition: all var(--dur-base) var(--ease-smooth);
}

.sidebar__resume-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--clr-accent-glow);
}

.sidebar__resume-btn:active {
  transform: translateY(0);
}

/* ── Light Mode Overrides ── */
html.light-mode .sidebar__name {
  color: #1a1a2e;
}

html.light-mode .sidebar__info li {
  color: #5a5a70;
}

html.light-mode .sidebar__info li:hover {
  background: rgba(90, 82, 224, 0.08);
}

html.light-mode .sidebar__info .icon {
  background: rgba(90, 82, 224, 0.12);
  color: #5a52e0;
}

html.light-mode .social-link:hover {
  color: #1a1a2e;
  background: rgba(90, 82, 224, 0.15);
}

html.light-mode .status-dot {
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}
