:root {
  --bg: #050505;
  --fg: #f2f2f2;
  --muted: #8a8a8a;
  --card-bg: rgba(15, 15, 15, 0.55);
  --border: rgba(255, 255, 255, 0.12);
  --accent: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

/* ---------- Hintergrund ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000;
  background-image: url("../assets/background/bg.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.75) 75%, rgba(0,0,0,0.92) 100%);
}

.bg-noise {
  position: absolute;
  inset: -50%;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ---------- Karte / Inhalt ---------- */

.card {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 4rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stats {
  align-self: flex-end;
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.stat svg { width: 14px; height: 14px; }

.avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.03);
  margin-bottom: 1rem;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.username {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}

.badges {
  list-style: none;
  display: flex;
  gap: 0.55rem;
  padding: 0;
  margin: 0 0 0.9rem;
}

.badges li {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: default;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.badges li:hover {
  color: var(--fg);
  border-color: rgba(255,255,255,0.35);
}

.badges li svg { width: 14px; height: 14px; }

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg);
  border: 1px solid var(--border);
  background: var(--card-bg);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.joined {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.joined svg { width: 15px; height: 15px; }

.bio {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #d8d8d8;
  max-width: 32ch;
  margin: 0 0 1.6rem;
}

.socials {
  display: flex;
  gap: 0.9rem;
  margin-top: auto;
}

.socials a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card-bg);
  backdrop-filter: blur(6px);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.socials a:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.4);
}

.socials a svg { width: 17px; height: 17px; }

/* ---------- Musik (Spotify) ---------- */

.spotify-embed {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: -1.5rem auto 1.5rem;
  padding: 0 1.5rem;
}

.spotify-embed iframe {
  border-radius: 12px;
  display: block;
}

@media (max-width: 420px) {
  .card { padding-top: 3rem; }
  .bio { max-width: 26ch; }
}
