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

/* Fond mosaïque avec images Minecraft en répétition */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background:
    url('https://static.wikia.nocookie.net/minecraft_gamepedia/images/d/d3/Grass_Block.png/revision/latest/scale-to-width-down/64?cb=20200818101141') repeat,
    url('https://static.wikia.nocookie.net/minecraft_gamepedia/images/3/3c/Stone.png/revision/latest/scale-to-width-down/64?cb=20200818100723') repeat,
    url('https://static.wikia.nocookie.net/minecraft_gamepedia/images/7/7b/Dirt.png/revision/latest/scale-to-width-down/64?cb=20200818100903') repeat;
  background-size: 64px 64px;
  background-blend-mode: lighten;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #eee;
}

/* Overlay fondu sombre pour lisibilité */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(46,26,74,0.9), rgba(62,32,122,0.9), rgba(108,49,163,0.9));
  pointer-events: none;
  z-index: 0;
}

/* Contenu au-dessus */
header, main, footer {
  position: relative;
  z-index: 1;
}

header {
  padding: 80px 20px 40px;
  text-align: center;
}

header h1 {
  font-weight: 700;
  font-size: 3.5rem;
  margin: 0 0 10px;
  color: #ff49a9;
  text-shadow: 0 0 10px #ff49a9aa;
}

header p {
  font-weight: 400;
  font-size: 1.3rem;
  color: #d9c1f7dd;
  margin: 0;
}

main {
  flex-grow: 1;
  padding: 0 20px 60px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

main h2 {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 25px;
  color: #f3cdf7;
  text-shadow: 0 0 6px #ff49a9cc;
}

.download-btn {
  display: inline-block;
  background: linear-gradient(270deg, #ff49a9, #7f5af0, #ff49a9);
  background-size: 600% 600%;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  padding: 20px 60px;
  border-radius: 50px;
  box-shadow: 0 6px 15px #ff49a9aa;
  text-decoration: none;
  user-select: none;
  animation: gradientShift 8s ease infinite;
  transition: box-shadow 0.3s ease;
  cursor: pointer;
}
.download-btn:hover {
  box-shadow: 0 8px 30px #ff49a9ff;
  animation-play-state: paused;
}

@keyframes gradientShift {
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}

.server-ip {
  margin-top: 50px;
  font-size: 1.3rem;
  background: #4c2e86cc;
  padding: 20px 30px;
  border-radius: 25px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  user-select: all;
  cursor: pointer;
  box-shadow: 0 0 15px #7f5af0cc;
  transition: background-color 0.3s ease;
}
.server-ip:hover {
  background: #7f5af0ff;
  box-shadow: 0 0 25px #ff49a9dd;
  color: white;
}

footer {
  background: #2e1a4a;
  color: #d9c1f7aa;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  box-shadow: inset 0 1px 2px #ff49a9aa;
}

/* Responsive */
@media (max-width: 500px) {
  header h1 {
    font-size: 2.5rem;
  }
  main h2 {
    font-size: 1.5rem;
  }
  .download-btn {
    width: 100%;
    padding: 18px 0;
    font-size: 1.2rem;
  }
  .server-ip {
    font-size: 1.1rem;
    padding: 15px 20px;
  }
}

/* Logo en haut, centré, avec une taille adaptée */
.logo {
  display: block;
  margin: 0 auto 25px;
  width: 250px;
  height: auto;
  filter: drop-shadow(0 0 5px #ff49a9cc);
}

.sidebar-status {
  position: fixed;
  top: 100px;
  right: 20px;
  width: 250px;
  background: #2d0a4f;
  border-radius: 20px;
  padding: 20px;
  z-index: 10;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 0 20px rgba(194, 72, 255, 0.5);
}

.sidebar-status strong {
  color: #ff5aa1;
  font-weight: 700;
}

.status-line {
  margin-bottom: 10px;
}

.player-entry {
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.player-entry img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 8px #ff5aa177;
}

.player-entry span {
  font-weight: 500;
  font-size: 1.05rem;
}
