/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f0f2f5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.page {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ===== CARD ===== */
.profile-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.10);
  padding: 2rem;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ===== TOP SECTION ===== */

.profile-top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
}

/* ===== AVATAR ===== */
.avatar-figure {
  flex-shrink: 0; /* stops avatar from squishing */
}

.avatar-img {
  width: 90px;
  height: 90px;
  border-radius: 50%; /* makes it a circle */
  object-fit: cover;  /* crops image to fill the circle */
  border: 3px solid #e0e7ff;
  display: block;
}

/* ===== NAME + BIO ===== */
.user-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.4rem;
}

.user-bio {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ===== TIMESTAMP ===== */
.time-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8f9ff;
  border: 1px solid #e0e7ff;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
}

.time-label {
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
}

.user-time {
  color: #4338ca;
  font-weight: 700;
  font-variant-numeric: tabular-nums; /* stops layout jumping as numbers change */
  word-break: break-all;
}

/* ===== SOCIAL LINKS ===== */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #f3f4f6;
  color: #374151;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  transition: background 0.2s ease, color 0.2s ease;
}

.social-link:hover {
  background: #e0e7ff;
  color: #4338ca;
}

/* Visible focus ring for keyboard users */
.social-link:focus-visible {
  outline: 3px solid #6366f1;
  outline-offset: 2px;
  border-radius: 99px;
}

/* ===== HOBBIES + DISLIKES ===== */
.lists-section {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two equal columns side by side */
  gap: 1rem;
}

.list-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.profile-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.profile-list li {
  font-size: 0.84rem;
  color: #6b7280;
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

/* Bullet dot using ::before pseudo-element */
.profile-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #a5b4fc;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  body {
    align-items: flex-start;
    padding: 1rem;
  }

  .profile-card {
    padding: 1.25rem;
    border-radius: 14px;
  }

  .profile-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .lists-section {
    grid-template-columns: 1fr; /* stack lists vertically on mobile */
  }

  .social-links {
    justify-content: center;
  }
}