/**
 * Woof component primitives built on woof-tokens.css.
 * Prefer Tailwind utilities in templates; use these for consistency or non-Tailwind HTML.
 * Link order: woof-tokens.css then woof-components.css.
 */

.woof-font-display {
  font-family: var(--woof-font-display);
}

.woof-font-ui {
  font-family: var(--woof-font-ui);
  font-optical-sizing: auto;
}

/* Source Sans 3 variable from Google Fonts uses optical sizing; body uses font-sans (same stack). */
body {
  font-optical-sizing: auto;
}

/**
 * Google Material Symbols Outlined (fonts.googleapis.com Material+Symbols+Outlined).
 * Matches the opsz/wght/FILL/GRAD axis defaults in head_assets; keeps icon weight/size consistent.
 */
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.woof-surface-page {
  background-color: var(--woof-surface-page);
  color: var(--woof-text-primary);
  font-family: var(--woof-font-ui);
}

.woof-card {
  background-color: var(--woof-surface-elevated);
  border-radius: var(--woof-radius-xl);
  box-shadow: var(--woof-shadow-md);
  border: 1px solid var(--woof-border-card);
}

.woof-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--woof-radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.woof-btn--brand {
  background-color: var(--woof-brand-700);
  color: var(--woof-text-on-brand);
}

.woof-btn--brand:hover {
  background-color: var(--woof-brand-800);
}

.woof-btn--schedule {
  background-color: var(--woof-schedule-brown);
  color: var(--woof-text-on-brand);
  border-radius: var(--woof-radius-lg);
  padding: 0.875rem 1.25rem;
}

.woof-btn--schedule:hover {
  background-color: var(--woof-schedule-brown-hover);
}

.woof-btn--outline {
  background-color: transparent;
  color: var(--woof-brand-700);
  border: 2px solid var(--woof-border-card);
}

.woof-btn--outline:hover {
  border-color: var(--woof-brand-700);
  background-color: rgba(163, 82, 0, 0.06);
}

.woof-pill {
  display: inline-flex;
  align-items: center;
  border-radius: var(--woof-radius-pill);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.woof-pill--mint {
  background-color: var(--woof-surface-mint);
  color: var(--woof-success-700);
}

.woof-pill--amber {
  background-color: rgba(230, 126, 34, 0.15);
  color: var(--woof-schedule-brown);
}

.woof-input {
  width: 100%;
  border-radius: var(--woof-radius-md);
  border: 2px solid rgba(231, 229, 228, 1);
  padding: 0.75rem 1rem;
  font-family: var(--woof-font-ui);
  font-size: 0.875rem;
  background: var(--woof-surface-elevated);
  color: var(--woof-text-primary);
}

.woof-input:focus {
  outline: none;
  border-color: var(--woof-border-focus);
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

/**
 * Navbar icon wells — 36×36 circle to match Clerk UserButton mount (#user-button uses min 36px).
 * Light fill aligns with Clerk’s default avatar button chrome.
 */
.woof-nav-clerk-icon-circle {
  display: inline-flex;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--woof-surface-muted);
}

/** Placeholder nav actions (notifications, settings): non-interactive, muted glyph. */
.woof-nav-clerk-icon-circle--placeholder {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
  user-select: none;
  color: var(--woof-text-muted);
}

/** Role badge (pets | hiking) next to UserButton: hover brightens well slightly; tooltip shows role-prefixed id. */
.woof-nav-clerk-icon-circle--role {
  cursor: default;
  user-select: none;
  color: var(--woof-text-secondary);
  transition: background-color 0.15s ease;
}

.woof-nav-clerk-icon-circle--role:hover {
  background-color: #e7e5e4;
}
