/*
 Theme Name: Divi Link Hub Child
 Theme URI: https://example.com/
 Description: A Divi child theme that creates a Linktree-style mobile-first link hub with editable links, profile header, analytics-ready outbound links, and a dedicated page template.
 Author: ChatGPT
 Template: Divi
 Version: 1.0.0
 License: GPL-2.0-or-later
 Text Domain: divi-link-hub-child
*/

:root {
  --dlh-bg: #101217;
  --dlh-card: rgba(255,255,255,.08);
  --dlh-card-hover: rgba(255,255,255,.14);
  --dlh-text: #ffffff;
  --dlh-muted: rgba(255,255,255,.74);
  --dlh-border: rgba(255,255,255,.18);
  --dlh-accent: #7ee787;
  --dlh-radius: 18px;
  --dlh-shadow: 0 18px 60px rgba(0,0,0,.28);
}

body.page-template-page-linktree,
body.dlh-standalone {
  background: var(--dlh-bg);
}

.dlh-page {
  min-height: 100vh;
  color: var(--dlh-text);
  background:
    radial-gradient(circle at top left, rgba(126,231,135,.22), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(120,119,255,.22), transparent 32rem),
    var(--dlh-bg);
  padding: 42px 18px 28px;
  font-family: inherit;
}

.dlh-wrap {
  width: min(100%, 560px);
  margin: 0 auto;
}

.dlh-profile {
  text-align: center;
  margin-bottom: 26px;
}

.dlh-avatar {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 999px;
  border: 3px solid var(--dlh-border);
  box-shadow: var(--dlh-shadow);
  background: rgba(255,255,255,.1);
}

.dlh-profile h1 {
  margin: 18px 0 8px;
  color: var(--dlh-text);
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.04em;
}

.dlh-bio {
  max-width: 42ch;
  margin: 0 auto;
  color: var(--dlh-muted);
  font-size: 16px;
  line-height: 1.55;
}

.dlh-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.dlh-socials a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--dlh-text);
  background: var(--dlh-card);
  border: 1px solid var(--dlh-border);
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.dlh-socials a:hover,
.dlh-socials a:focus-visible {
  transform: translateY(-2px);
  background: var(--dlh-card-hover);
  border-color: rgba(255,255,255,.34);
}

.dlh-links {
  display: grid;
  gap: 14px;
}

.dlh-link {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 28px;
  align-items: center;
  min-height: 68px;
  padding: 12px 16px;
  border-radius: var(--dlh-radius);
  color: var(--dlh-text) !important;
  background: var(--dlh-card);
  border: 1px solid var(--dlh-border);
  text-decoration: none !important;
  box-shadow: 0 10px 34px rgba(0,0,0,.12);
  backdrop-filter: blur(12px);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.dlh-link:hover,
.dlh-link:focus-visible {
  transform: translateY(-2px) scale(1.01);
  background: var(--dlh-card-hover);
  border-color: rgba(255,255,255,.38);
  box-shadow: 0 16px 42px rgba(0,0,0,.22);
}

.dlh-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.12);
  font-size: 18px;
}

.dlh-link-title {
  color: var(--dlh-text);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.2;
}

.dlh-link-subtitle {
  display: block;
  margin-top: 3px;
  color: var(--dlh-muted);
  font-size: 13px;
  font-weight: 400;
}

.dlh-arrow {
  opacity: .72;
  font-size: 22px;
}

.dlh-empty {
  text-align: center;
  color: var(--dlh-muted);
  padding: 24px;
  border: 1px dashed var(--dlh-border);
  border-radius: var(--dlh-radius);
}

.dlh-footer {
  margin-top: 24px;
  text-align: center;
  color: rgba(255,255,255,.58);
  font-size: 13px;
}

.dlh-footer a {
  color: var(--dlh-text);
}

@media (min-width: 720px) {
  .dlh-page {
    padding-top: 64px;
  }

  .dlh-link {
    min-height: 74px;
  }
}
