/* Links page */
/* =============================
   Links
============================= */

.link-profile-section {
  padding-bottom: 24px;
}

.link-profile {
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4rem, 48px);
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.link-profile-logo {
  width: min(100%, 220px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  padding: 18px;
  border-radius: 24px;
}

.link-profile h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 42px;
  letter-spacing: 0;
}

.link-profile p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.link-profile-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 20px;
}

.link-icon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  color: white;
  font-size: 0;
  font-weight: 900;
  background: linear-gradient(135deg, #0f766e, #0891b2);
  box-shadow: 0 16px 32px rgba(8, 145, 178, 0.20);
}

.link-icon-video::before {
  width: 24px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 6px;
}

.link-icon-video::after {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid rgba(255, 255, 255, 0.96);
  transform: translateX(2px);
}

.link-icon-channel::before {
  width: 24px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 8px;
}

.link-icon-channel::after {
  width: 15px;
  height: 9px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  transform: translateY(5px);
}

.link-icon-code::before {
  width: 10px;
  height: 10px;
  border-left: 2px solid rgba(255, 255, 255, 0.96);
  border-bottom: 2px solid rgba(255, 255, 255, 0.96);
  transform: translateX(-7px) rotate(45deg);
}

.link-icon-code::after {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.96);
  border-top: 2px solid rgba(255, 255, 255, 0.96);
  transform: translateX(7px) rotate(45deg);
}

.link-icon-mail::before {
  width: 26px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 6px;
}

.link-icon-mail::after {
  width: 16px;
  height: 16px;
  border-left: 2px solid rgba(255, 255, 255, 0.96);
  border-bottom: 2px solid rgba(255, 255, 255, 0.96);
  transform: translateY(-4px) rotate(-45deg);
}

.link-contact-section {
  padding-top: 24px;
}

.link-contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
}

.link-qr-box {
  width: 180px;
  height: 180px;
  padding: 12px;
  border-radius: var(--radius-xl);
}

@media (max-width: 920px) {
  .link-grid,
  .link-profile,
  .link-contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .link-card {
    align-items: flex-start;
  }

  .link-profile h2 {
    font-size: 32px;
  }

  .link-profile-actions {
    flex-direction: column;
  }

  .link-contact-card {
    align-items: flex-start;
  }

  .link-qr-box {
    width: min(100%, 180px);
    height: auto;
    aspect-ratio: 1 / 1;
  }
}
