/* =========================================================
   Lumen - Link in Bio Template
   Themes: aurora (default), sand, mono
   Change the theme in index.html: <html data-theme="sand">
   ========================================================= */

/* ----- Theme: aurora (dark with soft glow) ----- */
:root,
[data-theme="aurora"] {
  color-scheme: dark;
  --bg: #0a0b10;
  --glow-1: rgba(125, 211, 252, 0.22);
  --glow-2: rgba(167, 139, 250, 0.20);
  --card: rgba(255, 255, 255, 0.04);
  --text: #f4f5f8;
  --muted: #9aa0b2;
  --line: rgba(255, 255, 255, 0.09);
  --link-bg: rgba(255, 255, 255, 0.05);
  --link-hover: rgba(255, 255, 255, 0.09);
  --accent: #7dd3fc;
  --accent-text: #06131c;
  --avatar-1: #7dd3fc;
  --avatar-2: #a78bfa;
}

/* ----- Theme: sand (light and warm) ----- */
[data-theme="sand"] {
  color-scheme: light;
  --bg: #f6f1ea;
  --glow-1: rgba(244, 172, 120, 0.25);
  --glow-2: rgba(214, 190, 150, 0.30);
  --card: rgba(255, 255, 255, 0.55);
  --text: #2b2420;
  --muted: #7a6d63;
  --line: rgba(43, 36, 32, 0.10);
  --link-bg: #ffffff;
  --link-hover: #fffaf4;
  --accent: #c2410c;
  --accent-text: #ffffff;
  --avatar-1: #f4ac78;
  --avatar-2: #d6a874;
}

/* ----- Theme: mono (black and white) ----- */
[data-theme="mono"] {
  color-scheme: light;
  --bg: #fafafa;
  --glow-1: transparent;
  --glow-2: transparent;
  --card: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --link-bg: #ffffff;
  --link-hover: #f4f4f4;
  --accent: #111111;
  --accent-text: #ffffff;
  --avatar-1: #a3a3a3;
  --avatar-2: #404040;
}

/* ----- Base ----- */
* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 48px 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(60% 40% at 15% 0%, var(--glow-1), transparent 70%),
    radial-gradient(55% 40% at 90% 10%, var(--glow-2), transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 440px;
  padding: 32px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ----- Profile ----- */
.profile { text-align: center; }

.avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--line);
  /* Background shows behind the sample avatar; your own photo will cover it */
  background: linear-gradient(135deg, var(--avatar-1), var(--avatar-2));
}

.name {
  margin: 16px 0 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bio {
  margin: 0 auto;
  max-width: 320px;
  font-size: 15px;
  color: var(--muted);
}

/* ----- Social icons ----- */
.socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 26px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--text);
  border: 1px solid var(--line);
  transition: background 0.2s, transform 0.2s;
}

.socials a:hover,
.socials a:focus-visible {
  background: var(--link-hover);
  transform: translateY(-2px);
  outline: none;
}

.socials svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.socials svg .dot,
.socials svg .fill { fill: currentColor; stroke: none; }

/* ----- Links ----- */
.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--link-bg);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.link:hover,
.link:focus-visible {
  background: var(--link-hover);
  transform: translateY(-2px);
  outline: none;
}

.link .emoji { font-size: 20px; flex-shrink: 0; }
.link .text { display: grid; }
.link strong { font-size: 15px; font-weight: 600; }
.link small { font-size: 13px; color: var(--muted); }

/* Featured link */
.link.featured {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.link.featured small { color: inherit; opacity: 0.75; }
.link.featured:hover,
.link.featured:focus-visible { background: var(--accent); filter: brightness(1.07); }

/* ----- Footer ----- */
.footer {
  margin-top: 26px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* ----- Accessibility ----- */
a:focus-visible { box-shadow: 0 0 0 3px var(--accent); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
