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

:root {
  --home-primary: #007aff;
  --home-primary-soft: #e8f4ff;
  --home-text-muted: #666666;
  --home-text-subtle: #999999;
  --home-border: #ebebeb;
  --home-surface: #fafafa;
}

body {
  font-family: Inter, sans-serif;
  background: #f8f9fa;
}

#app {
  min-height: 100vh;
}

/* Mirror index.html FOUC guard (opacity); reveal only after hydrate — see entry-client */
html:not(.styles-ready) #app {
  opacity: 0;
}

html.styles-ready #app {
  opacity: 1;
  transition: opacity 0.15s ease;
}

/*
  Strip default button borders (also flashes on SSR nav before scoped CSS).
  Pill/tab look is set by the rules below.
*/
#app button {
  appearance: none;
  -webkit-appearance: none;
  font-family: Inter, sans-serif;
}

#app button:focus {
  outline: none;
}

/* Category sidebar tabs */
.question-list-page__sidebar-tab {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #f1f5f9;
  border-radius: 999px;
  background: #ffffff;
  font-size: 15px;
  font-weight: 400;
  color: #64748b;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.question-list-page__sidebar-tab--active {
  border-color: #007aff;
  background: #007aff;
  color: #ffffff;
  font-weight: 600;
}

/* Filter pills: Cambridge book, Topic/Type */
.question-list-page__pill {
  margin: 0;
  padding: 6px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  font-size: 15px;
  font-weight: 400;
  color: #666666;
  cursor: pointer;
  text-decoration: none;
}

.question-list-page__pill--active {
  border-color: #007aff;
  background: #007aff;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
}

/* List pagination */
.question-list-page__page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  font-size: 15px;
  color: #666666;
  cursor: pointer;
}

.question-list-page__page-btn--active {
  border-color: #007aff;
  background: #007aff;
  color: #ffffff;
  border-radius: 999px;
}

/* Nav Login CTA */
.home-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 6px 14px;
  border: none;
  border-radius: 9999px;
  background: #007aff;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Basic-keys entry: no default button border if nested */
.question-list-page__basic-keys {
  text-decoration: none;
  color: inherit;
}
