/**
 * File: /var/www/flippulse.ohiomade.us/public/assets/css/shell-fix.css
 * Version: v1.0.1-header-accuracy-pass
 * Last edited: 2026-05-15 03:58:00 -0400
 *
 * FlipPulse Shell Fix
 * Purpose:
 * - Fix shared FlipPulse header/top nav/bottom nav without changing page layouts
 * - Keep FlipPulse unique sizing, not OhioMade dashboard sizing
 */

/* =========================
   TOP SHELL
   ========================= */

body .fp-shell-topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 95 !important;
  display: block !important;
  padding:
    calc(10px + env(safe-area-inset-top))
    14px
    10px !important;
  background:
    linear-gradient(180deg, rgba(2,6,23,.96), rgba(2,6,23,.86)) !important;
  border-bottom: 1px solid rgba(148,163,184,.10) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

body .fp-shell-inner {
  width: min(100%, 1180px) !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  min-width: 0 !important;
}

/* =========================
   BRAND
   ========================= */

body .fp-shell-brand {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  color: #e2e8f0 !important;
  text-decoration: none !important;
  min-width: 0 !important;
}

body .fp-shell-logo-mark {
  width: 38px !important;
  height: 38px !important;
  border-radius: 14px !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(14,165,233,.10) !important;
  border: 1px solid rgba(14,165,233,.36) !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
}

body .fp-shell-logo-mark img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
}

body .fp-shell-brand-text {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

body .fp-shell-brand-text strong {
  color: #e2e8f0 !important;
  font-size: 1.16rem !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  letter-spacing: -.02em !important;
  text-decoration: none !important;
}

body .fp-shell-brand-text span {
  color: #94a3b8 !important;
  font-size: .72rem !important;
  line-height: 1.15 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* =========================
   TOP NAV
   ========================= */

body .fp-shell-nav {
  width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  padding: 0 0 2px !important;
  margin: 0 !important;
}

body .fp-shell-nav::-webkit-scrollbar {
  display: none !important;
}

body .fp-shell-nav-link {
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  border: 1px solid transparent !important;
  background: rgba(15,23,42,.20) !important;
  color: #e2e8f0 !important;
  text-decoration: none !important;
  font-size: .76rem !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  white-space: nowrap !important;

  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  flex: 0 0 auto !important;
}

body .fp-shell-nav-link.is-active {
  background: rgba(14,165,233,.16) !important;
  border-color: rgba(14,165,233,.52) !important;
  color: #f8fbff !important;
}

/* =========================
   BOTTOM NAV
   ========================= */

body .fp-shell-bottom-nav {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 96 !important;

  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;

  padding:
    8px
    10px
    calc(8px + max(12px, env(safe-area-inset-bottom))) !important;

  background: rgba(2,6,23,.94) !important;
  border-top: 1px solid rgba(148,163,184,.10) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

body .fp-shell-bottom-link {
  height: 38px !important;
  min-height: 38px !important;
  max-width: 128px !important;
  flex: 1 1 0 !important;

  border-radius: 999px !important;
  border: 1px solid rgba(148,163,184,.16) !important;
  background: rgba(15,23,42,.12) !important;
  color: #e2e8f0 !important;
  text-decoration: none !important;

  font-size: .74rem !important;
  font-weight: 650 !important;
  line-height: 1 !important;

  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 0 10px !important;
}

body .fp-shell-bottom-link.is-active {
  border-color: rgba(14,165,233,.66) !important;
  background: rgba(14,165,233,.14) !important;
  color: #f8fbff !important;
}

/* =========================
   ICON SIZE CONTROL
   ========================= */

body .fp-shell-topbar svg,
body .fp-shell-bottom-nav svg,
body .fp-shell-topbar .fp-icon,
body .fp-shell-bottom-nav .fp-icon {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  min-height: 17px !important;
  max-width: 17px !important;
  max-height: 17px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 !important;
  color: currentColor !important;
  fill: currentColor !important;
  stroke: currentColor !important;
  flex: 0 0 auto !important;
}

/* =========================
   DESKTOP
   ========================= */

@media (min-width: 760px) {
  body .fp-shell-topbar {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  body .fp-shell-inner {
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 18px !important;
  }

  body .fp-shell-brand {
    width: auto !important;
  }

  body .fp-shell-nav {
    justify-content: flex-end !important;
  }

  body .fp-shell-bottom-nav {
    max-width: 760px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    border-radius: 22px 22px 0 0 !important;
    border-left: 1px solid rgba(148,163,184,.08) !important;
    border-right: 1px solid rgba(148,163,184,.08) !important;
  }
}

/* =========================
   SMALL PHONE
   ========================= */

@media (max-width: 420px) {
  body .fp-shell-topbar {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body .fp-shell-logo-mark {
    width: 36px !important;
    height: 36px !important;
  }

  body .fp-shell-brand-text strong {
    font-size: 1.08rem !important;
  }

  body .fp-shell-brand-text span {
    font-size: .68rem !important;
  }

  body .fp-shell-nav-link {
    height: 35px !important;
    min-height: 35px !important;
    padding-left: 13px !important;
    padding-right: 13px !important;
    font-size: .72rem !important;
  }

  body .fp-shell-bottom-link {
    height: 37px !important;
    min-height: 37px !important;
    font-size: .7rem !important;
    gap: 6px !important;
  }
}