/* VSC4T Search Styling */
.vs-search-header {
  margin-bottom: 2rem;
}

.vs-search-header h1 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  color: var(--vscode-text);
}

.vs-search-header h1 i {
  color: #569cd6; /* VS Code blue */
}

.vs-search-header p {
  color: #858585;
  font-size: 0.95rem;
}

/* Search container */
.vs-search-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  background: var(--vscode-sidebar);
  border-radius: 4px;
  border: 1px solid var(--vscode-border);
  overflow: hidden;
}

/* Input styling */
.vs-search-input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: var(--vscode-active);
  border-bottom: 1px solid var(--vscode-border);
  padding: 0.75rem 1rem;
}

.vs-search-icon {
  color: #569cd6;
  margin-right: 0.75rem;
  font-size: 1rem;
}

.vs-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--vscode-text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  outline: none;
  caret-color: #569cd6;
}

.vs-search-input::placeholder {
  color: #6e6e6e;
}

.vs-search-clear {
  background: none;
  border: none;
  color: #858585;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.vs-search-clear:hover {
  opacity: 1;
  color: #c4c4c4;
}

/* Status bar styling */
.vs-search-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  background: var(--vscode-active);
  color: #858585;
  border-bottom: 1px solid var(--vscode-border);
}

.vs-search-commands {
  display: flex;
  gap: 1rem;
}

.vs-keybind {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.vs-key {
  display: inline-block;
  padding: 0.15rem 0.35rem;
  background: var(--vscode-sidebar);
  border: 1px solid #4d4d4d;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #c4c4c4;
  min-width: 1rem;
  text-align: center;
}

/* Results container */
.vs-search-results {
  overflow-y: auto;
  max-height: 500px;
  padding: 0.5rem;
}

/* Result item */
.vs-result-item {
  padding: 0.25rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-bottom: 0.25rem;
}

.vs-result-item:hover {
  background: var(--vscode-highlight);
}

.vs-result-item.active {
  background: var(--vscode-highlight);
  outline: 1px solid #569cd6;
}

.vs-result-link {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 0.5rem;
}

.vs-result-link:hover {
  text-decoration: none;
  color: inherit;
}

.vs-result-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.vs-result-header i {
  color: #569cd6; /* Default file icon color */
}

.vs-result-header i.js-icon {
  color: #dbcb74; /* JavaScript color */
}

.vs-result-header i.css-icon {
  color: #519aba; /* CSS color */
}

.vs-result-header i.html-icon {
  color: #e37933; /* HTML color */
}

.vs-result-header i.md-icon {
  color: #519aba; /* Markdown color */
}

.vs-result-title {
  color: var(--vscode-text);
  font-weight: bold;
}

.vs-result-preview {
  color: #a2a2a2;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  white-space: normal;
  line-height: 1.5;
  overflow: hidden;
}

.vs-result-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #858585;
}

.vs-result-date i, 
.vs-result-tags i {
  margin-right: 0.25rem;
}

/* Highlight matches */
.vs-highlight {
  background-color: rgba(86, 156, 214, 0.2);
  color: #569cd6;
  border-radius: 2px;
  padding: 0 2px;
  font-weight: bold;
}

/* No results */
.vs-no-results {
  padding: 2rem;
  text-align: center;
  color: #858585;
}

.vs-no-results i {
  display: block;
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Search filters */
.filter-group {
  margin-bottom: 1rem;
}

.filter-title {
  color: #858585;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  padding: 0.25rem 0;
}

.filter-item label {
  color: var(--vscode-text);
  font-size: 0.9rem;
  margin: 0;
  cursor: pointer;
}

/* Recent searches */
#recent-searches {
  display: flex;
  flex-direction: column;
}

.recent-search-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  color: var(--vscode-text);
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.recent-search-item:hover {
  background: var(--vscode-active);
}

.recent-search-item i {
  color: #858585;
  font-size: 0.85rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .vs-search-commands {
    display: none;
  }
  
  .vs-search-results {
    max-height: 60vh;
  }
  
  .vs-result-meta {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.vs-search-results {
  animation: fadeIn 0.3s ease;
}

.vs-result-item {
  animation: fadeIn 0.2s ease;
}

/* Search page specific container height */
.vscode-container {
  min-height: calc(100vh - 100px);
}