/* ==================== SEARCH ICON IN NAV ==================== */
.nav-search-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 8px !important;
  border-radius: 8px;
  transition: all 0.2s;
  color: #374151 !important;
}
.nav-search-link:hover {
  background: rgba(0,0,0,0.05);
  color: #1a5632 !important;
}
.nav-search-link::after { display: none !important; }

/* Wrapper for search + hamburger on mobile */
.nav-right-controls {
  display: none;
  align-items: center;
  gap: 4px;
}
.mobile-search-btn {
  background: transparent;
  border: none;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
}
.mobile-search-btn svg { width: 22px; height: 22px; }
.mobile-search-btn:active { color: #6B46C1; }

@media (max-width: 900px) {
  .nav-right-controls { display: flex !important; }
}

#site-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}
#site-search-overlay.active {
  display: flex;
}

.search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.search-container {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 600px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  overflow: hidden;
  animation: searchSlideIn 0.2s ease-out;
}

@keyframes searchSlideIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.search-header {
  display: flex;
  align-items: center;
  padding: 4px;
  border-bottom: 1px solid #e5e7eb;
}

#site-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 20px;
  font-size: 17px;
  font-family: 'Inter', sans-serif;
  color: #111;
  background: transparent;
}
#site-search-input::placeholder {
  color: #9ca3af;
}

.search-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #6b7280;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.15s;
}
.search-close:hover {
  background: #f3f4f6;
  color: #111;
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
}

.search-hint {
  padding: 24px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: #374151;
  font-size: 15px;
  transition: all 0.15s;
}
.search-result-item:hover {
  background: #f0fdf4;
  color: #15803d;
}
.search-result-item svg {
  flex-shrink: 0;
  opacity: 0.4;
}
.search-result-item:hover svg {
  opacity: 0.7;
}

/* ==================== INLINE SHARE BAR ==================== */
.inline-share-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 1.2rem 2rem;
  background: #f8faf9;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.share-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  font-family: 'Inter', 'Lora', sans-serif;
}

.share-buttons {
  display: flex;
  gap: 8px;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  text-decoration: none;
}
.share-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.share-whatsapp:hover { background: #25D366; color: white; border-color: #25D366; }
.share-twitter:hover { background: #000; color: white; border-color: #000; }
.share-copy:hover { background: #f0fdf4; color: #15803d; border-color: #15803d; }
.share-more:hover { background: #f0f0ff; color: #6B46C1; border-color: #6B46C1; }

/* ==================== MOBILE ==================== */
@media (max-width: 768px) {
  #site-search-overlay {
    padding-top: 5vh;
  }
  .search-container {
    width: 95%;
    border-radius: 12px;
  }
  .share-wrap {
    bottom: 24px;
    right: 16px;
  }
  .page-share-btn {
    width: 44px;
    height: 44px;
  }
}
