/**
 * Seekora DocSearch CSS - bundled with @seekora/ui-sdk-react
 * Override CSS variables to customize. Dark mode: [data-theme="dark"] or prefers-color-scheme.
 */

:root {
  --seekora-docsearch-primary: #5468ff;
  --seekora-docsearch-primary-hover: #4458e8;
  --seekora-docsearch-text: #1a1a1a;
  --seekora-docsearch-text-muted: #6b7280;
  --seekora-docsearch-text-secondary: #9ca3af;
  --seekora-docsearch-background: #ffffff;
  --seekora-docsearch-background-secondary: #f9fafb;
  --seekora-docsearch-border: #e5e7eb;
  --seekora-docsearch-border-light: #f3f4f6;
  --seekora-docsearch-shadow: rgba(0, 0, 0, 0.1);
  --seekora-docsearch-shadow-strong: rgba(0, 0, 0, 0.2);
  --seekora-docsearch-overlay: rgba(0, 0, 0, 0.4);
  --seekora-docsearch-highlight-bg: rgba(84, 104, 255, 0.1);
  --seekora-docsearch-highlight-text: #5468ff;
  --seekora-docsearch-hit-bg: transparent;
  --seekora-docsearch-hit-bg-hover: #f3f4f6;
  --seekora-docsearch-hit-bg-selected: #eef2ff;
  --seekora-docsearch-icon: #9ca3af;
  --seekora-docsearch-icon-active: #5468ff;
  --seekora-docsearch-key-bg: #f3f4f6;
  --seekora-docsearch-key-border: #d1d5db;
  --seekora-docsearch-key-text: #6b7280;
  --seekora-docsearch-spacing-xs: 4px;
  --seekora-docsearch-spacing-sm: 8px;
  --seekora-docsearch-spacing-md: 12px;
  --seekora-docsearch-spacing-lg: 16px;
  --seekora-docsearch-spacing-xl: 24px;
  --seekora-docsearch-font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --seekora-docsearch-font-size-xs: 11px;
  --seekora-docsearch-font-size-sm: 13px;
  --seekora-docsearch-font-size-md: 14px;
  --seekora-docsearch-font-size-lg: 16px;
  --seekora-docsearch-font-weight-normal: 400;
  --seekora-docsearch-font-weight-medium: 500;
  --seekora-docsearch-font-weight-semibold: 600;
  --seekora-docsearch-line-height: 1.5;
  --seekora-docsearch-radius-sm: 4px;
  --seekora-docsearch-radius-md: 8px;
  --seekora-docsearch-radius-lg: 12px;
  --seekora-docsearch-radius-xl: 16px;
  --seekora-docsearch-transition-fast: 100ms;
  --seekora-docsearch-transition-normal: 150ms;
  --seekora-docsearch-transition-slow: 200ms;
  --seekora-docsearch-modal-width: 560px;
  --seekora-docsearch-modal-max-height: 80vh;
  --seekora-docsearch-modal-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --seekora-docsearch-z-index: 99999;
}

