:root {
  --bg: #05060a;
  --bg-elevated: #111320;
  --bg-elevated-soft: rgba(12, 14, 26, 0.9);
  --border-soft: rgba(255, 255, 255, 0.08);
  --accent: #4f8bff;
  --accent-soft: rgba(79, 139, 255, 0.15);
  --text-main: #f9fafb;
  --text-muted: #a0a5b8;
  --text-soft: #6b7280;
  --shadow-strong: 0 24px 60px rgba(0, 0, 0, 0.7);
  --radius-lg: 18px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #020617;
  position: relative;
  overflow: hidden;
}

/* Tło z kota – zaczyna się od górnej krawędzi ekranu */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("bg-cat.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  z-index: 0;
}

/* Delikatny gradient przyciemniający, żeby treść była czytelna */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.55), transparent),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.95));
  z-index: -1;
}

.app-shell {
  width: 100%;
  max-width: 720px;
  border-radius: 24px;
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.82)
  );
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(24px) saturate(140%);
  padding: 14px 14px 10px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px 4px;
}

.dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.dot.red {
  background: #ff5f57;
}

.dot.yellow {
  background: #febc2e;
}

.dot.green {
  background: #28c840;
}

.hint {
  font-size: 11px;
  color: var(--text-soft);
}

.spotlight {
  border-radius: 18px;
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.15),
      transparent 55%
    ),
    radial-gradient(
      circle at top right,
      rgba(129, 140, 248, 0.18),
      transparent 60%
    ),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.95);
  padding: 10px 12px 12px;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.9);
}

.search-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #6ee7b7, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon-inner {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid white;
  position: relative;
}

.search-icon-inner::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 2px;
  border-radius: 999px;
  background: white;
  transform: rotate(40deg);
  right: -4px;
  bottom: 0;
}

.search-input-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.search-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-bottom: 1px;
}

#search {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.4;
}

#search::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.kbd-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-soft);
}

.kbd {
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: linear-gradient(
    135deg,
    rgba(51, 65, 85, 0.9),
    rgba(15, 23, 42, 0.9)
  );
  padding: 2px 5px;
  font-size: 9px;
  font-weight: 500;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 1);
}

.content {
  margin-top: 10px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.25);
  overflow: hidden;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px 6px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.85);
}

.results-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-soft);
}

.results-count {
  font-size: 11px;
  color: var(--text-muted);
}

.results-list {
  max-height: 360px;
  overflow-y: auto;
  padding: 4px 6px 6px;
}

.results-list::-webkit-scrollbar {
  width: 6px;
}

.results-list::-webkit-scrollbar-track {
  background: transparent;
}

.results-list::-webkit-scrollbar-thumb {
  background: rgba(55, 65, 81, 0.9);
  border-radius: 999px;
}

.item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 12px;
  transition: background 0.18s ease, transform 0.12s ease,
    box-shadow 0.15s ease, border-color 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.item:hover,
.item:focus-visible {
  outline: none;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.08),
    rgba(129, 140, 248, 0.14)
  );
  border-color: rgba(129, 140, 248, 0.5);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, #4f46e5, #0f172a);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.item-icon img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.item-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-domain {
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
}

.item-desc {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-tag-row {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--text-soft);
}

.chip.accent {
  border-color: rgba(79, 139, 255, 0.85);
  background: rgba(55, 65, 81, 0.95);
  color: #e5edff;
}

.empty-state {
  padding: 22px 16px 20px;
  text-align: center;
  color: var(--text-soft);
  font-size: 13px;
}

.empty-state strong {
  color: var(--text-muted);
}

@media (max-width: 640px) {
  body {
    align-items: flex-start;
    padding: 16px 10px;
  }

  .app-shell {
    max-width: 100%;
    padding: 10px 10px 8px;
    border-radius: 18px;
  }

  .spotlight {
    padding: 8px 8px 10px;
  }

  .search-row {
    padding: 6px 8px;
  }

  .item {
    padding: 7px 7px;
  }

  .item-icon {
    width: 40px;
    height: 40px;
  }

  .item-title {
    font-size: 13px;
  }

  .item-desc {
    font-size: 11px;
  }
}

