/*LOGIN ICON BUTTON*/

.login {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
  text-decoration: none;
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ad1c1d;
  color: #000;
  border: none;
  border-radius: 50%;
  width: fit-content;
  height: fit-content;
  font-size: 30px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.login-btn:hover {
  background-color: #70393b;
  transform: scale(1.3);
}

.login-btn .material-symbols-outlined {
  font-size: 48px;
}

/*NAVBAR*/
nav {
  height: 60px;
  background-color: var(--color-1);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1000;
}

/* Hide the checkbox used for sidebar toggle */
#sidebar-active {
  display: none;
}

/*MENU (OPEN) ICON*/
.open-sidebar-button {
  position: absolute;
  top: 15px;
  left: 20px;
  cursor: pointer;
  z-index: 1001;
}

.open-sidebar-button .material-symbols-outlined {
  font-size: 36px;
  color: #ad1c1d;
  transition: transform 0.3s, color 0.3s;
}

.open-sidebar-button:hover .material-symbols-outlined {
  color: #670aa4;
  transform: scale(1.5);
}

/*SIDEBAR*/
.links-container {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100vh;
  background-color: #150303;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 80px;
  gap: 20px;
  transition: left 0.3s ease;
  z-index: 1000;
}

/* show sidebar when checkbox is checked */
#sidebar-active:checked~.links-container {
  left: 0;
}

/* ---------- CLOSE (X) ICON ---------- */
.close-sidebar-button {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  z-index: 1002;
}

.close-sidebar-button .material-symbols-outlined {
  font-size: 32px;
  color: var(--text-color);
  transition: transform 0.3s, color 0.3s;
}

.close-sidebar-button:hover .material-symbols-outlined {
  color: #670aa4;
  transform: rotate(90deg);
}

/*SIDEBAR LINKS*/
.links-container a {
  color: var(--text-color);
  text-decoration: none;
  font-family: 'Lexend', sans-serif;
  font-size: 18px;
  padding: 12px 20px;
  width: 80%;
  transition: background 0.3s;
}

.links-container a:hover {
  background-color: var(--accent-color);
}

/*makes the sidebar*/
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
}

/* Show overlay when sidebar is open */
#sidebar-active:checked~.overlay {
  display: block;
}

#sidebar-active:checked~.open-sidebar-button {
  display: none;
}

/* ---------- SEARCH BAR ---------- */
.search {
  --padding: 24px;
  display: flex;
  align-items: center;
  width: 50%;
  margin: 40px auto;
  padding: 14px;
  border-radius: var(--padding);
  background: #dc4848;
  transition: background 0.3s;
}

.search:focus-within {
  background: #620808;
}

.search-icon {
  font-size: 24px;
  color: rgba(0, 0, 0, 0.75);
}

.search-input {
  flex: 1;
  /* fills the bar */
  font-size: 16px;
  font-family: 'Lexend', sans-serif;
  color: #150303;
  margin-left: var(--padding);
  border: none;
  outline: none;
  background: transparent;
}

.search-input::placeholder {
  color: rgba(0, 0, 0, 0.75);
}


.idk {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 120px;
  background: transparent;
  color: none;
  border-bottom: none;
  padding: 0;
}