@import url('https://fonts.googleapis.com/css2?family=Electrolize&display=swap');

html,
body {
  font-family: 'Electrolize', sans-serif;
}

.navbar {
  background-color: black;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  max-width: 100%;
}

.navbar-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  padding: 0 50px;
  gap: 14px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.logo {
  color: #ff4646;
  font-size: 2rem;
  line-height: 1;
}

.menu-container {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.menu-list {
  display: flex;
  list-style: none;
  column-gap: 30px;
  padding: 0;
  margin: 0;
}

.menu-list-item a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.menu-list-item a:hover,
.menu-list-item.active a {
  color: #ff4646;
}

.profile-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.navbar-search {
  position: relative;
  width: min(230px, 100%);
  max-width: 100%;
  margin-left: auto;
  margin-right: 0;
  flex: 0 1 230px;
}

.navbar-search-input {
  width: 100%;
  box-sizing: border-box;
  background: #111;
  color: #fff;
  border: 1px solid #b30000;
  border-radius: 8px;
  padding: 9px 12px;
  outline: none;
  font-family: 'Electrolize', sans-serif;
}

.navbar-search-input::placeholder {
  color: #aaa;
}

.navbar-search-input:focus {
  border-color: #ff4646;
  box-shadow: 0 0 0 2px rgba(255, 70, 70, 0.25);
}

.navbar-search-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #101010;
  border: 1px solid rgba(255, 70, 70, 0.45);
  border-radius: 8px;
  overflow: hidden;
  z-index: 1200;
  max-height: 260px;
  overflow-y: auto;
}

.navbar-search-suggestion-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: #fff;
  border: 0;
  padding: 10px 12px;
  cursor: pointer;
  font-family: 'Electrolize', sans-serif;
}

.navbar-search-suggestion-item:hover {
  background: rgba(255, 70, 70, 0.18);
  color: #ff8f8f;
}

.auth-button {
  display: inline-block;
  background-color: #f00;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border: 2px solid #b30000;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.auth-button:hover {
  background-color: #b30000;
  transform: translateY(-2px);
}

.logout-button {
  background-color: #333;
  border-color: #222;
}

.logout-button:hover {
  background-color: #444;
}

@media only screen and (max-width: 1100px) {
  .navbar-wrapper {
    padding: 0 20px;
  }

  .menu-list {
    column-gap: 16px;
  }

  .menu-list-item a {
    font-size: 0.95rem;
  }

  .navbar-search {
    width: min(190px, 100%);
    max-width: 100%;
    flex-basis: 190px;
  }
}

@media only screen and (max-width: 820px) {
  .navbar-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
    padding: 10px 16px;
  }

  .menu-container {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .menu-list {
    min-width: max-content;
    padding-bottom: 4px;
  }

  .navbar-search {
    order: 3;
    width: 100%;
    max-width: 520px;
    margin: 0;
    flex: 1 1 100%;
  }

  .profile-container {
    order: 4;
  }
}

