/*
 * Link-in-Bio Page — Stylesheet
 * Author  : lautandigital.id
 * Website : https://lautandigital.id
 * License : MIT
 */

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

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --surface-hover: #242424;
  --border: #2e2e2e;
  --accent: #7c6af7;
  --accent-glow: rgba(124, 106, 247, 0.25);
  --text-primary: #f0f0f0;
  --text-secondary: #888;
  --radius: 16px;
  --transition: 0.22s ease;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  line-height: 1.5;
}

/* ── Background decorative blobs ── */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}
.bg-blob-1 {
  width: 480px;
  height: 480px;
  background: #7c6af7;
  top: -120px;
  right: -80px;
}
.bg-blob-2 {
  width: 360px;
  height: 360px;
  background: #f76ab4;
  bottom: -60px;
  left: -60px;
}

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

/* ── Avatar ── */
.avatar-wrap {
  position: relative;
  margin-bottom: 20px;
}
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  display: block;
}
.avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c6af7, #f76ab4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  border: 3px solid var(--border);
  user-select: none;
}
.status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: #22c55e;
  border-radius: 50%;
  border: 3px solid var(--bg);
}

/* ── Profile info ── */
.profile-name {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}
.profile-handle {
  font-size: 0.875rem;
  color: var(--accent);
  text-align: center;
  margin-top: 2px;
}
.profile-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 10px;
  max-width: 320px;
  line-height: 1.6;
}

/* ── Stats row ── */
.stats {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  justify-content: center;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Links ── */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 20px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-primary);
  transition: background var(--transition), border-color var(--transition),
    transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.link-item:hover,
.link-item:focus-visible {
  background: var(--surface-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--accent-glow);
  outline: none;
}
.link-item:active {
  transform: translateY(0);
}

.link-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: var(--border);
}
.link-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.link-text {
  flex: 1;
}
.link-title {
  font-size: 0.92rem;
  font-weight: 600;
}
.link-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 1px;
}

.link-arrow {
  color: var(--text-secondary);
  font-size: 16px;
  transition: transform var(--transition), color var(--transition);
}
.link-item:hover .link-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* ── Icon color themes ── */
.icon-website   { background: #1e1e3a; color: #7c6af7; }
.icon-instagram { background: #2d1b26; color: #f76ab4; }
.icon-youtube   { background: #2d1a1a; color: #f87171; }
.icon-tiktok    { background: #1a2d2d; color: #2dd4bf; }
.icon-twitter   { background: #1a2233; color: #60a5fa; }
.icon-whatsapp  { background: #1a2d1e; color: #4ade80; }
.icon-email     { background: #2d2a1a; color: #fbbf24; }
.icon-github    { background: #1e1e1e; color: #e5e7eb; }

/* ── Footer credit ── */
.footer {
  margin-top: 32px;
  text-align: center;
}
.footer a {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.footer a:hover {
  color: var(--accent);
}

/* ── Copy-toast notification ── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .stats { gap: 16px; padding: 14px 16px; }
  .profile-name { font-size: 1.25rem; }
}
