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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background-color: #b0b0b0;
  color: #1a1a1a;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
   Page wrapper
   ========================================= */
.page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  width: 100%;
  padding: 32px 16px;
}

/* =========================================
   Card
   ========================================= */
.card {
  width: 100%;
  max-width: 500px;
  min-height: 100dvh;
  background-color: #eceef1;
  border-radius: 24px;
  padding: 48px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

/* =========================================
   Container inside card
   ========================================= */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* =========================================
   Profile Section
   ========================================= */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

/* Avatar */
.avatar-wrapper {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Name */
.display-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Bio */
.bio {
  font-size: 0.875rem;
  font-weight: 700;
  color: #444;
  line-height: 1.5;
  max-width: 300px;
}

/* =========================================
   Links / Buttons
   ========================================= */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.link-btn {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  min-height: 60px;
  padding: 10px 16px;
  border-radius: 14px;
  background-color: #ffffff;
  border: none;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #1a1a1a;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  gap: 12px;
}

.link-btn:hover {
  background-color: #f7f7f7;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.link-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  background-color: #f0f0f0;
}

.link-btn:focus-visible {
  outline: 3px solid #1a8fe3;
  outline-offset: 3px;
}

/* Thumbnail inside button */
.link-thumbnail {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.link-label {
  flex: 1;
  text-align: center;
  padding-right: 40px; /* balance the thumbnail width so label stays visually centered */
}

/* =========================================
   Footer
   ========================================= */
.footer {
  margin-top: auto;
  padding-top: 28px;
  text-align: center;
}

.footer-text {
  font-size: 0.75rem;
  color: #999;
  font-weight: 400;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 540px) {
  .page {
    padding: 0;
    align-items: stretch;
  }

  .card {
    border-radius: 0;
    min-height: 100dvh;
    box-shadow: none;
    padding: 40px 20px 24px;
    max-width: 100%;
  }

  .avatar-wrapper {
    width: 80px;
    height: 80px;
  }

  .display-name {
    font-size: 1.1rem;
  }

  .link-btn {
    font-size: 0.9rem;
    min-height: 54px;
  }
}
