/* Frenfinder site overrides: dark X-like theme with teal as the primary
   color. Overrides Bootstrap 5.3 CSS variables so components inherit teal. */

/* Brand wordmark font — self-hosted Fredoka variable (weights 300-700, latin
   subset). Body text and headings stay on the system font stack. */
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka/fredoka-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

a.navbar-brand,
.footer-brand,
.brand-title {
  font-family: "Fredoka", system-ui, -apple-system, "Segoe UI", sans-serif;
}

:root,
[data-bs-theme="dark"] {
  --bs-body-bg: #0b0f0e;
  --bs-body-color: #e7edec;
  --bs-primary: #14b8a6;
  --bs-primary-rgb: 20, 184, 166;
  --bs-primary-text-emphasis: #5eead4;
  --bs-primary-bg-subtle: #12312d;
  --bs-link-color: #2dd4bf;
  --bs-link-color-rgb: 45, 212, 191;
  --bs-link-hover-color: #5eead4;
  --bs-navbar-brand-color: #e7edec;
  --bs-navbar-brand-hover-color: #2dd4bf;
}

a.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

a.navbar-brand img {
  height: 26px;
  width: 26px;
}

/* Bootstrap 5.3 buttons bake in hardcoded hex for their own colors, so the
   --bs-primary override above doesn't reach them. Re-map the button-specific
   variables to the teal palette. */
.btn-primary {
  --bs-btn-bg: #14b8a6;
  --bs-btn-border-color: #14b8a6;
  --bs-btn-hover-bg: #0d9488;
  --bs-btn-hover-border-color: #0d9488;
  --bs-btn-active-bg: #0d9488;
  --bs-btn-active-border-color: #0d9488;
  --bs-btn-disabled-bg: #14b8a6;
  --bs-btn-disabled-border-color: #14b8a6;
  --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}

.btn-outline-primary {
  --bs-btn-color: #2dd4bf;
  --bs-btn-border-color: #2dd4bf;
  --bs-btn-hover-bg: #14b8a6;
  --bs-btn-hover-border-color: #14b8a6;
  --bs-btn-active-bg: #0d9488;
  --bs-btn-active-border-color: #0d9488;
}

.text-bg-primary,
.bg-primary {
  background-color: #14b8a6 !important;
  color: #06221f !important;
}

/* "Verified" trust badge — a real blue, distinct from teal primary and
   green success so it stands out from the brand palette. Scoped to
   .badge to beat any generic .text-bg-* default. */
.badge.text-bg-verified {
  background-color: #3b82f6 !important;
  color: #ffffff !important;
}

/* Teal the input focus ring (Bootstrap hardcodes these too). */
.form-control:focus,
.form-select:focus {
  border-color: #2dd4bf;
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Stick the footer to the bottom of short pages. */
html,
body {
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.footer-brand img {
  height: 22px;
  width: 22px;
  vertical-align: middle;
}