/* -- =================== 🔹 Search Bar CSS Start =================== -- */

/* --- Search Container --- */
.search-container {
  display: flex;
  width: 80%;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  padding: 12px;
}

/* --- Search Wrapper --- */
.search-wrapper {
  position: relative;
  width: 75%;
  display: flex;
  flex-direction: row;
}

/* --- Search Input --- */
.search-wrapper input {
  font-family: var(--font-arabic);
  flex: 1;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 0px 6px 6px 0px;
  font-size: var(--font-subheading);
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* 🔹 Remove default focus outline and add optional subtle focus effect */
.search-wrapper input:focus {
  outline: none;
  /* default browser outline ختم */
  box-shadow: none;
  /* shadow ختم */
  border-color: var(--color-border);
  /* border default برقرار */
  /* اگر چاہیں تو subtle highlight add کریں: */
  /* box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); */
}

/* --- Search Button --- */
.search-wrapper button {
  font-family: var(--font-arabic);
  border: none;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: 6px 0px 0px 6px;
  font-size: var(--font-subheading);
  padding: 0 20px;
  min-width: 100px;
  cursor: pointer;
  transition: 0.3s;
}

/* --- Button Hover Effect --- */
.search-wrapper button:hover {
  background: var(--color-cyan);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .search-wrapper {
    width: 90%;
    flex-direction: column;
  }

  .search-wrapper input {
    border-radius: 6px 6px 0 0;
  }

  .search-wrapper button {
    width: 100%;
    border-radius: 0 0 6px 6px;
    padding: 6px;
  }
}

/* --- Highlights --- */
.highlight {
  background-color: yellow;
  font-weight: bold;
}

.current-highlight {
  background-color: orange !important;
  color: #fff !important;
}

/* --- Result Count Box --- */
.count-box {
  margin-top: 6px;
  font-size: var(--font-subheading);
  color: orange;
}

/* --- Floating Navigation Buttons --- */
.floating-nav {
  position: fixed;
  top: 90%;
  left: 10px;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.floating-nav button {
  width: 40px;
  height: 40px;
  background-color: var(--color-black);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: var(--font-subheading);
  opacity: 0.8;
  transition: 0.3s;
}

.floating-nav button:hover {
  opacity: 1;
}

/* -- =================== 🔹 Search Bar CSS End =================== -- */