/* style.css */

:root {
  --bg-color: #ffffff;
  --text-color: #111111;
  --secondary-color: #555;
  --highlight-color: #ff006e;
}

body.theme-dark {
  --bg-color: #111111;
  --text-color: #ffffff;
  --secondary-color: #aaa;
  --highlight-color: #ffb703;
}

body {
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  box-sizing: border-box;
  height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: sans-serif;
  overflow: hidden;
}

header {
  padding: 1rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: var(--bg-color);
  z-index: 10;
}

.theme-toggle {
  border: none;
  background: none;
  font-size: 1.2rem;
  color: var(--text-color);
  cursor: pointer;
}

main {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.result {
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.result-title {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.result-snippet {
  color: var(--secondary-color);
}

.highlight {
  background-color: var(--highlight-color);
  padding: 0 2px;
  border-radius: 3px;
}

footer {
  padding: 0.5rem;
  border-top: 1px solid var(--secondary-color);
  background: var(--bg-color);
  z-index: 10;
}

input[type="text"] {
  width: 100%;
  font-size: 1.2rem;
  padding: 0.6rem;
  border: none;
  border-radius: 8px;
  background: var(--secondary-color);
  color: var(--bg-color);
}

input[type="text"]::placeholder {
  color: var(--bg-color);
  opacity: 0.5;
}

