/* ═══ An Nhi Trà — Link Bio ═══ */
/* Tea Green + Gold Premium 🍃 */

:root {
  --green-deep: #2D4A1E;
  --green: #3B6B2A;
  --green-light: #5C8A4A;
  --green-muted: #8AAF78;
  --gold: #C5A55A;
  --gold-light: #D4BC7A;
  --gold-warm: #B89840;
  --cream: #FDFCF7;
  --ivory: #F5F2E8;
  --ink: #1A2810;
  --ink-light: #4A5E3E;
  --shadow: rgba(45,74,30,0.1);
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-ui: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-ui);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 32px 16px 60px;
  /* Rich tea-green gradient background */
  background:
    linear-gradient(170deg, #1A2810 0%, #2D4A1E 35%, #3B6B2A 60%, #2D4A1E 85%, #1A2810 100%);
  background-attachment: fixed;
  /* Subtle golden texture */
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(197,165,90,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(197,165,90,0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.02) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ═══ FLOATING LEAVES ═══ */
.leaf {
  position: fixed;
  font-size: 20px;
  opacity: 0.15;
  animation: drift 18s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.leaf-1 { top: 10%; left: 8%; animation-delay: 0s; }
.leaf-2 { top: 45%; right: 6%; animation-delay: -6s; font-size: 16px; }
.leaf-3 { bottom: 15%; left: 12%; animation-delay: -12s; font-size: 14px; }
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-12px) rotate(5deg); }
  50% { transform: translateY(6px) rotate(-3deg); }
  75% { transform: translateY(-8px) rotate(2deg); }
}

/* ═══ CARD ═══ */
.bio-card {
  width: 100%;
  max-width: 420px;
  background: var(--cream);
  border-radius: 20px;
  padding: 40px 28px 32px;
  box-shadow:
    0 8px 40px rgba(0,0,0,0.25),
    0 2px 8px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.8);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(197,165,90,0.15);
}
/* Gold accent line at top */
.bio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 0 0 2px 2px;
}

/* ═══ AVATAR ═══ */
.bio-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.avatar-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold-warm), var(--gold));
  animation: ring-glow 4s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes ring-glow {
  0% { box-shadow: 0 0 0 0 rgba(197,165,90,0); }
  100% { box-shadow: 0 0 24px 4px rgba(197,165,90,0.2); }
}
.avatar-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

/* ═══ NAME & BIO ═══ */
.bio-name {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 2px;
  color: var(--green-deep);
  margin-bottom: 4px;
}
.bio-tagline {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  text-align: center;
  color: var(--ink-light);
  margin-bottom: 10px;
}
.bio-stamp {
  text-align: center;
  display: flex;
  justify-content: center;
  font-size: 0;
}
.bio-stamp::after {
  content: 'SINCE 2010';
  font-family: var(--font-ui);
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--green);
  border: 1px solid var(--green-light);
  padding: 2px 10px;
  transform: rotate(-2deg);
  display: inline-block;
}

/* ═══ DIVIDER ═══ */
.bio-divider {
  text-align: center;
  padding: 16px 0;
  color: var(--gold-light);
}
.bio-divider svg { width: 120px; height: 8px; }

/* ═══ CONTACT ROW ═══ */
.contact-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink-light);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--ivory);
  border: 1px solid rgba(59,107,42,0.08);
  transition: all 0.2s;
}
.contact-item:hover {
  color: var(--green);
  border-color: var(--green-light);
  background: rgba(59,107,42,0.04);
}
.c-icon { font-size: 14px; }

/* ═══ LINKS ═══ */
.bio-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bio-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(59,107,42,0.12);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  background: var(--cream);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.bio-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(59,107,42,0.03));
  opacity: 0;
  transition: opacity 0.3s;
}
.bio-link:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow);
}
.bio-link:hover::before { opacity: 1; }
.bio-link:active { transform: translateY(0); }

.link-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  color: var(--green);
  background: rgba(59,107,42,0.06);
  border-radius: 8px;
}
.link-icon svg { fill: var(--green); }
.link-text {
  flex: 1;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
}
.link-arrow {
  font-size: 14px;
  color: var(--green-muted);
  transition: transform 0.2s, color 0.2s;
}
.bio-link:hover .link-arrow {
  transform: translateX(3px);
  color: var(--gold);
}

/* ── Link hover accent colors ── */
.link-web:hover { border-color: var(--green); }
.link-web:hover .link-icon { background: rgba(59,107,42,0.12); color: var(--green-deep); }

.link-shopee:hover { border-color: #EE4D2D; }
.link-shopee:hover .link-icon { background: rgba(238,77,45,0.08); color: #EE4D2D; }

.link-tiktok-shop:hover { border-color: #25F4EE; }
.link-tiktok-shop:hover .link-icon { background: rgba(0,0,0,0.06); color: #000; }

.link-amazon:hover { border-color: #FF9900; }
.link-amazon:hover .link-icon { background: rgba(255,153,0,0.08); color: #FF9900; }

.link-fb:hover { border-color: #1877F2; }
.link-fb:hover .link-icon { background: rgba(24,119,242,0.08); }
.link-fb:hover .link-icon svg { fill: #1877F2; }

.link-yt:hover { border-color: #FF0000; }
.link-yt:hover .link-icon { background: rgba(255,0,0,0.06); }
.link-yt:hover .link-icon svg { fill: #FF0000; }

.link-tiktok:hover .link-icon { background: rgba(0,0,0,0.06); }
.link-tiktok:hover .link-icon svg { fill: #000; }

.link-zalo:hover { border-color: #0068FF; }
.link-zalo:hover .link-icon { background: rgba(0,104,255,0.06); color: #0068FF; }

.link-divider {
  height: 0;
  border-top: 1px dashed rgba(59,107,42,0.12);
  margin: 4px 0;
}

/* ═══ FOOTER ═══ */
.bio-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
}
.footer-kanji {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--green-muted);
  opacity: 0.3;
  display: block;
  margin-bottom: 4px;
}
.bio-footer p {
  font-size: 10px;
  color: var(--ink-light);
  letter-spacing: 1px;
  opacity: 0.5;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 480px) {
  body { padding: 20px 12px 40px; }
  .bio-card { padding: 32px 20px 24px; border-radius: 16px; }
  .bio-name { font-size: 26px; }
  .contact-row { gap: 8px; }
  .bio-link { padding: 12px 14px; }
  .avatar-ring { width: 96px; height: 96px; }
}

/* ═══ DARK MODE ═══ */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(170deg, #0A0F07 0%, #1A2810 35%, #253A1A 60%, #1A2810 85%, #0A0F07 100%);
  }
  :root {
    --cream: #141C10;
    --ivory: #1A2510;
    --ink: #D0DCC8;
    --ink-light: #8AA078;
    --shadow: rgba(0,0,0,0.4);
  }
  .bio-card {
    border-color: rgba(197,165,90,0.1);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.03);
  }
  .bio-link { background: rgba(255,255,255,0.02); }
  .bio-link:hover { background: rgba(255,255,255,0.04); }
  .contact-item { background: rgba(255,255,255,0.03); }
  .avatar-logo { background: #1A2810; }
  .bio-name { color: var(--gold-light); }
}
