/* Spotlight Modal Overlay & UI Styles */

.spotlight-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 15, 30, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10vh;
  box-sizing: border-box;
  animation: spotlightFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes spotlightFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.spotlight-modal-container {
  width: 100%;
  max-width: 680px;
  background: rgba(18, 24, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.spotlight-search-bar {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.spotlight-search-icon {
  color: var(--accent, #6366f1);
  flex-shrink: 0;
}

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

.spotlight-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.15rem;
  font-weight: 500;
  color: #f8fafc;
  line-height: 1.4;
  z-index: 2;
}

.spotlight-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

.spotlight-suggestion-hint {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  z-index: 1;
  white-space: pre;
}

.spotlight-esc-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.spotlight-tab-hint {
  padding: 8px 20px;
  background: rgba(99, 102, 241, 0.12);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  font-size: 0.825rem;
  color: #a5b4fc;
  display: flex;
  align-items: center;
  gap: 6px;
}

.spotlight-tab-hint kbd {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.tab-suggestion-text {
  font-weight: 700;
  color: #818cf8;
}

.spotlight-results-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 8px;
}

.spotlight-empty-state {
  padding: 36px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.95rem;
}

.spotlight-result-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.spotlight-result-item:hover,
.spotlight-result-item.active {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.3);
}

.spotlight-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.spotlight-item-title {
  font-size: 0.975rem;
  font-weight: 600;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotlight-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.spotlight-badge {
  font-size: 0.725rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.spotlight-item-sender {
  font-size: 0.825rem;
  color: #94a3b8;
  font-weight: 500;
}

.spotlight-item-snippet {
  font-size: 0.825rem;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.spotlight-footer {
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.775rem;
  color: rgba(255, 255, 255, 0.45);
}

.spotlight-footer kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
}

mark.fuzzy-highlight {
  background: rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  font-weight: 700;
  border-radius: 2px;
  padding: 0 1px;
}
