/* =========================================================
   AConfession Bottom Navigation SVG UI
   Path: public_html/assets/css/tabbar-svg.css
   Scope: bottom tabbar only.
   ========================================================= */

.tabbar.acf-svg-tabbar {
  height: 66px;
  padding: 7px;
  gap: 5px;
  overflow: hidden;
}

.tabbar.acf-svg-tabbar a {
  min-width: 0;
  display: grid;
  grid-template-rows: 25px 1fr;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 5px 2px 4px;
  border-radius: 17px;
  color: #aab5c8;
  background: transparent;
  transition: background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.tabbar.acf-svg-tabbar a:active {
  transform: scale(.96);
}

.tabbar.acf-svg-tabbar a.active {
  color: #fff;
  background:
    radial-gradient(circle at 50% 8%, rgba(6,182,212,.16), transparent 58%),
    rgba(255,255,255,.075);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.050);
}

.tabbar.acf-svg-tabbar .write-tab {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 12px 28px rgba(6,182,212,.20), inset 0 1px 0 rgba(255,255,255,.12);
}

.tabbar.acf-svg-tabbar .write-tab.active {
  background:
    radial-gradient(circle at 50% 0, rgba(255,255,255,.20), transparent 54%),
    linear-gradient(135deg, var(--brand), var(--brand2));
}

/* SVG icon holder: no extra circle/background. The icon itself is the visual. */
.tabbar.acf-svg-tabbar .acf-tab-icon {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.tabbar.acf-svg-tabbar a.active .acf-tab-icon,
.tabbar.acf-svg-tabbar .write-tab .acf-tab-icon {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.tabbar.acf-svg-tabbar .acf-tab-icon img {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  display: block !important;
  object-fit: contain !important;
  opacity: .80;
  transform: none !important;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.18));
}

.tabbar.acf-svg-tabbar a.active .acf-tab-icon img,
.tabbar.acf-svg-tabbar .write-tab .acf-tab-icon img {
  opacity: 1;
  filter: drop-shadow(0 2px 7px rgba(255,255,255,.12));
}

.tabbar.acf-svg-tabbar b {
  display: block;
  width: 100%;
  max-width: 62px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.1;
}

.tabbar.acf-svg-tabbar span {
  font-size: initial;
  line-height: initial;
}

@media (max-width: 520px) {
  .tabbar.acf-svg-tabbar {
    height: 64px;
    padding: 7px;
    gap: 5px;
  }

  .tabbar.acf-svg-tabbar a {
    grid-template-rows: 24px 1fr;
    border-radius: 16px;
    padding-top: 4px;
  }

  .tabbar.acf-svg-tabbar .acf-tab-icon {
    width: 23px !important;
    height: 23px !important;
    min-width: 23px !important;
    min-height: 23px !important;
    max-width: 23px !important;
    max-height: 23px !important;
  }

  .tabbar.acf-svg-tabbar .acf-tab-icon img {
    width: 21px !important;
    height: 21px !important;
    min-width: 21px !important;
    min-height: 21px !important;
    max-width: 21px !important;
    max-height: 21px !important;
  }

  .tabbar.acf-svg-tabbar b {
    font-size: 8.8px;
    max-width: 58px;
  }
}

@media (max-width: 350px) {
  .tabbar.acf-svg-tabbar {
    gap: 4px;
    padding-inline: 6px;
  }

  .tabbar.acf-svg-tabbar b {
    font-size: 8.2px;
    max-width: 48px;
  }
}
