/**
 * W19 — REVOLD Network FAB (shared Club · Classifieds · Blog)
 * Dark navy capsule + gold rim; collapsed circle TOP-RIGHT; expands LEFT.
 * prefers-reduced-motion: instant open/close (no width/opacity animation).
 */
:root {
  --rc-nfab-navy: #0B1424;
  --rc-nfab-navy-mid: #121C2E;
  --rc-nfab-navy-deep: #070B14;
  --rc-nfab-gold: #F5C518;
  --rc-nfab-gold-bright: #FFE56B;
  --rc-nfab-ink: #0A0A0A;
  --rc-nfab-chrome-ink: #E8EEF8;
  --rc-nfab-z: 99995;
  --rc-nfab-size: 48px;
}

/* Hide legacy header network chrome when FAB is live (footer strips stay). */
body.rc-nfab-on .rc-network--header,
body.rc-nfab-on .header-inner > .rc-network--chrome,
body.rc-nfab-on .rcy-network-strip {
  display: none !important;
}

.rc-nfab {
  position: fixed;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + 12px);
  right: 12px;
  z-index: var(--rc-nfab-z);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  pointer-events: none;
}

.rc-nfab__shell {
  pointer-events: auto;
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0;
  min-height: var(--rc-nfab-size);
  max-width: var(--rc-nfab-size);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    var(--rc-nfab-navy-mid) 0%,
    var(--rc-nfab-navy) 55%,
    var(--rc-nfab-navy-deep) 100%
  );
  border: 1px solid rgba(245, 197, 24, 0.55);
  box-shadow:
    0 14px 44px -16px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(245, 197, 24, 0.28),
    0 0 28px -10px rgba(245, 197, 24, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 -1px 0 rgba(0, 0, 0, 0.35) inset;
  overflow: hidden;
  transition: max-width 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease;
}

.rc-nfab.is-open .rc-nfab__shell {
  max-width: min(96vw, 980px);
  box-shadow:
    0 18px 48px -14px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(245, 197, 24, 0.4),
    0 0 36px -8px rgba(245, 197, 24, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.rc-nfab__toggle {
  flex: 0 0 var(--rc-nfab-size);
  width: var(--rc-nfab-size);
  height: var(--rc-nfab-size);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--rc-nfab-gold-bright);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.rc-nfab__toggle:focus-visible {
  outline: 3px solid var(--rc-nfab-gold-bright);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px rgba(11, 20, 36, 0.9), 0 0 0 4px rgba(255, 229, 107, 0.45);
}

.rc-nfab__toggle-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(245, 197, 24, 0.55);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.rc-nfab.is-open .rc-nfab__toggle-glyph {
  background: rgba(245, 197, 24, 0.18);
}

.rc-nfab__panel {
  display: flex;
  align-items: center;
  gap: 0.45rem 0.55rem;
  padding: 0.28rem 0.35rem 0.28rem 0.7rem;
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  max-width: 0;
  overflow: hidden;
}

.rc-nfab.is-open .rc-nfab__panel {
  opacity: 1;
  visibility: visible;
  max-width: 920px;
  overflow: visible;
}

.rc-nfab__label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rc-nfab-gold-bright);
  font-weight: 800;
  padding: 0 0.1rem;
  flex-shrink: 0;
  text-shadow: 0 0 16px rgba(245, 197, 24, 0.25);
}

.rc-nfab__seg {
  display: inline-flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  max-width: min(78vw, 720px);
}

.rc-nfab__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  color: var(--rc-nfab-chrome-ink) !important;
  text-decoration: none;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  min-height: 36px;
  box-sizing: border-box;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.15;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.rc-nfab__link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

.rc-nfab__link:focus-visible {
  outline: 3px solid var(--rc-nfab-gold-bright);
  outline-offset: 2px;
}

.rc-nfab__link--here {
  background: var(--rc-nfab-gold-bright);
  color: var(--rc-nfab-ink) !important;
  box-shadow:
    0 0 0 1px rgba(245, 197, 24, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 2px 8px -2px rgba(245, 197, 24, 0.45);
  font-weight: 800;
}

.rc-nfab__link--here:hover {
  background: #ffd93d;
  color: var(--rc-nfab-ink) !important;
}

.rc-nfab__live {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.15rem;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rc-nfab-ink);
  background: rgba(245, 197, 24, 0.9);
  border: 1px solid rgba(255, 229, 107, 0.55);
  font-weight: 800;
  white-space: nowrap;
}

.rc-nfab__live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0a0a0a;
  flex-shrink: 0;
}

.rc-nfab__more {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(245, 197, 24, 0.28);
}

.rc-nfab__more .rc-nfab__link {
  font-size: 0.78rem;
  min-height: 32px;
  padding: 0.28rem 0.62rem;
  font-weight: 650;
}

.rc-nfab__lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.rc-nfab__lang a,
.rc-nfab__lang span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 32px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--rc-nfab-chrome-ink);
}

.rc-nfab__lang a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.rc-nfab__lang a:focus-visible {
  outline: 3px solid var(--rc-nfab-gold-bright);
  outline-offset: 1px;
}

.rc-nfab__lang .is-active {
  color: var(--rc-nfab-gold-bright);
}

.rc-nfab__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .rc-nfab {
    top: calc(var(--wp-admin--admin-bar--height, 0px) + 8px);
    right: 8px;
  }
  .rc-nfab.is-open .rc-nfab__shell {
    max-width: calc(100vw - 16px);
  }
  .rc-nfab__panel {
    flex-wrap: wrap;
    white-space: normal;
    max-width: calc(100vw - 72px);
  }
  .rc-nfab.is-open .rc-nfab__panel {
    max-width: calc(100vw - 72px);
  }
  .rc-nfab__seg {
    max-width: 100%;
  }
  .rc-nfab__link {
    min-height: 44px;
    padding: 0.45rem 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rc-nfab__shell,
  .rc-nfab__panel,
  .rc-nfab__link {
    transition: none !important;
  }
}
