/* ── Reset do body para esta página ── */
body {
  display: block !important;
  justify-content: unset !important;
  align-items: unset !important;
  height: auto !important;
}

/* ── Espaço para o header fixo ── */
main {
  padding-top: 80px;
}

/* ── Seção ── */
.servers-section {
  padding: 40px 50px 60px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

/* ── Título animado ── */
.servers-title {
  font-size: 50px;
  text-align: center;
  margin-bottom: 30px;
  background: linear-gradient(
    90deg,
    #fff 0,
    #d3d3d3 25%,
    #181818 50%,
    #c7c7c7 75%,
    #292929 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: 5s linear infinite rgbAnimation;
}

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

/* ── Grid ── */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 0;
  margin: 0 auto;
  max-width: 1300px;
  width: 100%;
  justify-items: center;
}

/* ── Card ── */
.server-card {
  background: transparent;
  border-radius: 15px;
  padding: 20px;
  width: 380px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(50px);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: glowBorder 2s ease-in-out infinite;
}

.server-card:hover {
  transform: translateY(-10px);
}

.server-card.animate {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

@keyframes glowBorder {
  0%, 100% {
    box-shadow: 0 5px 15px rgba(0,0,0,0.3), 0 0 0 rgba(88,101,242,0);
  }
  50% {
    box-shadow: 0 5px 25px rgba(0,0,0,0.5), 0 0 20px rgba(88,101,242,0.2);
  }
}

/* ── Banner ── */
.server-banner {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 15px;
  display: block;
  transition: filter 0.3s ease;
}

/* ── Ícone circular sobreposto ── */
.server-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  border: 3px solid #111;
  background: #111;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}

/* ── Info ── */
.server-info {
  margin-top: 55px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.server-info h3 {
  font-size: 22px;
  margin: 6px 0 4px;
  color: #fff;
  font-weight: 700;
}

/* linha de membros */
.stats-line {
  font-size: 15px;
  color: #b9b9b9;
  margin: 4px 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.member-count {
  color: #d0d0d0;
}

/* ponto verde pulsante */
.member-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background-color: lime;
  border-radius: 50%;
  flex-shrink: 0;
  animation: glow 1.5s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px #00ff00, 0 0 10px lime; }
  50%       { box-shadow: 0 0 10px #00ff00, 0 0 20px lime; }
}

/* subtítulo */
.server-subtitle {
  font-size: 13px;
  color: #a0a0a0;
  max-width: 90%;
}

.server-subtitle.single-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin: 0;
  line-height: 1;
}

/* ── Botão Entrar ── */
.join-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px auto 0;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(45deg, #5865f2, #7289da);
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(88,101,242,0.5), 0 0 15px rgba(88,101,242,0.3);
  position: relative;
  overflow: hidden;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.join-btn::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: 0;
}

.join-btn:hover {
  background: linear-gradient(45deg, #4752c4, #5d73c0);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(88,101,242,0.7), 0 0 20px rgba(88,101,242,0.4);
  animation: pulse 1.5s ease-in-out infinite;
}

.join-btn:hover::after {
  width: 200px;
  height: 200px;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(88,101,242,0.7), 0 0 20px rgba(88,101,242,0.4); }
  50%       { box-shadow: 0 6px 20px rgba(88,101,242,0.9), 0 0 30px rgba(88,101,242,0.6); }
}

/* ── Header ── */
header.background-opaque {
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}

/* ── Responsivo ── */
@media (max-width: 1200px) {
  .servers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .servers-grid  { grid-template-columns: 1fr; }
  .server-card   { width: 280px; }
  .servers-title { font-size: 36px; }
  .banner-image  { height: 80px; }
  .server-icon   { width: 80px; height: 80px; top: 50px; }
  .server-info   { margin-top: 42px; }
}