[data-theme="dark"], .dark {
  --seekora-docsearch-primary: #7c8aff;
  --seekora-docsearch-primary-hover: #6e7dff;
  --seekora-docsearch-text: #f9fafb;
  --seekora-docsearch-text-muted: #9ca3af;
  --seekora-docsearch-text-secondary: #6b7280;
  --seekora-docsearch-background: #1f2937;
  --seekora-docsearch-background-secondary: #111827;
  --seekora-docsearch-border: #374151;
  --seekora-docsearch-border-light: #374151;
  --seekora-docsearch-shadow: rgba(0, 0, 0, 0.3);
  --seekora-docsearch-shadow-strong: rgba(0, 0, 0, 0.5);
  --seekora-docsearch-overlay: rgba(0, 0, 0, 0.6);
  --seekora-docsearch-highlight-bg: rgba(124, 138, 255, 0.15);
  --seekora-docsearch-highlight-text: #a5b4fc;
  --seekora-docsearch-hit-bg: transparent;
  --seekora-docsearch-hit-bg-hover: #374151;
  --seekora-docsearch-hit-bg-selected: #312e81;
  --seekora-docsearch-icon: #6b7280;
  --seekora-docsearch-icon-active: #7c8aff;
  --seekora-docsearch-key-bg: #374151;
  --seekora-docsearch-key-border: #4b5563;
  --seekora-docsearch-key-text: #9ca3af;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not(.light) {
    --seekora-docsearch-primary: #7c8aff;
    --seekora-docsearch-primary-hover: #6e7dff;
    --seekora-docsearch-text: #f9fafb;
    --seekora-docsearch-text-muted: #9ca3af;
    --seekora-docsearch-text-secondary: #6b7280;
    --seekora-docsearch-background: #1f2937;
    --seekora-docsearch-background-secondary: #111827;
    --seekora-docsearch-border: #374151;
    --seekora-docsearch-border-light: #374151;
    --seekora-docsearch-shadow: rgba(0, 0, 0, 0.3);
    --seekora-docsearch-shadow-strong: rgba(0, 0, 0, 0.5);
    --seekora-docsearch-overlay: rgba(0, 0, 0, 0.6);
    --seekora-docsearch-highlight-bg: rgba(124, 138, 255, 0.15);
    --seekora-docsearch-highlight-text: #a5b4fc;
    --seekora-docsearch-hit-bg: transparent;
    --seekora-docsearch-hit-bg-hover: #374151;
    --seekora-docsearch-hit-bg-selected: #312e81;
    --seekora-docsearch-icon: #6b7280;
    --seekora-docsearch-icon-active: #7c8aff;
    --seekora-docsearch-key-bg: #374151;
    --seekora-docsearch-key-border: #4b5563;
    --seekora-docsearch-key-text: #9ca3af;
  }
}

