/* Search Discovery Interface Styling */
.discovery-search {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  color: white;
  font-family: system-ui, -apple-system, sans-serif;
}

.search-input {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.search-input::placeholder {
  color: #666;
}

.search-mode-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-mode {
  padding: 8px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background: transparent;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  white-space: nowrap;
}

.search-mode:hover,
.search-mode.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
}

.search-results {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  backdrop-filter: blur(10px);
  min-height: 200px;
}

.result-item {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 8px;
  transition: transform 0.2s ease;
  cursor: pointer;
  border-left: 4px solid transparent;
}

.result-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.result-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c5aa0;
}

.result-snippet {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 8px;
}

.result-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
}

.result-item.vigil { border-left-color: #FF3B30; }
.result-item.wandering { border-left-color: #007AFF; }
.result-item.lab { border-left-color: #34C759; }
.result-item.threshold { border-left-color: #FF9500; }
.result-item.synthesis { border-left-color: #AF52DE; }

/* Tag cloud styling */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tag {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.serendipity-result {
  border: 2px dashed rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.serendipity-result .result-title {
  color: #FFE066;
}

.serendipity-result .result-snippet,
.serendipity-result .result-meta {
  color: rgba(255, 255, 255, 0.8);
}

.search-stats {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.discovery-hint {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 16px;
  font-style: italic;
}
