.server-list {
  max-width: 1000px;
  margin: 25px auto;
  padding: 20px;
  color: #fff;
}

.server-list h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #66ff99; /* accent color */
}

/* --- Card layout: grid with 3 columns --- */
.server-card {
  display: grid;
  grid-template-columns: auto 1fr auto; /* logo | info | stats */
  align-items: center;
  column-gap: 16px;

  background: rgba(20, 20, 20, 0.8);
  border: 1px solid #222;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.server-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

/* Logo column */
.server-logo {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
}
.server-logo img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #333;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  display: block;
}

/* Info column */
.server-info {
  min-width: 0; /* allows wrapping instead of overflow */
}
.server-info h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  color: #00e6e6;
  line-height: 1.2;
}
.server-info .ip {
  margin: 0 0 8px;
  font-family: monospace;
  font-size: 0.95rem;
  color: #bbb;

  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.server-info .desc {
  margin: 0;
  font-size: 0.95rem;
  color: #ddd;
  line-height: 1.4;
}

/* Copy IP button */
.copy-ip {
  appearance: none;
  border: 0;
  padding: 4px 8px;
  border-radius: 6px;
  background: #222;
  color: #ddd;
  font-size: 0.85rem;
  cursor: pointer;
}
.copy-ip:hover {
  background: #2a2a2a;
}

/* Stats column */
.server-stats {
  text-align: right;
  min-width: 130px; /* keeps width consistent across cards */
}
.server-stats p {
  margin: 0;
  font-size: 0.9rem;
  color: #aaa;
}
.server-stats .count {
  display: inline-block;
  margin-top: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #66ff99;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 10px;
  border-radius: 8px;
}

/* --- Responsive: stack stats under info on small screens --- */
@media (max-width: 640px) {
  .server-card {
    grid-template-columns: auto 1fr;
    row-gap: 12px;
  }
  .server-stats {
    grid-column: 1 / -1;
    text-align: left;
  }
}


/* --- Top 10 should look the same as Featured --- */
.top10-card {
  display: grid;
  grid-template-columns: auto auto 1fr auto; /* badge | logo | info | stats */
  align-items: center;
  column-gap: 16px;
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid #222;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.top10-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

/* Rank badge matches logo sizing, but small width */
.rank-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  border: 1px solid #222;
  font-weight: 700;
  font-size: 0.9rem;
  color: #66ff99;
}

/* Ensure logos remain same size as Featured */
.top10-card .server-logo img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #333;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  display: block;
}

.sort-btn {
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid #222;
  color: #d6fbe6;
  font-weight: 600;
  text-transform: capitalize;
  cursor: pointer;
  transition: all 0.15s ease;
  align-items: center;
}

.btn.vote-btn {
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid #222;
  color: #d6fbe6;
  font-weight: 600;
  text-transform: capitalize;
  cursor: pointer;
  transition: all 0.15s ease;
  align-items: center;
}