.seekora-docsearch-button {
  display: flex;
  align-items: center;
  gap: var(--seekora-docsearch-spacing-sm);
  padding: var(--seekora-docsearch-spacing-sm) var(--seekora-docsearch-spacing-md);
  min-width: 200px;
  height: 40px;
  background: var(--seekora-docsearch-background);
  border: 1px solid var(--seekora-docsearch-border);
  border-radius: var(--seekora-docsearch-radius-md);
  color: var(--seekora-docsearch-text-muted);
  font-family: var(--seekora-docsearch-font-family);
  font-size: var(--seekora-docsearch-font-size-md);
  cursor: pointer;
  transition: all var(--seekora-docsearch-transition-normal) ease;
  box-shadow: 0 1px 2px var(--seekora-docsearch-shadow);
}
.seekora-docsearch-button:hover { border-color: var(--seekora-docsearch-primary); box-shadow: 0 2px 4px var(--seekora-docsearch-shadow); }
.seekora-docsearch-button:focus { outline: none; border-color: var(--seekora-docsearch-primary); box-shadow: 0 0 0 3px var(--seekora-docsearch-highlight-bg); }
.seekora-docsearch-button-icon { display: flex; align-items: center; justify-content: center; color: var(--seekora-docsearch-icon); flex-shrink: 0; }
.seekora-docsearch-button-placeholder { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seekora-docsearch-button-keys { display: flex; align-items: center; gap: var(--seekora-docsearch-spacing-xs); flex-shrink: 0; }
.seekora-docsearch-button-key {
  display: inline-flex; align-items: center; justify-content: center; padding: 2px 6px; min-width: 20px; height: 20px;
  background: var(--seekora-docsearch-key-bg); border: 1px solid var(--seekora-docsearch-key-border);
  border-radius: var(--seekora-docsearch-radius-sm); color: var(--seekora-docsearch-key-text);
  font-family: var(--seekora-docsearch-font-family); font-size: var(--seekora-docsearch-font-size-xs);
  font-weight: var(--seekora-docsearch-font-weight-medium); box-shadow: inset 0 -1px 0 var(--seekora-docsearch-key-border);
}
@media (max-width: 640px) {
  .seekora-docsearch-button { min-width: auto; padding: var(--seekora-docsearch-spacing-sm); }
  .seekora-docsearch-button-placeholder { display: none; }
  .seekora-docsearch-button-keys { display: none; }
}

.seekora-docsearch-overlay {
  position: fixed; inset: 0; z-index: var(--seekora-docsearch-z-index);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 10vh var(--seekora-docsearch-spacing-lg);
  background: var(--seekora-docsearch-overlay); backdrop-filter: blur(4px);
  animation: seekora-docsearch-fade-in var(--seekora-docsearch-transition-normal) ease;
}
@keyframes seekora-docsearch-fade-in { from { opacity: 0; } to { opacity: 1; } }
.seekora-docsearch-container { width: 100%; max-width: var(--seekora-docsearch-modal-width); animation: seekora-docsearch-slide-in var(--seekora-docsearch-transition-slow) ease; }
@keyframes seekora-docsearch-slide-in { from { opacity: 0; transform: translateY(-20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.seekora-docsearch-modal {
  display: flex; flex-direction: column; max-height: var(--seekora-docsearch-modal-max-height);
  background: var(--seekora-docsearch-background); border: 1px solid var(--seekora-docsearch-border);
  border-radius: var(--seekora-docsearch-radius-xl); box-shadow: var(--seekora-docsearch-modal-shadow); overflow: hidden;
}
.seekora-docsearch-header { display: flex; align-items: center; gap: var(--seekora-docsearch-spacing-sm); padding: var(--seekora-docsearch-spacing-md); border-bottom: 1px solid var(--seekora-docsearch-border-light); }
.seekora-docsearch-close {
  display: flex; align-items: center; justify-content: center;
  padding: var(--seekora-docsearch-spacing-xs) var(--seekora-docsearch-spacing-sm);
  background: var(--seekora-docsearch-key-bg); border: 1px solid var(--seekora-docsearch-key-border);
  border-radius: var(--seekora-docsearch-radius-sm); color: var(--seekora-docsearch-key-text);
  font-family: var(--seekora-docsearch-font-family); font-size: var(--seekora-docsearch-font-size-xs);
  font-weight: var(--seekora-docsearch-font-weight-medium); cursor: pointer; transition: all var(--seekora-docsearch-transition-fast) ease; flex-shrink: 0;
}
.seekora-docsearch-close:hover { background: var(--seekora-docsearch-hit-bg-hover); border-color: var(--seekora-docsearch-border); }
.seekora-docsearch-close-text { text-transform: uppercase; letter-spacing: 0.05em; }
.seekora-docsearch-body { flex: 1; overflow-y: auto; min-height: 0; overscroll-behavior: contain; scroll-behavior: auto; scroll-padding: 8px 0; }
.seekora-docsearch-body::-webkit-scrollbar { width: 8px; }
.seekora-docsearch-body::-webkit-scrollbar-track { background: transparent; }
.seekora-docsearch-body::-webkit-scrollbar-thumb { background: var(--seekora-docsearch-border); border-radius: 4px; }
.seekora-docsearch-body::-webkit-scrollbar-thumb:hover { background: var(--seekora-docsearch-text-muted); }
@media (max-width: 640px) {
  .seekora-docsearch-overlay { padding: var(--seekora-docsearch-spacing-md); }
  .seekora-docsearch-modal { max-height: calc(100vh - 32px); border-radius: var(--seekora-docsearch-radius-lg); }
}

.seekora-docsearch-searchbox {
  display: flex; align-items: center; gap: var(--seekora-docsearch-spacing-sm); flex: 1;
  padding: 0 var(--seekora-docsearch-spacing-sm); background: var(--seekora-docsearch-background-secondary);
  border: 1px solid transparent; border-radius: var(--seekora-docsearch-radius-md); transition: all var(--seekora-docsearch-transition-fast) ease;
}
.seekora-docsearch-searchbox:focus-within { background: var(--seekora-docsearch-background); border-color: var(--seekora-docsearch-primary); box-shadow: 0 0 0 3px var(--seekora-docsearch-highlight-bg); }
.seekora-docsearch-searchbox-icon { display: flex; align-items: center; justify-content: center; color: var(--seekora-docsearch-icon); flex-shrink: 0; cursor: default; }
.seekora-docsearch-searchbox:focus-within .seekora-docsearch-searchbox-icon { color: var(--seekora-docsearch-icon-active); }
.seekora-docsearch-input {
  flex: 1; padding: var(--seekora-docsearch-spacing-md) var(--seekora-docsearch-spacing-sm);
  background: transparent; border: none; color: var(--seekora-docsearch-text);
  font-family: var(--seekora-docsearch-font-family); font-size: var(--seekora-docsearch-font-size-lg);
  line-height: var(--seekora-docsearch-line-height); outline: none; min-width: 0;
}
.seekora-docsearch-input::placeholder { color: var(--seekora-docsearch-text-secondary); }
.seekora-docsearch-clear { display: flex; align-items: center; justify-content: center; padding: var(--seekora-docsearch-spacing-xs); background: transparent; border: none; border-radius: var(--seekora-docsearch-radius-sm); color: var(--seekora-docsearch-text-muted); cursor: pointer; transition: all var(--seekora-docsearch-transition-fast) ease; flex-shrink: 0; }
.seekora-docsearch-clear:hover { background: var(--seekora-docsearch-hit-bg-hover); color: var(--seekora-docsearch-text); }

.seekora-docsearch-results { padding: var(--seekora-docsearch-spacing-sm) 0; }
.seekora-docsearch-results-list { list-style: none; margin: 0; padding: 0; }
.seekora-docsearch-results-group { margin-bottom: var(--seekora-docsearch-spacing-sm); }
.seekora-docsearch-results-group:last-child { margin-bottom: 0; }
.seekora-docsearch-results-group-header { padding: var(--seekora-docsearch-spacing-sm) var(--seekora-docsearch-spacing-lg); color: var(--seekora-docsearch-text-muted); font-size: var(--seekora-docsearch-font-size-sm); font-weight: var(--seekora-docsearch-font-weight-semibold); text-transform: uppercase; letter-spacing: 0.05em; }
.seekora-docsearch-results-group-items { list-style: none; margin: 0; padding: 0; }
.seekora-docsearch-hit { display: flex; align-items: center; gap: var(--seekora-docsearch-spacing-md); padding: var(--seekora-docsearch-spacing-md) var(--seekora-docsearch-spacing-lg); background: var(--seekora-docsearch-hit-bg); color: var(--seekora-docsearch-text); text-decoration: none; cursor: pointer; transition: background var(--seekora-docsearch-transition-fast) ease; }
.seekora-docsearch-hit:hover { background: var(--seekora-docsearch-hit-bg-hover); }
.seekora-docsearch-hit--selected { background: var(--seekora-docsearch-hit-bg-selected); }
.seekora-docsearch-hit--selected:hover { background: var(--seekora-docsearch-hit-bg-selected); }
.seekora-docsearch-hit-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--seekora-docsearch-background-secondary); border-radius: var(--seekora-docsearch-radius-md); color: var(--seekora-docsearch-icon); flex-shrink: 0; }
.seekora-docsearch-hit--selected .seekora-docsearch-hit-icon { background: var(--seekora-docsearch-primary); color: white; }
.seekora-docsearch-hit-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--seekora-docsearch-spacing-xs); }
.seekora-docsearch-hit-breadcrumb { color: var(--seekora-docsearch-text-secondary); font-size: var(--seekora-docsearch-font-size-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seekora-docsearch-hit-title { color: var(--seekora-docsearch-text); font-size: var(--seekora-docsearch-font-size-md); font-weight: var(--seekora-docsearch-font-weight-medium); line-height: var(--seekora-docsearch-line-height); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seekora-docsearch-hit-description { color: var(--seekora-docsearch-text-muted); font-size: var(--seekora-docsearch-font-size-sm); line-height: var(--seekora-docsearch-line-height); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seekora-docsearch-hit-action { display: flex; align-items: center; justify-content: center; color: var(--seekora-docsearch-text-secondary); flex-shrink: 0; opacity: 0; transition: opacity var(--seekora-docsearch-transition-fast) ease; }
.seekora-docsearch-hit:hover .seekora-docsearch-hit-action, .seekora-docsearch-hit--selected .seekora-docsearch-hit-action { opacity: 1; }
.seekora-docsearch-highlight mark { background: var(--seekora-docsearch-highlight-bg); color: var(--seekora-docsearch-highlight-text); font-weight: var(--seekora-docsearch-font-weight-semibold); padding: 0 2px; border-radius: 2px; }
.seekora-docsearch-empty, .seekora-docsearch-no-results, .seekora-docsearch-error { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--seekora-docsearch-spacing-xl); text-align: center; }
.seekora-docsearch-empty-text, .seekora-docsearch-no-results-text, .seekora-docsearch-error-text { color: var(--seekora-docsearch-text-muted); font-size: var(--seekora-docsearch-font-size-md); margin: 0; }
.seekora-docsearch-error-text { color: #ef4444; }
.seekora-docsearch-hit--child { padding-left: var(--seekora-docsearch-spacing-md); }
.seekora-docsearch-hit--child .seekora-docsearch-hit-icon { width: 32px; height: 32px; }
.seekora-docsearch-hit-tree { display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--seekora-docsearch-border); }
.seekora-docsearch-hit-tree-icon { width: 16px; height: 20px; color: var(--seekora-docsearch-border); }

.seekora-docsearch-footer { display: flex; align-items: center; justify-content: space-between; padding: var(--seekora-docsearch-spacing-md) var(--seekora-docsearch-spacing-lg); background: var(--seekora-docsearch-background-secondary); border-top: 1px solid var(--seekora-docsearch-border-light); }
.seekora-docsearch-footer-commands { display: flex; align-items: center; }
.seekora-docsearch-footer-commands-list { display: flex; align-items: center; gap: var(--seekora-docsearch-spacing-lg); list-style: none; margin: 0; padding: 0; }
.seekora-docsearch-footer-command { display: flex; align-items: center; gap: var(--seekora-docsearch-spacing-xs); color: var(--seekora-docsearch-text-muted); font-size: var(--seekora-docsearch-font-size-xs); }
.seekora-docsearch-key { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 4px; background: var(--seekora-docsearch-key-bg); border: 1px solid var(--seekora-docsearch-key-border); border-radius: var(--seekora-docsearch-radius-sm); color: var(--seekora-docsearch-key-text); font-family: var(--seekora-docsearch-font-family); font-size: var(--seekora-docsearch-font-size-xs); font-weight: var(--seekora-docsearch-font-weight-medium); box-shadow: inset 0 -1px 0 var(--seekora-docsearch-key-border); }
.seekora-docsearch-footer-logo { display: flex; align-items: center; gap: var(--seekora-docsearch-spacing-sm); }
.seekora-docsearch-footer-logo-text { color: var(--seekora-docsearch-text-secondary); font-size: var(--seekora-docsearch-font-size-xs); }
.seekora-docsearch-footer-logo-link { display: flex; align-items: center; color: var(--seekora-docsearch-text); text-decoration: none; transition: color var(--seekora-docsearch-transition-fast) ease; }
.seekora-docsearch-footer-logo-link:hover { color: var(--seekora-docsearch-primary); }
.seekora-docsearch-logo { height: 16px; width: auto; }
@media (max-width: 640px) { .seekora-docsearch-footer { justify-content: center; } .seekora-docsearch-footer-commands { display: none; } }
