/* ==================== GLOBAL THEME & VARIABLES ==================== */
:root {
  /* Common typography & dimensions */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition-fast: 0.15s ease;
  --max-width: 1120px;
}

/* Light Theme (Default Google/Startpage Clean Aesthetic) */
html[data-theme="light"] {
  --bg-page: #ffffff;
  --bg-surface: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #ffffff;
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #2563eb;
  
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --link-color: #1a0dab;
  --link-visited: #681da8;
  --link-hover: #1e40af;
  --url-breadcrumb: #4b5563;
  
  --accent-primary: #2563eb;
  --accent-primary-hover: #1d4ed8;
  --accent-surface: #eff6ff;
  --accent-border: #bfdbfe;
  
  --badge-ecosystem-bg: #e0f2fe;
  --badge-ecosystem-text: #0369a1;
  --badge-web-bg: #f1f5f9;
  --badge-web-text: #334155;
  --badge-wiki-bg: #fef3c7;
  --badge-wiki-text: #92400e;
  --badge-hn-bg: #ffedd5;
  --badge-hn-text: #c2410c;
  --badge-bm-bg: #dcfce7;
  --badge-bm-text: #15803d;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-search: 0 1px 6px rgba(32, 33, 36, 0.2);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-modal: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Dark Theme (Google Dark / Modern Slate Aesthetic) */
html[data-theme="dark"] {
  --bg-page: #0f172a;
  --bg-surface: #1e293b;
  --bg-card: #1e293b;
  --bg-card-hover: #273549;
  --bg-input: #1e293b;
  --border-subtle: #334155;
  --border-medium: #475569;
  --border-focus: #38bdf8;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --link-color: #8ab4f8;
  --link-visited: #c58af9;
  --link-hover: #bfdbfe;
  --url-breadcrumb: #94a3b8;
  
  --accent-primary: #38bdf8;
  --accent-primary-hover: #7dd3fc;
  --accent-surface: rgba(56, 189, 248, 0.12);
  --accent-border: rgba(56, 189, 248, 0.35);
  
  --badge-ecosystem-bg: rgba(56, 189, 248, 0.15);
  --badge-ecosystem-text: #38bdf8;
  --badge-web-bg: rgba(255, 255, 255, 0.08);
  --badge-web-text: #cbd5e1;
  --badge-wiki-bg: rgba(245, 158, 11, 0.15);
  --badge-wiki-text: #fbbf24;
  --badge-hn-bg: rgba(249, 115, 22, 0.15);
  --badge-hn-text: #fb923c;
  --badge-bm-bg: rgba(34, 197, 94, 0.15);
  --badge-bm-text: #4ade80;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-search: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

/* ==================== BASE STYLES ==================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

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

a:hover {
  text-decoration: underline;
}

/* ==================== HEADER & NAVIGATION ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hub-back-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.hub-back-link:hover {
  color: var(--accent-primary);
  text-decoration: none;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-ver {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  background: var(--accent-surface);
  color: var(--accent-primary);
  border: 1px solid var(--accent-border);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-action-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.lang-btn {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: none;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
}

.lang-btn:not(.active):hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.github-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.github-nav-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  text-decoration: none;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 18px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==================== MAIN HERO & SEARCH BAR ==================== */
.main-content {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 48px 20px;
}

.search-hero {
  max-width: 680px;
  margin: 20px auto 32px auto;
  text-align: center;
}

.hero-brand {
  margin-bottom: 24px;
}

.brand-title {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 6px;
}

.brand-logo-text {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* Search Bar Wrapper */
.search-container {
  position: relative;
  margin-bottom: 16px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-search);
  padding: 6px 16px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-bar:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 1px 8px rgba(37, 99, 235, 0.3);
}

.search-bar-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-right: 12px;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  padding: 8px 0;
}

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

.search-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.search-clear-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.search-enter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 15px;
  font-family: inherit;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
  line-height: 1;
}

.search-enter-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

/* Autocomplete Suggestions Dropdown */
.suggestions-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  z-index: 40;
  overflow: hidden;
  text-align: left;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.suggestion-item:hover,
.suggestion-item.selected {
  background: var(--bg-card-hover);
  color: var(--accent-primary);
}

.suggestion-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ==================== RESULTS LAYOUT ==================== */
.results-wrapper {
  margin-top: 10px;
}

.results-status-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
}

.status-latency {
  color: var(--accent-primary);
  font-weight: 600;
  margin-left: 10px;
}

.btn-sm-action {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-sm-action:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

/* Grid Layout: Main results left, Knowledge Card right */
.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

/* Google-Style Center Action Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.btn-google-action {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-google-action:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Active Search View (Google Results Layout Mode) */
.main-content.has-results .search-hero {
  margin: 10px 0 16px 0;
  max-width: 680px;
  text-align: left;
}

.main-content.has-results .hero-brand {
  display: none;
}

.main-content.has-results .hero-actions {
  display: none;
}

.main-content.has-results .info-section {
  display: none;
}

.results-main {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Single Result Item (Authentic Google Style) */
.result-item {
  background: transparent;
  text-align: left;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.result-favicon {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  object-fit: contain;
}

.result-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 550px;
}

.result-verified-badge {
  font-size: 11px;
  color: #16a34a;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 1px 7px;
  border-radius: 4px;
  font-weight: 600;
}

.result-title {
  font-size: 20px;
  font-weight: 400;
  color: var(--link-color);
  line-height: 1.3;
  display: inline-block;
  margin-bottom: 4px;
  text-decoration: none;
}

.result-title:hover {
  text-decoration: underline;
}

.result-snippet {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.58;
  word-break: break-word;
}

.result-snippet mark {
  background: rgba(254, 240, 138, 0.4);
  color: inherit;
  font-weight: 600;
  padding: 0 2px;
  border-radius: 2px;
}

html[data-theme="dark"] .result-snippet mark {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
}

.result-actions {
  display: none;
}

/* Knowledge Card Panel (Right Sidebar) */
.results-sidebar {
  position: sticky;
  top: 76px;
}

.knowledge-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.knowledge-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  border: 1px solid var(--border-subtle);
}

.knowledge-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.knowledge-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.knowledge-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
}

.knowledge-footer {
  font-size: 12px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.knowledge-source {
  color: var(--text-muted);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 16px auto;
}

/* ==================== INFO SECTION ==================== */
.info-section {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.info-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.info-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 28px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
}

.info-card-icon {
  font-size: 1.75rem;
  margin-bottom: 10px;
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.info-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-surface);
  color: var(--accent-primary);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

/* ==================== MODALS ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 540px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  flex: 1 1 auto;
  min-height: 0;
}

.settings-group {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.settings-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-group-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.settings-row label {
  font-size: 14px;
  color: var(--text-primary);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.setting-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  padding: 8px 12px;
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: var(--bg-surface);
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.btn-cancel {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
}

.btn-cancel:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.btn-primary-modal {
  background: var(--accent-primary);
  border: 1px solid transparent;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.btn-primary-modal:hover {
  background: var(--accent-primary-hover);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 860px) {
  .results-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .results-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 640px) {
  .nav-container {
    padding: 10px 14px;
  }

  .mobile-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-modal);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-action-btn,
  .github-nav-btn {
    justify-content: center;
  }

  .lang-switch {
    width: 100%;
  }

  .lang-btn {
    flex: 1;
    text-align: center;
  }

  .brand-title {
    font-size: 2.1rem;
  }

  .search-buttons {
    flex-direction: column;
  }

  .btn-search-primary,
  .btn-search-secondary {
    width: 100%;
  }

  .category-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .category-tab {
    white-space: nowrap;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
}
