/* ============================================================
   MEA Reviews — Breadcrumbs
   Light "tech / computer" themed breadcrumb trail, matching the
   site footer. Self-contained: depends on no external CSS or JS.
   Tokens are scoped to .mea-crumbs so they won't clash with the
   rest of the site if the page defines its own :root vars.
   ============================================================ */

.mea-crumbs {
  /* ---- Design tokens (mirror of footer, light tech accent) ---- */
  --c-bg: #ffffff;
  --c-surface: #f4f4f4;
  --c-border: #e0e0e0;
  --c-text: #1f2733;
  --c-muted: #5b6676;
  --c-faint: #8a94a6;
  --c-accent: #0f62fe;      /* electric blue */
  --c-accent-2: #06b6d4;    /* cyan */

  --c-radius: 0;
  --c-duration: 180ms;
  --c-ease: cubic-bezier(0.16, 1, 0.3, 1);

  --c-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --c-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  font-family: var(--c-sans);
  padding: 0.5rem clamp(1rem, 0.5rem + 2vw, 2.5rem);
  max-width: 1200px;
  margin: 0 auto;
}

.mea-crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mea-crumbs__item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

/* Links */
.mea-crumbs__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--c-radius);
  color: var(--c-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--c-duration) var(--c-ease),
              background-color var(--c-duration) var(--c-ease);
}

.mea-crumbs__link:hover,
.mea-crumbs__link:focus-visible {
  color: var(--c-accent);
  background: var(--c-surface);
  outline: none;
}

.mea-crumbs__link:focus-visible {
  box-shadow: none;
}

.mea-crumbs__icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--c-accent);
  transition: transform var(--c-duration) var(--c-ease);
}

.mea-crumbs__link:hover .mea-crumbs__icon {
  transform: translateY(-1px);
}

/* Separator chevron */
.mea-crumbs__sep {
  display: inline-flex;
  align-items: center;
  color: var(--c-faint);
}

.mea-crumbs__sep svg {
  width: 14px;
  height: 14px;
}

/* Current (last) crumb — the page you're on */
.mea-crumbs__current {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: var(--c-radius);
  background: linear-gradient(135deg, rgba(15, 98, 254, 0.10), rgba(6, 182, 212, 0.10));
  border: 1px solid var(--c-border);
  color: var(--c-text);
  font-family: var(--c-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  max-width: 60vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Responsive ---------- */
@media (max-width: 540px) {
  .mea-crumbs {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }
  .mea-crumbs__link {
    padding: 0.3rem 0.45rem;
    font-size: 0.78rem;
  }
  /* Hide the "Home" text label on tiny screens, keep the icon */
  .mea-crumbs__link--home span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mea-crumbs * { transition: none !important; }
}
