/* ==========================================================
   MINECO STUDIOS — SERVERS
========================================================== */

.servers-page {
  min-height: 100vh;
}

.servers-hero {
  padding: 150px 24px 54px;
  text-align: center;
}

.servers-hero-inner {
  width: min(820px, 100%);
  margin: 0 auto;
}

.servers-kicker {
  margin-bottom: 10px;
  color: #7f8b8b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.servers-hero h1 {
  margin: 0 0 18px;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.servers-hero h1 span {
  color: #03fcf0;
  text-shadow: 0 0 18px rgba(3, 252, 240, 0.48);
}

.servers-hero p:last-child {
  max-width: 720px;
  margin: 0 auto;
  color: #c7c7c7;
  font-size: 1.02rem;
  line-height: 1.7;
}

.servers-section {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 8px 0 100px;
}

.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 24px;
}

.server-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 370px;
  border: 1px solid rgba(3, 252, 240, 0.14);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(13, 18, 18, 0.96), rgba(7, 8, 8, 0.98));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.server-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, #03fcf0, transparent);
  opacity: 0.55;
  z-index: 2;
}

.server-card:hover {
  transform: translateY(-5px);
  border-color: rgba(3, 252, 240, 0.32);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42), 0 0 28px rgba(3, 252, 240, 0.08);
}

.server-art {
  position: relative;
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(3, 252, 240, 0.13), transparent 62%),
    #0a0c0c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.server-art img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.server-art-placeholder {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(3, 252, 240, 0.25);
  border-radius: 18px;
  background: rgba(3, 252, 240, 0.055);
  color: #03fcf0;
  font-size: 1.75rem;
  box-shadow: 0 0 28px rgba(3, 252, 240, 0.08);
}

.server-featured {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 10px;
  border: 1px solid rgba(3, 252, 240, 0.28);
  border-radius: 999px;
  background: rgba(5, 10, 10, 0.84);
  color: #03fcf0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.server-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.server-card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.server-card h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
}

.server-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.server-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.server-status.online { color: #48e48c; background: rgba(72, 228, 140, 0.07); }
.server-status.offline { color: #9b9b9b; background: rgba(155, 155, 155, 0.06); }
.server-status.maintenance { color: #f6c454; background: rgba(246, 196, 84, 0.07); }
.server-status.coming-soon { color: #03fcf0; background: rgba(3, 252, 240, 0.07); }

.server-game-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.server-chip,
.server-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(3, 252, 240, 0.16);
  border-radius: 999px;
  background: rgba(3, 252, 240, 0.045);
  color: #bfe9e7;
  font-size: 0.72rem;
  font-weight: 700;
}

.server-description {
  margin: 0 0 20px;
  color: #bdbdbd;
  font-size: 0.94rem;
  line-height: 1.65;
}

.server-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  margin-bottom: 18px;
}

.server-meta-item {
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
}

.server-meta-value {
  display: block;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}

.server-meta-label {
  display: block;
  margin-top: 2px;
  color: #777;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.server-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -4px 0 18px;
}

.server-tag {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
  color: #8f9a9a;
  font-size: 0.67rem;
}

.server-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.server-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: #ddd;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.server-action:hover {
  transform: translateY(-2px);
  border-color: rgba(3, 252, 240, 0.4);
  color: #03fcf0;
}

.server-action.primary {
  border-color: #03fcf0;
  background: #03fcf0;
  color: #050505;
}

.server-action.primary:hover {
  background: #02e0d0;
  color: #050505;
}

.servers-empty,
.servers-error,
.servers-loading {
  grid-column: 1 / -1;
  padding: 70px 20px;
  color: #9e9e9e;
  text-align: center;
}

.servers-loading i,
.servers-empty i,
.servers-error i {
  display: block;
  margin-bottom: 14px;
  color: #03fcf0;
  font-size: 2rem;
}

@media (max-width: 760px) {
  .servers-hero {
    padding: 112px 18px 40px;
  }

  .servers-section {
    width: min(100% - 28px, 1240px);
    padding-bottom: 72px;
  }

  .server-card-topline {
    flex-direction: column;
  }

  .server-meta {
    grid-template-columns: 1fr;
  }

  .server-actions {
    flex-direction: column;
  }

  .server-action {
    width: 100%;
  }
}
