/* ============================================================
   LAMA WORLDS — LINKS PAGE THEME (Final Stable v4)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&display=swap');


html, body {
  overflow: hidden !important;
  height: 100%;
  overscroll-behavior: none;
  touch-action: none;
}


:root {
  --lw-bg: #08121b;
  --lw-text: #d6f3ff;

  --lw-card: rgba(15, 25, 40, 0.50);
  --lw-border: rgba(120, 200, 255, 0.35);

  --planet-light-top: #bff0ff;
  --planet-light-mid: #8fd8ff;
  --planet-light-dark: #6fbbe0;
  --planet-light-bottom: #4a8bb8;

  --nebula-light: rgba(160,210,255,0.18);
  --quantum-light: rgba(120,160,255,0.35);
}

body.light {
  --lw-bg: #eaf4ff;
  --lw-text: #0a2333;

  --lw-card: rgba(255,255,255,0.45);
  --lw-border: rgba(0,0,0,0.15);

  --planet-light-top: #ffffff;
  --planet-light-mid: #d1f2ff;
  --planet-light-dark: #a0bdd6;
  --planet-light-bottom: #7fa1c0;

  --nebula-light: rgba(180,220,255,0.25);
  --quantum-light: rgba(140,175,255,0.45);
}

/* === BASE === */
body {
  margin: 0;
  background: var(--lw-bg);
  color: var(--lw-text);
  font-family: 'Orbitron', sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

/* CANVAS — planet + stars */
#bg,
#planet {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#bg {
  z-index: 0;
}

#planet {
  z-index: 1;
  pointer-events: none;
}

/* === CONTENT PERFECT CENTER === */
main {
  position: relative;
  z-index: 5;

  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: flex-start;

  padding: 0;
  padding-top: 60px;
  margin: 0;
}

/* === GLASS PANEL CENTERED === */
.linktree-container {
  width: 90%;
  max-width: 440px;

  background: var(--lw-card);
  border: 1px solid var(--lw-border);
  padding: 2.2rem 2rem;

  border-radius: 24px;
  backdrop-filter: blur(18px) saturate(180%);
  text-align: center;

  box-shadow:
    0 0 30px rgba(66,226,255,0.20),
    inset 0 0 25px rgba(66,226,255,0.10);

  animation: fadeIn 1s ease forwards;
  margin: 0;              /* IMPORTANT */
  position: relative;
  top: 0;                 /* IMPORTANT */
  transform: translateY(0); /* IMPORTANT */
}


/* === AVATAR === */
.avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: auto;
}

.logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(66,226,255,0.7);
}

.avatar-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(66,226,255,0.5);
  animation: pulse 3s infinite alternate;
}

/* === TITLE === */
.neon-title {
  margin-top: 1.2rem;
  font-size: 1.8rem;

  background: linear-gradient(90deg, #39baff, #8fe8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow:
    0 0 10px #42e2ff,
    0 0 20px #42e2ff80;
}

.subtitle {
  opacity: 0.8;
  margin-bottom: 1.6rem;
  font-size: 0.95rem;
}

/* === LINKS === */
.links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.links a {
  padding: 1rem;
  border: 1px solid var(--lw-border);
  border-radius: 14px;
  background: rgba(20,40,60,0.45);
  backdrop-filter: blur(10px);

  text-decoration: none;
  color: var(--lw-text);
  font-weight: 700;
  font-size: 1.05rem;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  transition: 0.25s ease;
}

body.light .links a {
  background: rgba(255,255,255,0.55);
}

.links a:hover {
  transform: translateY(-3px);
  border-color: var(--lw-glow);
  box-shadow: 0 0 15px var(--lw-glow);
}

/* === ICONS === */
.links a i {
  font-size: 1.2rem;
}

/* === THEME BUTTON === */
#theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;

  width: 50px;
  height: 50px;
  border-radius: 50%;

  background: var(--lw-card);
  border: 1px solid var(--lw-border);
  backdrop-filter: blur(10px);
  color: var(--lw-text);
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;

  z-index: 20;
  transition: 0.25s ease;
}

#theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--lw-glow);
}

/* === FOOTER === */
footer {
  margin-top: 2rem;
  font-size: 0.85rem;
  opacity: 0.75;
  text-align: center;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  from { box-shadow: 0 0 20px rgba(66,226,255,0.4); }
  to   { box-shadow: 0 0 50px rgba(66,226,255,0.8); }
}

/* ============================================================
   VERSION MOBILE
   ============================================================ */
@media (max-width: 540px) {

  .linktree-container {
    padding: 1.6rem 1.4rem;
    margin-top: 20px;
    width: 94%;
    transform: scale(0.97);
  }

  .neon-title {
    font-size: 1.45rem;
  }

  .subtitle {
    font-size: 0.85rem;
  }

  .links a {
    font-size: 0.9rem;
    padding: 0.85rem;
  }

  #theme-toggle {
    width: 46px;
    height: 46px;
    top: 12px;
    right: 12px;
  }

  /* réduis la taille visuelle de la planète */
  #planet {
    transform: scale(0.65);
    transform-origin: bottom;
  }

  .avatar-wrapper {
    width: 95px;
    height: 95px;
  }
}
