/* Cwick Search — Brand Override */

:root {
  --cwick-cyan: #00e5ff;
  --cwick-purple: #7c4dff;
  --cwick-bg: #0a0a0f;
  --cwick-surface: #13131a;
  --cwick-border: #1e1e2a;
  --cwick-text: #c8c8d4;
  --cwick-text-dim: #666680;
}

/* Dark theme overrides */
html.theme-dark {
  --color-base-background: var(--cwick-bg) !important;
  --color-search-background: var(--cwick-surface) !important;
  --color-search-border: var(--cwick-border) !important;
  --color-btn-background: var(--cwick-purple) !important;
  --color-btn-font: #fff !important;
  --color-settings-tr-hover: #1a1a28 !important;
}

html.theme-dark body {
  background: var(--cwick-bg) !important;
}

/* Logo */
.cwick-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.cwick-logo {
  width: 320px;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.08));
  transition: filter 0.3s ease;
}

.cwick-logo:hover {
  filter: drop-shadow(0 0 40px rgba(0, 229, 255, 0.15));
}

/* Hide original title */
.index .title {
  display: none !important;
}

/* Tagline */
.cwick-tagline {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cwick-text-dim);
  font-weight: 300;
}

/* Search input styling */
html.theme-dark .search_box {
  border-color: var(--cwick-border) !important;
  background: var(--cwick-surface) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html.theme-dark .search_box:focus-within {
  border-color: var(--cwick-cyan) !important;
  box-shadow: 0 0 0 1px var(--cwick-cyan), 0 0 20px rgba(0, 229, 255, 0.08) !important;
}

/* Search button */
html.theme-dark #search_submit {
  background: var(--cwick-purple) !important;
  color: #fff !important;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

html.theme-dark #search_submit:hover {
  background: #9c6fff !important;
  box-shadow: 0 0 15px rgba(124, 77, 255, 0.3) !important;
}

/* Result links */
html.theme-dark .result .url_wrapper a,
html.theme-dark .result-default .url_wrapper a {
  color: var(--cwick-cyan) !important;
}

html.theme-dark .result h3 a {
  color: #e0e0ec !important;
}

html.theme-dark .result h3 a:hover {
  color: var(--cwick-cyan) !important;
}

html.theme-dark .result h3 a:visited {
  color: var(--cwick-purple) !important;
}

/* Category tabs */
html.theme-dark .category_checkbox label {
  transition: color 0.2s ease, border-color 0.2s ease;
}

html.theme-dark .category_checkbox input[type="checkbox"]:checked + label {
  color: var(--cwick-cyan) !important;
  border-bottom-color: var(--cwick-cyan) !important;
}

/* Footer */
html.theme-dark footer {
  border-top-color: var(--cwick-border) !important;
}

html.theme-dark footer a {
  color: var(--cwick-text-dim) !important;
}

html.theme-dark footer a:hover {
  color: var(--cwick-cyan) !important;
}

/* Scrollbar */
html.theme-dark ::-webkit-scrollbar {
  width: 6px;
}

html.theme-dark ::-webkit-scrollbar-track {
  background: var(--cwick-bg);
}

html.theme-dark ::-webkit-scrollbar-thumb {
  background: var(--cwick-border);
  border-radius: 3px;
}

html.theme-dark ::-webkit-scrollbar-thumb:hover {
  background: var(--cwick-purple);
}

/* Nav links on top */
html.theme-dark #links_on_top a {
  color: var(--cwick-text-dim) !important;
  transition: color 0.2s ease;
}

html.theme-dark #links_on_top a:hover {
  color: var(--cwick-cyan) !important;
}

/* Autocomplete dropdown */
html.theme-dark .autocomplete {
  background: var(--cwick-surface) !important;
  border-color: var(--cwick-border) !important;
}

html.theme-dark .autocomplete .selected {
  background: #1a1a28 !important;
}

/* Short URL Badge */
.cwick-short-url {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.75rem auto 0;
  padding: 0.4rem 0.8rem;
  max-width: fit-content;
  background: var(--cwick-surface);
  border: 1px solid var(--cwick-border);
  border-radius: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  transition: border-color 0.2s ease;
}

.cwick-short-url:hover {
  border-color: var(--cwick-cyan);
}

.cwick-short-url-label {
  color: var(--cwick-text-dim);
  font-weight: 400;
}

.cwick-short-url-link {
  color: var(--cwick-cyan) !important;
  text-decoration: none !important;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-weight: 500;
  transition: color 0.2s ease;
}

.cwick-short-url-link:hover {
  color: #fff !important;
}

.cwick-copy-btn {
  background: transparent;
  border: 1px solid var(--cwick-border);
  color: var(--cwick-text-dim);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.cwick-copy-btn:hover {
  border-color: var(--cwick-cyan);
  color: var(--cwick-cyan);
}

.cwick-copy-btn.copied {
  border-color: var(--cwick-cyan);
  color: var(--cwick-cyan);
  background: rgba(0, 229, 255, 0.08);
}
