* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #0f172a;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding-bottom: 50px; /* ✅ space at bottom */
}

/* Header */
.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: #1e293b;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo span {
  font-size: 22px;
  font-weight: 600;
  color: #38bdf8;
}

.menu {
  display: flex;
  gap: 25px;
}

.menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.menu a:hover {
  color: #38bdf8;
}

.theme-toggle {
  cursor: pointer;
  font-size: 20px;
  color: #38bdf8;
}

/* 🎮 Updated Games Section */
.updated-games {
  width: 90%;
  margin-top: 50px;
}

.games-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.view-all {
  background: #22c55e;
  border: none;
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.view-all:hover {
  background: #16a34a;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

/* Game Card */
.game-card {
  background: #1e293b;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px;
  position: relative;
  border-left: 5px solid #22c55e50;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  transition: transform 0.3s;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-5px);
}

.game-image {
  position: relative;
}

.game-image img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
}

.tag {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 8px;
}

.game-info h3 {
  font-size: 16px;
  color: #38bdf8;
}

.small-text {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}

.mod-text {
  color: #22c55e;
  margin-left: 8px;
  font-weight: 600;
}

.status.updated {
  position: absolute;
  top: 10px;
  right: 15px;
  background: #14532d;
  color: #a7f3d0;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 10px;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
    padding: 15px 20px;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .updated-games {
    width: 95%;
  }
}

/* === Roblox Dropdown Menu === */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: none;
  border: none;
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s;
}

.dropbtn:hover {
  color: #38bdf8;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 35px;
  left: 0;
  background-color: #1e293b;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  min-width: 150px;
  z-index: 100;
}

.dropdown-content a {
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  transition: background 0.3s;
}

.dropdown-content a:hover {
  background: #38bdf8;
  color: #0f172a;
}

/* Show dropdown on hover (desktop) */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Show dropdown on mobile (when .active is added via JS) */
.dropdown.active .dropdown-content {
  display: block;
}