/* ============ LINKS.CSS ============ */

/* --- Links Page Layout --- */
.links-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px var(--container-x) 40px;
  position: relative;
  overflow: hidden;
}

/* Ambient Background Glow */
.links-page::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(214, 192, 162, 0.08) 0%, transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

.links-page::after {
  content: "";
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(214, 192, 162, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* --- Card Container --- */
.links-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

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

.links-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(214, 192, 162, 0.3);
  box-shadow:
    0 0 0 4px rgba(214, 192, 162, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.links-avatar:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 0 4px rgba(214, 192, 162, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.5);
}

.links-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.links-name {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.links-bio {
  color: var(--color-text-muted);
  font-size: var(--text-small);
  letter-spacing: 0.04em;
  max-width: 280px;
}

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

.link-button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.link-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.link-button:active {
  transform: translateY(0px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Icon inside button */
.link-button__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity var(--duration-fast) ease;
}

.link-button:hover .link-button__icon {
  opacity: 1;
}

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

.link-button__label {
  flex: 1;
  text-align: center;
  padding-right: 36px; /* balance with icon width */
}

/* Arrow indicator */
.link-button__arrow {
  width: 18px;
  height: 18px;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
}

.link-button:hover .link-button__arrow {
  opacity: 0.5;
  transform: translateX(0);
}

.link-button__arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Social Icons Row --- */
.links-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-top: 8px;
}

.links-social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition:
    background var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    color var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) ease;
}

.links-social-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-border-hover);
  color: var(--color-text);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.links-social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --- Footer Attribution --- */
.links-footer {
  text-align: center;
  padding-top: 12px;
}

.links-footer a {
  color: var(--color-text-dim);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.links-footer a:hover {
  color: var(--color-text-muted);
}

/* --- Entrance Animations --- */
@keyframes links-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.links-profile {
  animation: links-fade-up 0.6s var(--ease-out) 0.1s both;
}

.links-list {
  animation: links-fade-up 0.6s var(--ease-out) 0.25s both;
}

.links-socials {
  animation: links-fade-up 0.6s var(--ease-out) 0.4s both;
}

.links-footer {
  animation: links-fade-up 0.6s var(--ease-out) 0.5s both;
}

/* --- Staggered button entrance --- */
.link-button {
  opacity: 0;
  animation: links-fade-up 0.5s var(--ease-out) both;
}

.link-button:nth-child(1) { animation-delay: 0.3s; }
.link-button:nth-child(2) { animation-delay: 0.38s; }
.link-button:nth-child(3) { animation-delay: 0.46s; }
.link-button:nth-child(4) { animation-delay: 0.54s; }
.link-button:nth-child(5) { animation-delay: 0.62s; }
.link-button:nth-child(6) { animation-delay: 0.70s; }

/* --- Mobile Responsive --- */
@media (max-width: 480px) {
  .links-page {
    padding: 40px 16px 32px;
    align-items: flex-start;
    padding-top: 80px;
  }

  .links-card {
    gap: 24px;
  }

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

  .link-button {
    padding: 14px 18px;
    font-size: 14px;
  }

  .link-button__label {
    padding-right: 32px;
  }

  .links-socials {
    gap: 16px;
  }

  .links-social-icon {
    width: 40px;
    height: 40px;
  }

  .links-social-icon svg {
    width: 18px;
    height: 18px;
  }
}
