/* Optimized Minecraft-Themed Stylesheet
   TailwindCSS is already handling layout/spacing.
   This file now focuses on custom visuals + effects.
========================================================= */

/* GLOBAL ------------------------------------------------*/
body {
  font-family: "Minecraft", "Press Start 2P", sans-serif;
  background-color: #0f0f0f;
  color: #e2e2e2;
  image-rendering: pixelated;
}

/* Dark vignette overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.7));
  pointer-events: none;
  z-index: -1;
}

.hero-bg {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.85)),
    url("assets/img/minecraft-bg.jpg") center/cover no-repeat;
  filter: saturate(1.2);
}

/* ANIMATIONS -------------------------------------------*/
.fade-in {
  animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pixelGlow {
  0% {
    box-shadow: 0 0 5px #4de06f55;
  }
  100% {
    box-shadow: 0 0 12px #4de06fcc;
  }
}

/* BUTTONS ----------------------------------------------*/
.mc-button,
.dc-button {
  border-width: 3px;
  padding: 12px 24px;
  color: #fff;
  font-family: "Minecraft", sans-serif;
  font-size: 20px;
  image-rendering: pixelated;
  text-shadow: 2px 2px #000;
  transition: all 0.12s ease;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.4);
}

.mc-button {
  background: linear-gradient(to bottom, #6bd96b, #4ca84c);
  border-color: #2f6b2f;
  box-shadow: 0 6px 0 #2f6b2f, 0 8px 15px rgba(0, 0, 0, 0.4);
}

.mc-button:hover {
  transform: translateY(2px);
  background: linear-gradient(to bottom, #7cf385, #59be59);
  box-shadow: 0 4px 0 #2f6b2f, 0 6px 12px rgba(0, 0, 0, 0.3);
}

.mc-button:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 #2f6b2f;
}

.dc-button {
  background: linear-gradient(to bottom, #5865f2, #4e59d4);
  border-color: #302f6b;
  box-shadow: 0 6px 0 #3f2f6b, 0 8px 15px rgba(0, 0, 0, 0.4);
}

.dc-button:hover {
  transform: translateY(2px);
  background: #7958f2;
  box-shadow: 0 4px 0 #434ec7, 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* FEATURE CARDS ----------------------------------------*/
.feature-card {
  background: rgba(20, 20, 20, 0.85);
  border: 3px solid #3a3a3a;
  padding: 18px;
  transition: all 0.2s ease;
  image-rendering: pixelated;
}

.feature-card:hover {
  border-color: #6bd96b;
  transform: translateY(-6px);
  animation: pixelGlow 0.6s alternate infinite;
}

/* CAROUSEL ---------------------------------------------*/
.carousel-slide {
  transition: opacity 0.6s ease;
  pointer-events: none; /* default off */
}

.carousel-slide img {
  user-select: none;
}

/* SERVER STATUS -----------------------------------------*/
.status-online {
  color: #6bd96b;
}
.status-offline {
  color: #d9534f;
}

/* SERVER IP BOX -----------------------------------------*/
.server-ip-box {
  background: rgba(25, 25, 25, 0.85);
  border: 3px solid #6bd96b;
  padding: 10px 16px;
  color: white;
  image-rendering: pixelated;
  text-shadow: 2px 2px #000;
}

/* LOGO ---------------------------------------------------*/
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 54px;
  image-rendering: pixelated;
}

@media (max-width: 768px) {
  .logo-img {
    height: 40px;
  }
}

/* PLAYER LIST SCROLLING ---------------------------------*/
@keyframes scrollPlayers {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(calc(-100% + 8rem));
  }
}

.player-list-scrolling {
  animation: scrollPlayers 6s linear infinite;
}

.player-list-paused {
  animation-play-state: paused;
}

#player-list-container:hover #player-list-scroller {
  animation-play-state: paused;
}

.player-item {
  padding: 4px 0;
  transition: all 0.15s ease;
}

.player-item:hover {
  color: white;
  transform: scale(1.06);
  text-shadow: 2px 2px #000;
}

/* PARTICLES ----------------------------------------------*/
.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #6bd96b;
  border-radius: 2px;
  opacity: 0;
  box-shadow: 0 0 8px #6bd96b88;
  image-rendering: pixelated;
}

/* AUTOMATIC FONT SCALING ---------------------------------*/
/* default (mobile) */
html {
  font-size: 14px;
}

/* desktop: increase base font-size to 1.25x */
@media (min-width: 769px) {
  html {
    font-size: 20px;
  } /* 14 * 1.25 = 17.5 */
}
