/*************************************************************
  GENERAL PAGE LAYOUT
**************************************************************/
.server-details-container {
  background: linear-gradient(180deg, #1a0f23 0%, #0d0614 100%);
  padding: 40px 20px;
  color: #d6d6d6;
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
}

h1, h2, h3 {
  color: #ffffff;
  font-weight: 600;
}

/*************************************************************
  TOP HERO SECTION
**************************************************************/
.server-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  background: linear-gradient(135deg, rgba(25, 13, 34, 0.95) 0%, rgba(18, 8, 24, 0.95) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 225, 255, 0.2);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 200, 255, 0.15),
              0 0 60px rgba(0, 200, 255, 0.05);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
}

.server-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 225, 255, 0.1), transparent);
  animation: shine 3s infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shine {
  to {
    left: 200%;
  }
}

/* Banner */
.server-banner {
  position: relative;
  width: auto;
}

.server-banner img {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  border: 2px solid #00cfff;
  box-shadow: 0 0 25px rgba(0, 225, 255, 0.3),
              0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.server-banner img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 35px rgba(0, 225, 255, 0.5),
              0 8px 30px rgba(0, 0, 0, 0.5);
}

/*************************************************************
  SERVER HEADER INFO
**************************************************************/
.server-header-info {
  flex: 1;
  min-width: 300px;
}

/* Title */
.server-title {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 0 15px rgba(0, 234, 255, 0.6),
               0 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.8s ease-out 0.2s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/*************************************************************
  BADGES (Gamemode, Version, Region)
**************************************************************/
.badges, .server-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  animation: fadeIn 0.8s ease-out 0.3s both;
}

.badge {
  background: linear-gradient(135deg, rgba(0, 230, 255, 0.12) 0%, rgba(0, 180, 255, 0.08) 100%);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #00eaff;
  border: 1px solid rgba(0, 230, 255, 0.4);
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 234, 255, 0.3);
  border-color: rgba(0, 234, 255, 0.6);
}

.badge:hover::before {
  left: 100%;
}

/*************************************************************
  IP BOX + BUTTONS
**************************************************************/
.server-actions {
  margin: 20px 0;
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.server-ip-box {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(18, 8, 24, 0.95) 0%, rgba(12, 5, 15, 0.95) 100%);
  border: 1px solid rgba(0, 225, 255, 0.3);
  padding: 12px 18px;
  border-radius: 10px;
  width: max-content;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.server-ip-box:hover {
  border-color: rgba(0, 225, 255, 0.5);
  box-shadow: 0 4px 20px rgba(0, 225, 255, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ip-label {
  font-weight: 600;
  color: #00eaff;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

#server-ip {
  font-family: 'Courier New', monospace;
  color: #fff;
  font-weight: 500;
}

.copy-ip-btn {
  background: linear-gradient(135deg, #00cfff 0%, #00a8ff 100%);
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  color: #000;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 207, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.copy-ip-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.copy-ip-btn:hover {
  background: linear-gradient(135deg, #00f0ff 0%, #00cfff 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.5);
}

.copy-ip-btn:active::before {
  width: 300px;
  height: 300px;
}

.copy-ip-btn.copied {
  background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
}

/*************************************************************
  VOTE BUTTON
**************************************************************/
.vote-btn {
  display: inline-block;
  background: linear-gradient(135deg, #00cfff 0%, #0088ff 100%);
  padding: 14px 32px;
  border-radius: 10px;
  color: #000;
  text-decoration: none;
  margin-top: 20px;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 4px 20px rgba(0, 225, 255, 0.4),
              0 0 40px rgba(0, 225, 255, 0.2);
  transition: all 0.3s ease;
  width: fit-content;
  position: relative;
  overflow: hidden;
}

.vote-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.vote-btn:hover {
  background: linear-gradient(135deg, #00f0ff 0%, #00a8ff 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 250, 255, 0.6),
              0 0 50px rgba(0, 250, 255, 0.3);
}

.vote-btn:hover::before {
  left: 100%;
}

.vote-btn:active {
  transform: translateY(-1px);
}

/*************************************************************
  QUICK STATS
**************************************************************/
.server-stats {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  animation: fadeIn 0.8s ease-out 0.5s both;
}

.stat {
  background: linear-gradient(135deg, rgba(18, 8, 24, 0.8) 0%, rgba(12, 5, 15, 0.8) 100%);
  backdrop-filter: blur(5px);
  padding: 16px 22px;
  border-radius: 12px;
  border: 1px solid rgba(0, 225, 255, 0.25);
  text-align: center;
  min-width: 110px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 225, 255, 0.5);
  box-shadow: 0 8px 25px rgba(0, 225, 255, 0.2),
              0 0 30px rgba(0, 225, 255, 0.1);
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  color: #00f0ff;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: #b7b7b7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.website-link {
  color: #00f0ff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.website-link:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
  transform: scale(1.05);
}

/*************************************************************
  ABOUT SECTION
**************************************************************/
.server-about {
  margin-top: 50px;
  background: linear-gradient(135deg, rgba(25, 13, 34, 0.95) 0%, rgba(18, 8, 24, 0.95) 100%);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(0, 225, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.server-about h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 234, 255, 0.4);
}

.server-about p {
  color: #cfcfcf;
  line-height: 1.8;
  font-size: 1.05rem;
}

/*************************************************************
  RELATED SERVERS
**************************************************************/
.related-servers {
  margin-top: 60px;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.related-servers h2 {
  margin-bottom: 25px;
  font-size: 1.8rem;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 234, 255, 0.4);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.related-card {
  background: linear-gradient(135deg, rgba(18, 8, 24, 0.9) 0%, rgba(12, 5, 15, 0.9) 100%);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 225, 255, 0.2);
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.related-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00cfff, #0088ff, #00cfff);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.related-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 225, 255, 0.5);
  box-shadow: 0 12px 35px rgba(0, 225, 255, 0.3),
              0 0 50px rgba(0, 225, 255, 0.15);
}

.related-card:hover::before {
  transform: scaleX(1);
}

.related-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
  transition: transform 0.4s ease;
  border: 1px solid rgba(0, 225, 255, 0.2);
}

.related-card:hover img {
  transform: scale(1.05);
}

.related-card h3 {
  color: #fff;
  margin-bottom: 8px;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.related-card:hover h3 {
  color: #00f0ff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.related-card span {
  color: #00eaff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/*************************************************************
  RESPONSIVE
**************************************************************/
@media (max-width: 768px) {
  .server-hero {
    flex-direction: column;
  }

  .server-banner img {
    max-width: 100%;
  }

  .server-title {
    font-size: 1.8rem;
  }

  .server-ip-box {
    width: 100%;
    justify-content: space-between;
  }

  .vote-btn {
    width: 100%;
    text-align: center;
  }

  .server-stats {
    justify-content: center;
  }

  .stat {
    flex: 1;
    min-width: 90px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .server-details-container {
    padding: 20px 10px;
  }

  .server-hero {
    padding: 20px;
  }

  .server-title {
    font-size: 1.5rem;
  }

  .server-about {
    padding: 20px;
  }
}