/* =====================
   Global Page Styling
   ===================== */
body {
  font-family: Arial, sans-serif;
  background-color: #0d1b2a;
  color: #f0f0f0;
  margin: 0;
}

/* =====================
   Main Layout
   ===================== */
.content {
  margin-left: 300px; /* space for sidebar */
  padding: 20px;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content h1 {
  text-align: center;
  margin-bottom: 30px;
}

/* =====================
   Sidebar
   ===================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background-color: #111322;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #2e3443; /* vertical divider */
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

/* Sidebar split: top 30%, bottom 70% */
.sidebar-top {
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-weight: bold;
  font-size: 24px;
  gap: 1px; /* for logo spacing */
  border-bottom: 1px solid #2e3443;
  padding-top: 50px;
}
.sidebar-logo {
  width: 250px;      /* adjust size as needed */
  height: auto;     /* keep aspect ratio */

}
.sidebar-bottom {
  flex: 0 0 70%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* buttons at top of bottom section */
  padding: 10px;
  gap: 10px;
}

/* Sidebar buttons */
.sidebar-bottom button {
  background: none;
  border: none;
  color: #f0f0f0;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  border-radius: 6px;
  transition: background 0.2s, transform 0.1s;
  font-weight: bold;
}

.sidebar-bottom button:hover {
  background-color: #415a77;
  transform: translateX(3px);
  box-shadow: 0 0 4px #2e3443;
}

.sidebar-bottom button.active {
  background-color: #0f2235;
  box-shadow: 0 0 4px #0d4d6a;
}

.sidebar-bottom button img {
  margin-right: 8px;
  border-radius: 6px;
  padding: 4px;
  transition: background 0.2s;
}

.sidebar-bottom button.active img {
  background-color: #009af3;
}

/* =====================
   Hamburger Menu
   ===================== */

.menu-toggle {
  display: none; /* hidden on desktop */
  width: 36px; /* fix width */
  height: 36px; /* fix height */
  font-size: 24px;
  color: white;
  background: #1b263b;
  padding: 0;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  line-height: 36px; /* vertically center the icon */
  transition: transform 0.3s ease;
}

/* =====================
   Top Right Cards
   ===================== */
.top-right-cards {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-bottom: 20px;
  width: 100%;
}

.top-box {
  background-color: #1b263b;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: bold;
  min-width: 130px;
  text-align: center;
}

/* =====================
   Server Grid
   ===================== */
#servers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1200px;
}

.server-card {
  background: #1e2a38;
  padding: 15px;
  border-radius: 10px;
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

/* Status colors */
.online {
  color: #4caf50;
  font-weight: bold;
}

.offline {
  color: #e74c3c;
  font-weight: bold;
}

/* Join button */
.join-btn {
  padding: 4px 8px;
  background-color: #00aaff;
  color: white;
  border-radius: 4px;
  text-decoration: none;
}

.join-btn:hover {
  background-color: #0077aa;
}

/* =====================
   Responsive
   ===================== */

/* Tablet */
@media (max-width: 1200px) {
  .content {
    margin-left: 0;
  }

  .sidebar {
    width: 180px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 10px;
    left: 100%; /* place just outside sidebar */
    margin-left: 10px; /* small gap */
  }
}

  .top-right-cards {
    top: 80px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  #servers {
    grid-template-columns: 1fr;
  }

  .top-right-cards {
    flex-direction: column;
  }

  /* Slide hamburger menu slightly outside sidebar */
  .menu-toggle {
    left: 10px;
  }
}
/* =====================
   Discord Info Note
   ===================== */
.server-note {
  background-color: #1b263b;
  color: #f0f0f0;
  border-left: 4px solid #009af3;
  padding: 12px 18px;
  border-radius: 8px;
  margin: 20px 0;
  max-width: 1200px;
  width: 100%;
  text-align: center;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.discord-icon {
  width: 24px;
  height: 24px;
}

.discord-link {
  color: #7289da;
  font-weight: bold;
  text-decoration: none;
}

.discord-link:hover {
  text-decoration: underline;
}