/* public_html/blog/Styles/search_box.css */

/* ------------------------------------------------------
   SEARCH BAR (Hero Section)
-------------------------------------------------------*/
#search-container {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  width: 100%;
  z-index: 50;
  position: relative;
}

/* Glassmorphic Bar */
#search-bar {
  position: relative;
  display: flex;
  align-items: center;
  width: 480px;
  padding: 14px 22px;
  border-radius: 40px;

  /* Softer neutral glass */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);

  /* No cyan tint */
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
      0 4px 14px rgba(0,0,0,0.35),
      0 0 18px rgba(255,255,255,0.12);

  transition: box-shadow 0.3s ease, border 0.3s ease;
}

/* Focus glow (neutral white instead of cyan) */
#search-bar:focus-within {
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow:
      0 6px 16px rgba(0,0,0,0.5),
      0 0 22px rgba(255,255,255,0.20);
}

/* Input text */
#search-box {
  width: 100%;
  border: none;
  background: none;
  outline: none;

  font-family: 'Fira Code', monospace;
  font-size: 18px;
  color: #f4f7fa;  /* cleaner off-white */
}

#search-box::placeholder {
  color: rgba(255,255,255,0.55);
  opacity: 1;
  font-style: italic;
}

/* Search icon */
#search-icon {
  color: rgba(255,255,255,0.50);
  font-size: 20px;
  margin-left: 12px;
  cursor: pointer;
  transition: transform 0.25s ease, color 0.25s ease;
}

#search-icon:hover {
  color: #ffffff;
  transform: scale(1.15);
}

/* Responsive */
@media (max-width: 600px) {
  #search-bar {
    width: 90%;
  }
}

/* ------------------------------------------------------
   TOOLTIP (Tag Dropdown)
-------------------------------------------------------*/
.search-tooltip {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  width: 100%;

  max-height: none;
  padding: 14px 18px;
  border-radius: 18px;

  display: none;
  overflow: hidden;

  /* Neutral darker glass (no cyan) */
  background: rgba(12, 12, 14, 0.70);
  backdrop-filter: blur(12px);

  /* Soft white border instead of teal */
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
      0 6px 20px rgba(0, 0, 0, 0.45),
      0 0 15px rgba(255,255,255,0.18);

  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;

  z-index: 99999;
}

@keyframes tooltipFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------
   TAG PILL (Minimal Neutral)
-------------------------------------------------------*/
.tooltip-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 18px;
  border-radius: 14px;
  font-size: 16px;
  white-space: nowrap;

  font-family: 'Fira Code', monospace;
  color: #f4f7fa;

  /* Soft neutral pill background */
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);

  cursor: pointer;
  transition:
      background 0.25s ease,
      box-shadow 0.25s ease,
      transform 0.25s ease,
      color 0.25s ease;
}

/* Hover: subtle white lift (no teal/glow) */
.tooltip-tag:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.25);
  box-shadow:
      0 3px 8px rgba(0,0,0,0.25),
      0 0 6px rgba(255,255,255,0.25);
  transform: translateY(-2px);
  color: #ffffff;
}

.tooltip-tag:active {
  transform: scale(0.96);
}

/* Highlighted substring */
.tooltip-tag .highlight {
  background: rgba(255,255,255,0.32);
  border-radius: 4px;
  padding: 0 2px;
}


