/* ======================================================
   FOOTER — MOBILE FOOTER BAR
   Auto-Tech Elektronika
   PLIK: footer-mobile.css
   ZAKRES: TYLKO MOBILE
   (ładowany przez <link media>)
====================================================== */

/* ==============================
   ZMIENNE — TYLKO MOBILE
============================== */

:root {
  --mobile-footer-bg: #ffffff;
  --mobile-footer-border: #e5e7eb;

  --mobile-footer-icon: #347cb3;
  --mobile-footer-icon-bg: rgba(37, 99, 235, 0.04);
  --mobile-footer-icon-bg-hover: rgba(37, 99, 235, 0.12);
}

/* ==============================
   MOBILE FOOTER BAR — KANON
============================== */

.mobile-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  height: 64px;
  padding: 0 6px calc(env(safe-area-inset-bottom, 0px));

  display: flex;
  align-items: center;
  justify-content: space-around;

  background: var(--mobile-footer-bg);
  border-top: 1px solid var(--mobile-footer-border);

  z-index: 200;
}

/* delikatny cień nad stopką */
.mobile-footer::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.08),
    rgba(0,0,0,0)
  );
}

/* ==============================
   IKONY / LINKI
============================== */

.mobile-footer a {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;
  color: var(--mobile-footer-icon);
  background: var(--mobile-footer-icon-bg);
  text-decoration: none;

  transition:
    background-color 0.15s ease,
    transform 0.1s ease;
}

.mobile-footer a:hover {
  background: var(--mobile-footer-icon-bg-hover);
}

.mobile-footer a:active {
  transform: scale(0.95);
}

/* ==============================
   SVG
============================== */

.mobile-footer .icon {
  width: 28px;
  height: 28px;
  display: block;
}

.mobile-footer .icon path {
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  vector-effect: non-scaling-stroke;
}

/* ==============================
   MOBILE FOOTER — LABELS
============================== */

.mobile-footer .mf-item {
  width: auto;
  min-width: 56px;
  height: auto;

  padding: 6px 8px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.mobile-footer .mf-label {
  font-size: 0.65rem;
  line-height: 1;
  letter-spacing: 0.02em;

  color: rgba(0,0,0,0.55);
  white-space: nowrap;
  user-select: none;
}

/* ==============================
   MOBILE FOOTER — PHONE (ICON ONLY)
============================== */

.mobile-footer .mf-item--phone .icon {
  width: 34px;
  height: 34px;
}

.mobile-footer .mf-item--phone {
  background: rgba(52, 124, 179, 0.12);
}


/* ==============================
   Button w górę hop winda
============================== */

  .fab-top {
    position: fixed;
    right: 16px;
    bottom: calc(64px + 16px); /* NAD mobile footer */
    width: 52px;
    height: 52px;

    border-radius: 50%;
    border: none;

    background: #347cb3;
    color: #fff;
    font-size: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    z-index: 300;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .fab-top.is-visible {
    opacity: 1;
    pointer-events: auto;
  }
  
/* ======================================================
   FACEBOOK IN-APP BROWSER FIX (KANON)
====================================================== */

.fb-browser .mobile-footer {
  bottom: 0px; /* realny FB UI (fullscreen WebView) */
  padding-bottom: 0;
}

.fb-browser .fab-top {
  bottom: calc(32px + 64px + 16px);
}
