.post-search-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.post-search-modal {
  background: var(--color-bg-secondary, #1e1e1e);
  border: 1px solid var(--color-border, #3c3c3c);
  border-radius: 8px;
  width: 600px;
  max-height: 500px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.post-search-header {
  border-bottom: 1px solid var(--color-border, #3c3c3c);
}

.post-search-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  background: transparent;
  border: none;
  color: var(--color-text, #ccc);
  outline: none;
  font-family: inherit;
}

.post-search-input::placeholder {
  color: var(--color-text-muted, #888);
}

.post-search-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  min-height: 200px;
}

.post-search-loading,
.post-search-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--color-text-muted, #888);
  font-size: 14px;
  text-align: center;
}

.post-search-result-item {
  padding: 12px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 4px;
  transition: background-color 0.15s ease;
}

.post-search-result-item:hover,
.post-search-result-item.selected {
  background: var(--color-bg-tertiary, #2a2a2a);
}

.post-search-result-item.selected {
  border-left: 3px solid var(--color-primary, #0e639c);
  padding-left: 13px;
}

.post-search-result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text, #fff);
  margin-bottom: 4px;
}

.post-search-result-excerpt {
  font-size: 12px;
  color: var(--color-text-muted, #888);
  line-height: 1.4;
  margin-bottom: 4px;
}

.post-search-result-slug {
  font-size: 11px;
  color: var(--color-text-muted, #666);
  font-family: 'Cascadia Code', 'Consolas', 'Courier New', monospace;
}

.post-search-footer {
  border-top: 1px solid var(--color-border, #3c3c3c);
  padding: 8px 16px;
  display: flex;
  justify-content: center;
}

.post-search-hint {
  font-size: 11px;
  color: var(--color-text-muted, #888);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.post-search-results::-webkit-scrollbar-track {
  background: var(--color-bg-secondary, #1e1e1e);
}

.post-search-results::-webkit-scrollbar-thumb {
  background: var(--color-border, #3c3c3c);
  border-radius: 4px;
}

.post-search-results::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted, #555);
}
