/* base.css */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:      #f2f7fc;
  --surface: rgba(255, 255, 255, 0.78);
  --border:  rgba(170, 205, 225, 0.45);
  --text:    #28353f;
  --muted:   #7a98aa;
  --accent:  #5fa8d3;
  --radius:  16px;
  --shadow:  0 4px 28px rgba(90, 150, 190, 0.13);
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Roboto Mono', monospace;
  color: var(--text);
  background: var(--bg);
  cursor: none;
}

* {
  cursor: none !important;
}

#cursor-glow {
  position: fixed;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178, 235, 180, 0.4) 0%, transparent 70%);
  filter: blur(32px);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s;
}


#cursor-trail-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9997;
}

::-webkit-scrollbar {
  display: none;
}

a {
  text-decoration: none;
  color: inherit;
}

#nav-sources {
  position: fixed;
  bottom: 28px;
  right: 36px;
  z-index: 100;
  pointer-events: all;
}

#search-btn {
  position: fixed;
  bottom: 28px;
  left: 36px;
  z-index: 100;
  pointer-events: all;
  background: none;
  border: none;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color 0.2s;
}

#search-btn:hover {
  color: var(--text);
}

#search-panel {
  position: fixed;
  bottom: 64px;
  left: 36px;
  z-index: 100;
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

#search-panel.open {
  display: flex;
}

#search-input {
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text);
  outline: none;
}

#search-input::placeholder {
  color: var(--muted);
}

#search-results {
  max-height: 280px;
  overflow-y: auto;
}

.search-result {
  padding: 10px 16px;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s;
}

.search-result:last-child {
  border-bottom: none;
}

.search-result:hover {
  background: rgba(100, 160, 200, 0.08);
}

.search-result-title {
  display: block;
  margin-bottom: 2px;
}

.search-result-kw {
  color: var(--muted);
  font-size: 10px;
}

#filter-badge {
  background: rgba(100, 160, 200, 0.15);
  border: 1px solid rgba(100, 160, 200, 0.4);
  border-radius: 20px;
  padding: 2px 12px;
  font-size: 11px;
  color: var(--text);
  letter-spacing: 0.04em;
}

#filter-badge::after {
  content: ' ×';
  opacity: 0.5;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 36px;
  background: linear-gradient(to bottom, rgba(242, 247, 252, 0.95) 0%, transparent 100%);
  pointer-events: none;
}

nav * {
  pointer-events: all;
}

.nav-title {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a,
.nav-back,
.nav-btn {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.nav-links a:hover,
.nav-back:hover,
.nav-links a.active,
.nav-btn:hover {
  color: var(--text);
}
