/* Import shared/global styles (avoids duplication) */
@import "global.css";

/* Server Logo */
.server-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 25px #00aaff, 0 0 40px #ff00ff;
  margin-bottom: 25px;
  animation: glowPulse 2s infinite alternate;
}

/* Modern Glassmorphism IP Box (single definition, includes bottom spacing) */
.server-ip-box {
  display: flex;
  align-items: center;
  width: 360px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* base soft shadow + colored neon glow */
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.1),
    0 0 18px rgba(0, 170, 255, 0.18),
    0 0 30px rgba(255, 0, 255, 0.12);
  transition: all 0.3s ease;
  margin-bottom: 24px; /* space before the button */
  /* constant subtle pulsing glow */
  animation: barGlow 3s infinite ease-in-out;
}
.server-ip-box:hover {
  /* stronger glow while hovered */
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.15),
    0 0 40px rgba(0, 255, 255, 0.35),
    0 0 70px rgba(255, 102, 255, 0.30);
  transform: translateY(-2px);
  /* speed up the glow animation on hover */
  animation-duration: 1.2s;
}

/* IP Input Field (fixed padding) */
#server-ip {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1.3rem;
  text-align: center;
  cursor: default;
  user-select: all;
  letter-spacing: 0.5px;
  padding: 0 3px;
  text-shadow: 0 0 6px rgba(0, 170, 255, 0.7), 0 0 8px rgba(255, 0, 255, 0.7);
}

/* Copy Icon Button */
#copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  margin-left: 10px;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
#copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
#copy-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(90deg, #00aaff, #ff00ff);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 12px;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}
.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px #ff00ff, 0 0 50px #00aaff;
}

/* Navigation */
.nav {
  margin: 30px 0;
}
.nav a {
  margin: 0 20px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  text-shadow: 0 0 10px #00aaff, 0 0 20px #ff00ff;
  transition: 0.3s;
}
.nav a:hover {
  color: #ff66ff;
  text-shadow: 0 0 20px #ff00ff, 0 0 40px #00aaff;
}

/* Footer */
body {
  background-image: url(Server_BG.png);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: rgba(0, 0, 0, 0.5);
  background-blend-mode: darken;
  color: #fff;
  text-align: center;
  overflow-x: hidden;
  padding-bottom: 90px; /* reserve space for fixed footer */
}

/* ensure the header center column layout so IP box stays centered */
.middle-screen {
  display: flex;
  flex-direction: column;
  justify-content: center; /* center vertically */
  align-items: center;
  gap: 16px;
  min-height: calc(100vh - 180px); /* slightly smaller so content sits a bit higher */
  padding: 28px 20px; /* reduced vertical padding to move content up */
  position: relative; /* ensure it sits above the leaves overlay */
  z-index: 2;
}

/* small descriptive paragraph under the IP box */
.server-description {
  max-width: 760px;
  color: #ddd;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  margin: 0 12px;
}

/* share/social links */
.socials {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 6px;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  padding: 8px 12px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.social svg { width: 18px; height: 18px; }
.social:hover { transform: translateY(-4px); box-shadow: 0 6px 18px rgba(0,170,255,0.12); color: #ff66ff; }
