/* ------------------------------------------------ */
/* CONVERTME – SEARCH */
/* ------------------------------------------------ */


/* ================================================ */
/* KERESŐ TARTÓ */
/* ================================================ */

.search-container {
  position: relative;

  width: 100%;
  max-width: 335px;

  box-sizing: border-box;
}


/* ================================================ */
/* KERESŐDOBOZ */
/* ================================================ */

.search-box {
  position: relative;

  width: 100%;

  box-sizing: border-box;
}


/* ================================================ */
/* KERESŐ INPUT */
/* ================================================ */

#searchInput {
  display: block;

  width: 100%;
  height: 46px;

  box-sizing: border-box;

  padding: 0 20px;

  background: #050505;

  color: var(--neon);

  border: 2px solid var(--neon);

  border-radius: 999px;

  outline: none;

  font-family: Arial, sans-serif;
  font-size: 15px;

  box-shadow:
    0 0 8px rgba(0, 255, 0, 0.25);

  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}


/* ================================================ */
/* PLACEHOLDER */
/* ================================================ */

#searchInput::placeholder {
  color: rgba(0, 255, 0, 0.5);

  opacity: 1;
}


/* ================================================ */
/* KERESÉS / FÓKUSZ */
/* ================================================ */

#searchInput:focus {

  border-color: var(--neon);

  background: #020202;

  box-shadow:
    0 0 10px var(--neon),
    0 0 22px var(--neon),
    0 0 42px rgba(0, 255, 0, 0.55);
}


/* ================================================ */
/* GLOW KIKAPCSOLVA */
/* ================================================ */

body.no-glow #searchInput,
body.glow-off #searchInput {

  box-shadow: none;
}

body.no-glow #searchInput:focus,
body.glow-off #searchInput:focus {

  box-shadow: none;
}


/* ================================================ */
/* TALÁLATOK */
/* ================================================ */

.search-results {

  width: 100%;

  margin-top: 10px;

  max-height: 230px;

  overflow-y: auto;
  overflow-x: hidden;

  box-sizing: border-box;

  border-radius: 14px;

  scrollbar-width: thin;

  scrollbar-color:
    var(--neon)
    #000;
}


/* ================================================ */
/* TALÁLAT SCROLLBAR */
/* ================================================ */

.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: #000;
}

.search-results::-webkit-scrollbar-thumb {

  background: var(--neon);

  border-radius: 999px;
}


/* ================================================ */
/* EGY TALÁLAT */
/* ================================================ */

.search-result {

  padding: 10px 14px;

  color: var(--neon);

  background: #050505;

  border: 1px solid transparent;

  border-radius: 10px;

  cursor: pointer;

  font-size: 15px;

  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}


/* ================================================ */
/* TALÁLAT HOVER */
/* ================================================ */

.search-result:hover {

  background:
    rgba(0, 255, 0, 0.1);

  border-color:
    rgba(0, 255, 0, 0.35);

  box-shadow:
    inset 0 0 10px rgba(0, 255, 0, 0.12);

  transform: translateX(3px);
}


/* ================================================ */
/* NINCS TALÁLAT */
/* ================================================ */

.search-no-results {

  padding: 12px;

  color: #777;

  background: #050505;

  border-radius: 10px;

  text-align: center;

  font-size: 14px;
}


/* ================================================ */
/* KERESŐ MOBILON */
/* ================================================ */

@media (max-width: 600px) {

  .search-container {

    width: 100%;

    max-width: 420px;
  }

  #searchInput {

    height: 44px;

    font-size: 15px;
  }

}