/* ===== COMPONENT STYLES ===== */
/* Cards */
.step-card, .feature-card {
  background: var(--bg-surface); border-radius: var(--radius-xl);
  border: 1px solid var(--border-standard); padding: 2rem;
  transition: all var(--transition-base);
}
.step-card:hover, .feature-card:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}
.match-card:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

/* Tags */
.tag {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.6875rem; font-weight: 510;
  background: var(--bg-hover); color: var(--text-tertiary);
  border: 1px solid var(--border-subtle);
}

/* Chips */
.chip {
  padding: 0.375rem 0.75rem; border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 400;
  background: var(--bg-hover); color: var(--text-secondary);
  border: 1px solid var(--border-standard);
  cursor: pointer; transition: all var(--transition-fast);
}
.chip:hover { border-color: var(--gold-border); color: var(--text-primary); }
.chip-active {
  background: var(--gold-bg); color: var(--gold);
  border-color: var(--gold-border);
}

/* Neighborhood region groups */
.hood-region {
  border: 1px solid var(--border-standard);
  border-radius: var(--radius-lg);
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.hood-region[open] { border-color: var(--border-visible); }
.hood-region-summary {
  padding: 0.625rem 0.875rem;
  cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-hover);
  transition: background var(--transition-fast);
}
.hood-region-summary:hover { background: var(--bg-elevated); }
.hood-region-summary::before {
  content: '▸'; font-size: 0.625rem;
  transition: transform var(--transition-fast);
  color: var(--text-tertiary);
}
.hood-region[open] > .hood-region-summary::before { transform: rotate(90deg); }
.hood-region[open] > .hood-region-summary {
  border-bottom: 1px solid var(--border-standard);
}

/* Checkbox cards */
.checkbox-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem; border-radius: var(--radius-lg);
  background: var(--bg-hover); border: 1px solid var(--border-standard);
  cursor: pointer; transition: all var(--transition-fast);
}
.checkbox-card:hover { border-color: var(--border-visible); }
.checkbox-card.selected {
  background: var(--gold-bg); border-color: var(--gold-border);
}

/* Inputs */
.input, .select-sm {
  width: 100%; padding: 0.625rem 0.875rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated); color: var(--text-primary);
  border: 1px solid var(--border-standard);
  font-size: 0.9375rem; transition: all var(--transition-fast);
  font-family: var(--font-sans);
}
.input:focus { border-color: var(--gold); outline: none; box-shadow: 0px 0px 0px 2px var(--gold-bg); }
.input::placeholder { color: var(--text-muted); }

.field {
  display: block; margin-bottom: 1rem;
}
.field > .label {
  display: block; margin-bottom: 0.375rem;
  color: var(--text-secondary); font-size: 0.8125rem; font-weight: 510;
}

/* Range */
.range {
  width: 100%; height: 4px;
  -webkit-appearance: none; appearance: none;
  background: var(--border-standard); border-radius: 2px;
  outline: none;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold); cursor: pointer;
  border: 2px solid var(--bg-surface);
  box-shadow: 0px 2px 6px rgba(0,0,0,0.2);
}
.range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold); cursor: pointer;
  border: 2px solid var(--bg-surface);
}

/* Select */
select.input, select.select-sm { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' fill='none' stroke='%238a8f98' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2rem; }

/* Toast */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200;
  padding: 0.75rem 1.25rem; border-radius: var(--radius-lg);
  font-size: 0.875rem; font-weight: 510;
  animation: slideIn 0.3s ease;
  box-shadow: var(--shadow-elevated);
  max-width: 360px;
}
.toast-success { background: #0d3320; color: #4ade80; border: 1px solid rgba(74,222,128,0.2); }
.toast-error { background: #3b1219; color: #f87171; border: 1px solid rgba(248,113,113,0.2); }
.toast-info { background: #1a1b2e; color: #818cf8; border: 1px solid rgba(129,140,248,0.2); }
@keyframes slideIn { from { transform: translateY(1rem); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Nav */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,9,10,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-link:hover { background: var(--bg-hover); color: var(--text-primary) !important; }
.nav-link.active { color: var(--gold) !important; background: var(--gold-bg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-family: var(--font-sans); font-weight: 510;
  border: 1px solid transparent; border-radius: var(--radius-md);
  cursor: pointer; transition: all var(--transition-fast);
  text-decoration: none; white-space: nowrap;
  padding: 0.625rem 1.25rem; font-size: 0.9375rem;
}
.btn-primary {
  background: var(--gold); color: #000;
  border-color: var(--gold);
}
.btn-primary:hover { filter: brightness(1.15); }
.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border-color: var(--border-standard);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-visible); }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
[data-action="lang-toggle"],
[data-action="theme-toggle"] {
  font-size: 0.75rem; font-weight: 600;
  min-width: 40px; justify-content: center;
}

@media (max-width: 768px) {
  .nav-links { display: none !important; }
  .nav-mobile-toggle { display: block !important; }
  .nav-mobile-toggle.open + #mobile-nav,
  #mobile-nav.open { display: flex !important; }
}

/* Modal */
.modal-content { animation: modalIn 0.2s ease; }
@keyframes modalIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Chat bubbles */
#chat-messages::-webkit-scrollbar { width: 4px; }
#chat-messages::-webkit-scrollbar-thumb { background: var(--border-standard); border-radius: 2px; }
