/**
 * OUTPOST HUB CUSTOM SEARCH STYLES
 * Logic: Version 3.9 - Elementor Kit Override & Final Figma Polish
 */

/* --- 1. GLOBAL ALIGNMENT --- */
.outpost-search-container-global {
  max-width: 936px !important;
  width: 100%;
  margin: 0 auto;
  background: transparent !important;
  box-sizing: border-box;
}

.outpost-search-box-design {
  background: #ffffff !important;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid #edf2f7 !important;
  padding: 40px !important;
  position: relative;
  z-index: 10;
  border-radius: 8px;
}

/* --- 2. SEARCH BAR & BUTTON DESIGN --- */
.outpost-input-wrapper {
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: 100% !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  padding: 0 !important;
  height: 70px !important;
  overflow: visible !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

/* Icon  SVG (42px) */
.outpost-search-icon-inside {
  width: 42px !important;
  height: 42px !important;
  background-image: url("https://stg-userevidence-staging.kinsta.cloud/wp-content/uploads/2026/01/Search.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
  margin-left: 20px !important;
  margin-right: 15px !important;
}
.outpost-search-icon-inside::before {
  content: none !important;
  display: none !important;
}

.outpost-input-wrapper input.outpost-search-field {
  flex-grow: 1 !important;
  background: transparent !important;
  height: 100% !important;
  border: none !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  font-family: "Inter", sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  color: #1b2064 !important;
  line-height: 70px !important;
  display: flex !important;
  align-items: center !important;
}

.outpost-search-field::placeholder {
  color: #1b2064 !important;
  opacity: 0.3 !important;
  line-height: 70px !important;
  vertical-align: middle !important;
}

.outpost-search-button {
  background: #7b42ff !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 14px !important;
  height: 33px !important;
  min-width: 104px !important;
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  flex-shrink: 0;
  margin: 0 8px 0 10px !important;
  transition: background 0.2s ease !important;
}

.outpost-search-button:hover {
  background: #6226ef !important;
}

#outpost-live-results-popup {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  width: 100% !important;
  background: #ffffff !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
  z-index: 99999 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.outpost-res-img {
  width: 45px !important;
  height: 45px !important;
  object-fit: cover !important;
  border-radius: 4px !important;
  margin-right: 15px !important;
}

.outpost-live-result-item {
  padding: 15px 25px !important;
  display: flex !important;
  align-items: center !important;
  border-bottom: 1px solid #f7fafc !important;
  text-decoration: none !important;
  color: #2d3748 !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  transition: background 0.2s ease !important;
}

.outpost-live-result-item:hover {
  background-color: #f8fafc !important;
}

.outpost-section-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #a0aec0 !important;
  text-transform: uppercase !important;
  margin: 40px 0 20px 0 !important;
  letter-spacing: 1.5px !important;
}

.outpost-tag-pill {
  background: #f3efff !important;
  color: #7b42ff !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: inline-block;
  margin: 0 10px 10px 0 !important;
  border-radius: 4px;
  transition: all 0.2s ease !important;
}

.outpost-tag-pill:hover {
  background: #7b42ff !important;
  color: #ffffff !important;
}

/* --- 5. RECENT ITEMS & ARROW --- */
.outpost-recent-item {
  display: flex !important;
  align-items: center !important;
  padding: 18px 0 !important;
  border-bottom: 1px solid #edf2f7 !important;
  color: #2d3748 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.outpost-recent-item:hover {
  color: #7b42ff !important;
  padding-left: 5px !important;
}

.outpost-recent-item::after {
  content: "\f061" !important;
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  color: #a0aec0 !important;
  margin-left: auto !important;
  transform: rotate(-45deg) !important;
  transition: color 0.2s ease !important;
}

.outpost-recent-item:hover::after {
  color: #7b42ff !important;
}

@media (max-width: 768px) {
  /* 1. ELIMINAR LUPA (Icono y Fondo) */
  .outpost-search-icon-inside,
  .outpost-input-wrapper i,
  .outpost-input-wrapper .fas {
    display: none !important;
  }

  /* 2. FORZAR FILA HORIZONTAL */
  .outpost-search-box-design {
    padding: 20px !important;
  }

  .outpost-input-wrapper {
    display: flex !important;
    flex-direction: row !important; /* Forzamos que estén uno al lado del otro */
    align-items: center !important;
    justify-content: space-between !important;
    height: 60px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 0 10px !important;
  }

  /* 3. INPUT A LA IZQUIERDA */
  input.outpost-search-field#outpost-search-input {
    flex: 1 !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    height: 100% !important;
    padding-left: 10px !important;
    margin: 0 !important;
    font-size: 16px !important;
    text-align: left !important;
  }

  /* 4. BOTÓN A LA DERECHA */
  .outpost-search-button {
    position: static !important;
    width: auto !important;
    min-width: 90px !important;
    height: 40px !important;
    margin: 0 0 0 10px !important; /* Separación del texto */
    border-radius: 6px !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* 5. ETIQUETAS (PILLS) EN LÍNEA */
  .outpost-tags-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 15px !important;
  }

  .outpost-tag-pill {
    width: auto !important;
    flex: 0 1 auto !important;
    padding: 8px 15px !important;
    margin: 0 !important;
  }
}