/* Simple Search Styles - Naveen.works Inspired */

/* Search container */
.search-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

#search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #1a1a1a;
  border: 1px solid #2d2d2d;
  border-radius: 6px;
  color: #e5e7eb;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}

#search-input:focus {
  outline: 2px solid #497e6b;
  outline-offset: 2px;
  border-color: #497e6b;
}

#search-input::placeholder {
  color: #6b7280;
}

/* Search results */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #1a1a1a;
  border: 1px solid #2d2d2d;
  border-radius: 6px;
  margin-top: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-results[aria-hidden="false"] {
  display: block;
}

.search-result-item {
  border-bottom: 1px solid #2d2d2d;
}

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

.search-result-link {
  display: block;
  padding: 1rem;
  color: #e5e7eb;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.search-result-link:hover,
.search-result-item.selected .search-result-link {
  background-color: #2d2d2d;
  color: #e5e7eb;
}

.search-result-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #e5e7eb;
}

.search-result-excerpt {
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.4;
}

/* Tag filter */
.tag-filter-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.tag-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.tag-filter-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #e5e7eb;
}

.tag-filter-toggle {
  background-color: #1a1a1a;
  border: 1px solid #2d2d2d;
  color: #9ca3af;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.tag-filter-toggle:hover {
  background-color: #2d2d2d;
  color: #e5e7eb;
}

.tag-filter {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.tag-filter[aria-hidden="false"] {
  max-height: 200px;
}

.tag-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag-button {
  background-color: #1a1a1a;
  border: 1px solid #2d2d2d;
  color: #9ca3af;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.tag-button:hover {
  background-color: #2d2d2d;
  color: #e5e7eb;
}

.tag-button.active {
  background-color: #497e6b;
  border-color: #497e6b;
  color: #ffffff;
}

/* Notes section */
.notes-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #e5e7eb;
  margin-bottom: 1rem;
}

.page-subtitle {
  color: #9ca3af;
  font-size: 1.125rem;
}

/* No results */
.no-results,
.no-notes-found {
  text-align: center;
  padding: 3rem 1rem;
  color: #9ca3af;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .search-container,
  .tag-filter-container {
    margin: 1rem auto;
  }
  
  .tag-filter-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .tag-buttons {
    justify-content: flex-start;
  }
  
  .page-title {
    font-size: 2rem;
  }
}
/
* Light theme support */
[data-theme="light"] #search-input {
  background-color: #ffffff;
  border-color: #e5e7eb;
  color: #111827;
}

[data-theme="light"] #search-input:focus {
  border-color: #497e6b;
  outline-color: #497e6b;
}

[data-theme="light"] #search-input::placeholder {
  color: #6b7280;
}

[data-theme="light"] .search-results {
  background-color: #ffffff;
  border-color: #e5e7eb;
}

[data-theme="light"] .search-result-item.selected {
  background-color: #f3f4f6;
}

[data-theme="light"] .search-result-link:hover {
  background-color: #f9fafb;
}

[data-theme="light"] .search-result-item.selected .search-result-link {
  background-color: #f3f4f6;
}

[data-theme="light"] .search-result-title {
  color: #111827;
}

[data-theme="light"] .search-result-excerpt {
  color: #374151;
}

[data-theme="light"] .search-result-meta {
  color: #6b7280;
}

[data-theme="light"] .search-result-tags {
  background-color: #f3f4f6;
  color: #374151;
}

[data-theme="light"] .no-results {
  color: #6b7280;
}

[data-theme="light"] .tag-filter-container {
  background-color: #ffffff;
  border-color: #e5e7eb;
}

[data-theme="light"] .tag-filter-title {
  color: #111827;
}

[data-theme="light"] .tag-filter-toggle {
  background-color: #f9fafb;
  border-color: #e5e7eb;
  color: #374151;
}

[data-theme="light"] .tag-filter-toggle:hover {
  background-color: #497e6b;
  border-color: #497e6b;
  color: #ffffff;
}

[data-theme="light"] .tag-button {
  background-color: #f9fafb;
  border-color: #e5e7eb;
  color: #374151;
}

[data-theme="light"] .tag-button:hover {
  background-color: #f3f4f6;
  border-color: #497e6b;
  color: #497e6b;
}

[data-theme="light"] .tag-button.active {
  background-color: #497e6b;
  border-color: #497e6b;
  color: #ffffff;
}

[data-theme="light"] .page-title {
  color: #111827;
}

[data-theme="light"] .page-subtitle {
  color: #374151;
}