/* Navbar Custom Styles */

/* Override navbar font */
.navbar-custom .navbar-brand,
.navbar-custom .navbar-nav .nav-link {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-weight: 600;
}

/* Navbar link hover - change to black instead of blue */
.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link:focus,
.navbar-custom .navbar-nav .nav-item:hover .nav-link {
  color: #000000 !important;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 0.25rem;
}

/* Active navbar link */
.navbar-custom .navbar-nav .nav-item.active .nav-link {
  color: #FFFFFF !important;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
}

/* Navbar brand (title) hover */
.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus {
  color: #000000 !important;
}

/* Mobile menu toggle */
.navbar-custom .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar-custom .navbar-toggler:hover {
  border-color: #000000;
}

/* Footer border/separator line */
footer {
  border-top: 2px solid #667EEA !important;
}

/* Real-time search dropdown */
#beautifuljekyll-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}

#beautifuljekyll-search-overlay.is-visible {
  display: flex !important;
}

.search-dropdown {
  background: white;
  border-radius: 0.75rem;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid #E2E8F0;
}

.search-icon {
  font-size: 1.25rem;
  color: #667EEA;
}

#nav-search-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 1.125rem;
  color: #1A202C;
  outline: none;
}

#nav-search-input::placeholder {
  color: #A0AEC0;
}

#nav-search-exit {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
  padding: 0.5rem;
}

#nav-search-exit:hover {
  color: #667EEA;
}

#search-results-wrapper {
  display: none;
  max-height: 60vh;
  overflow-y: auto;
}

#search-count {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  color: #718096;
  background: #F7FAFC;
  border-bottom: 1px solid #E2E8F0;
}

#search-results-container {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-result-item {
  border-bottom: 1px solid #E2E8F0;
  transition: background-color 0.15s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: #F7FAFC;
}

.result-content {
  padding: 1rem 1.5rem;
}

.result-title {
  display: block;
  font-weight: 600;
  color: #2D3748;
  text-decoration: none;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  transition: color 0.2s ease;
}

.result-title:hover {
  color: #667EEA;
}

.result-category {
  font-size: 0.8125rem;
  color: #718096;
  text-transform: capitalize;
}

.no-results {
  padding: 2rem 1.5rem;
  text-align: center;
  color: #A0AEC0;
  font-size: 0.9375rem;
}

/* Scrollbar styling */
#search-results-wrapper::-webkit-scrollbar {
  width: 8px;
}

#search-results-wrapper::-webkit-scrollbar-track {
  background: #F7FAFC;
}

#search-results-wrapper::-webkit-scrollbar-thumb {
  background: #CBD5E0;
  border-radius: 4px;
}

#search-results-wrapper::-webkit-scrollbar-thumb:hover {
  background: #A0AEC0;
}
