/* PreachPilot Help Site Custom Styles */
/* Matches the About page design with dark gradient background */

a.brand img {
  max-width: 55% !important;
}

.navbar .nav a {
  font-size: 1.5em !important;
}

.navbar .nav .active .caret {
  border-bottom: 5px solid #363b77 !important;
}

#docsSearch {
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #3730a3 100%);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: none;
  margin: 0 0 30px 0;
}

/* Add subtle background elements similar to About page */
#docsSearch::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  width: 200px;
  height: 200px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
}

#docsSearch::after {
  content: '';
  position: absolute;
  bottom: 20px;
  right: 10%;
  width: 300px;
  height: 300px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
}

#docsSearch h1 {
  color: #ffffff !important;
  font-size: 2.5rem !important;
  font-weight: 600 !important;
  margin-bottom: 1.5rem !important;
  line-height: 1.2 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

/* Search form container */
#searchBar {
  position: relative;
  z-index: 1;
  max-width: 600px;
  width: 100%;
  display: flex;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 0px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  /*border: 1px solid rgba(255, 255, 255, 0.2);*/
}

/* Search input */
#searchBar input.search-query {
  flex: 1;
  padding: 16px 20px !important;
  border: none !important;
  background: transparent !important;
  font-size: 16px !important;
  color: #374151 !important;
  outline: none !important;
  border-radius: 8px !important;
}

#searchBar input.search-query::placeholder {
  color: #9ca3af !important;
}

/* Search button */
#searchBar button[type="submit"] {
  background: #3b82f6 !important;
  color: white !important;
  border: none !important;
  padding: 16px 24px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  top: 0px !important;
  right: 0px !important;
}

#sidebar #searchBar.sm button .icon-search {
  color: #ffffff !important;
}

#searchBar button[type="submit"]:hover {
  background: #2563eb !important;
  transform: translateX(1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Icon styling */
#searchBar button[type="submit"] i {
  font-size: 16px;
}

/* Dropdown results */
#serp-dd {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  margin-top: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

#serp-dd ul.result {
  list-style: none;
  padding: 0;
  margin: 0;
}

#serp-dd ul.result li {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#serp-dd ul.result li:hover {
  background-color: #f9fafb;
}

#serp-dd ul.result li:last-child {
  border-bottom: none;
}

/* Responsive design */
@media (max-width: 768px) {
  #docsSearch {
    padding: 3rem 1rem;
    min-height: 250px;
  }

  #docsSearch h1 {
    font-size: 2rem !important;
    margin-bottom: 1rem !important;
  }

  #searchBar {
    flex-direction: column;
    gap: 4px;
  }

  #searchBar input.search-query,
  #searchBar button[type="submit"] {
    padding: 14px 16px !important;
  }

  #docsSearch::before,
  #docsSearch::after {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 480px) {
  #docsSearch {
    padding: 2rem 1rem;
  }

  #docsSearch h1 {
    font-size: 1.75rem !important;
  }

  #searchBar input.search-query,
  #searchBar button[type="submit"] {
    padding: 12px 16px !important;
    font-size: 14px !important;
  }
}

/* Additional overrides to ensure styles take precedence */
#docsSearch * {
  box-sizing: border-box;
}

/* Make sure the search section doesn't inherit unwanted styles */
#docsSearch {
  background-attachment: fixed !important;
  background-size: cover !important;
  background-position: center !important;
}