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

body {
  background-color: var(--base);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 25vh;
}

.container {
  text-align: center;
  width: 100%;
  max-width: 600px;
  padding: 2rem;
}

h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--rosewater);
  border-radius: 8px;
  background-color: var(--base);
  color: var(--text);
  outline: none;
}

.search-input:focus {
  border-color: var(--text);
}

.search-button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: var(--rosewater);
  color: var(--base);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.search-button:hover {
  opacity: 0.9;
}

.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background-color: var(--surface);
  border: 2px solid var(--rosewater);
  border-radius: 8px;
  display: none;
  z-index: 100;
  margin-right: calc(0.5rem + 80px);
  max-height: 300px;
  overflow-y: auto;
}

.autocomplete-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid var(--border);
}

.autocomplete-item:last-child {
  border-bottom: none;
  border-radius: 0 0 6px 6px;
}

.autocomplete-item:first-child {
  border-radius: 6px 6px 0 0;
}

.autocomplete-item:only-child {
  border-radius: 6px;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
  background-color: var(--highlight);
}

.autocomplete-item.selected {
  background-color: var(--highlight-strong);
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.popup-content {
  background-color: var(--surface);
  border: 2px solid var(--rosewater);
  border-radius: 12px;
  padding: 2rem;
  max-width: 400px;
  text-align: center;
}

.popup-content h2 {
  margin-bottom: 1rem;
  color: var(--text);
}

.popup-content p {
  margin-bottom: 1.5rem;
  color: var(--text);
  opacity: 0.9;
  line-height: 1.5;
}

.popup-button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: var(--rosewater);
  color: var(--base);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.popup-button:hover {
  opacity: 0.9;
}
