/* ══════════════════════════════════════
   Megxd. — style.css
   Modern minimal dark bio page
══════════════════════════════════════ */

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

:root {
  --bg:         #0a0a0c;
  --bg2:        #111115;
  --bg3:        #16161b;
  --border:     rgba(255, 255, 255, 0.07);
  --text:       #f0eef5;
  --muted:      rgba(240, 238, 245, 0.38);
  --accent:     #c084fc;
  --accent-dim: rgba(192, 132, 252, 0.12);
  --green:      #23d18b;
}

/* ── Base ── */
html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
}

/* ── Grain overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ── Glow orb ── */
.glow-orb {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Page wrapper ── */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 80px;
}

/* ══════════════════════════════════════
   BANNER
══════════════════════════════════════ */
.banner {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 190px;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  flex-shrink: 0;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
  filter: blur(1px) saturate(0.65);
  display: block;
}

.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, var(--bg) 100%);
}

/* ══════════════════════════════════════
   AVATAR
══════════════════════════════════════ */
.avatar-wrap {
  position: relative;
  margin-top: -52px;
  z-index: 2;
  width: 104px;
  height: 104px;
}

.avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--bg);
  box-shadow:
    0 0 0 1.5px var(--border),
    0 8px 32px rgba(0, 0, 0, 0.65);
  display: block;
  transition: transform 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
}

.status-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 14px;
  height: 14px;
  background: var(--green);
  border-radius: 50%;
  border: 2.5px solid var(--bg);
  box-shadow: 0 0 8px rgba(35, 209, 139, 0.55);
}

/* ══════════════════════════════════════
   NAME BLOCK
══════════════════════════════════════ */
.name-block {
  margin-top: 16px;
  text-align: center;
  animation: fadeUp 0.5s ease both;
}

.name-block h1 {
  font-family: 'Syne', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}

.name-block h1 span {
  color: var(--accent);
}

.tagline {
  margin-top: 7px;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* ══════════════════════════════════════
   BIO
══════════════════════════════════════ */
.bio {
  margin-top: 20px;
  max-width: 360px;
  text-align: center;
  font-size: 0.925rem;
  line-height: 1.72;
  color: rgba(240, 238, 245, 0.62);
  font-weight: 300;
  animation: fadeUp 0.5s 0.08s ease both;
}

/* ══════════════════════════════════════
   LINKS SECTION
══════════════════════════════════════ */
.links {
  margin-top: 28px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeUp 0.5s 0.16s ease both;
}

/* Section separator */
.sep {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 2px;
}

.sep-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.sep-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  opacity: 0.6;
}

/* Link card */
.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent-dim), transparent);
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: inherit;
}

.link-card:hover {
  border-color: rgba(192, 132, 252, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.link-card:hover::before {
  opacity: 1;
}

.link-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.link-icon.discord-icon {
  background: linear-gradient(135deg, rgba(114, 137, 218, 0.3), rgba(114, 137, 218, 0.08));
}

.link-text {
  flex: 1;
}

.link-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.link-handle {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1px;
}

.link-arrow {
  color: var(--muted);
  font-size: 0.85rem;
  transition: transform 0.2s, color 0.2s;
}

.link-card:hover .link-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  margin-top: 48px;
  font-size: 0.72rem;
  color: rgba(240, 238, 245, 0.2);
  letter-spacing: 0.05em;
  text-align: center;
}

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 480px) {
  .banner { height: 150px; }
  .name-block h1 { font-size: 1.6rem; }
  .links, .player { max-width: 100%; }
}