/* ================= PRIVATE SERVERS STYLES ================= */

body {
  background: #1a1a1a !important;
}

.page-wrapper {
  background: transparent;
  min-height: 100vh;
}

/* ================= SUB NAV (identical to middleman page) ================= */
.sub-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  background: #2a2a2a;
  padding: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.sub-nav-link {
  padding: 15px 40px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
  position: relative;
}

.sub-nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.03);
}

.sub-nav-link.active {
  color: white;
  background: linear-gradient(to bottom, rgba(90, 0, 0, 0.3), rgba(60, 0, 0, 0.5));
  border-bottom-color: #5a0000;
}

@media (max-width: 600px) {
  .sub-nav {
    flex-wrap: wrap;
  }
  .sub-nav-link {
    flex: 1;
    min-width: 100px;
    text-align: center;
    padding: 12px 10px;
    font-size: 13px;
  }
}

/* ================= HEADER ================= */
.ps-header {
  text-align: center;
  padding: 50px 20px 40px;
}

.ps-header h1 {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 15px;
  color: white;
}

.ps-header p {
  font-size: 17px;
  opacity: 0.85;
  color: white;
}

/* ================= LOADING STATE ================= */
.loading-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 80px 20px;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #ff0000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-state p {
  font-size: 16px;
  opacity: 0.7;
  color: white;
}

/* ================= SERVERS GRID ================= */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  padding: 20px 40px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ================= SERVER CARDS ================= */
.server-card {
  background: linear-gradient(to bottom, #2a2a2a, #1c1c1c);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.server-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.25);
}

/* ================= SERVER TITLE ================= */
.server-title {
  font-size: 18px;
  font-weight: bold;
  color: white;
  text-align: center;
  padding: 18px 20px 14px;
  margin: 0;
}

/* ================= SERVER IMAGE ================= */
.server-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #111;
}

/* ================= JOIN BUTTON ================= */
.join-btn {
  width: 100%;
  background: linear-gradient(135deg, #4a0000, #6a0000);
  color: white;
  border: none;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  box-shadow: 0 5px 16px rgba(255, 0, 0, 0.2);
  display: block;
}

.join-btn:hover {
  background: linear-gradient(135deg, #6a0000, #8a0000);
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.3);
}



/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .servers-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    padding: 20px;
  }

  .ps-header h1 {
    font-size: 32px;
  }
}

@media (max-width: 600px) {
  .servers-grid {
    grid-template-columns: 1fr;
    padding: 15px;
  }
}

