/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* ================= NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: linear-gradient(90deg, #0a0f1c, #0d1326);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.nav-container {
  width: 94%;
  margin: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}

/* ================= BRAND ================= */
.brand-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}

.brand-main {
  font-size: 28px;
  font-weight: 700;
  color: #22c55e;
}

.brand-sub {
  font-size: 16px;
  color: #cbd5f5;
  letter-spacing: 2px;
}

/* ================= SEARCH ================= */
.nav-search-wrapper {
  position: relative;
  max-width: 550px;
  width: 100%;
  margin: auto;
}

.nav-search {
  display: flex;
  width: 100%;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

.nav-search input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  outline: none;
  font-size: 14px;
}

.nav-search button {
  padding: 12px 20px;
  border: none;
  background: #22c55e;
  color: #022c22;
  font-weight: 600;
  cursor: pointer;
}

.nav-search button:hover {
  background: #16a34a;
}

/* ================= SEARCH SUGGESTIONS ================= */
.suggestions-box {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ddd;
  z-index: 9999;
  display: none;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.suggestion-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
}

.suggestion-item:hover {
  background-color: #f3f3f3;
}

/* ================= MENU ================= */
.nav-links {
  display: flex;
  gap: 18px;
  overflow-x: auto;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
}

.nav-links a:hover {
  color: #22c55e;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #22c55e;
  bottom: -5px;
  left: 0;
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ================= NAV ACTIONS ================= */
.nav-actions {
  display: flex;
  align-items: center;
  margin-left: 16px;
}

/* ================= DESKTOP ================= */
@media (min-width: 1024px) {
  .nav-container {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    justify-content: flex-end;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .nav-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brand {
    text-align: center;
  }

  .nav-search-wrapper {
    max-width: 100%;
  }

  .nav-links {
    padding-top: 6px;
  }

  .brand-main {
    font-size: 22px;
  }

  .brand-sub {
    font-size: 12px;
    letter-spacing: 1px;
  }
}
