/* footer.css — dark-glass treatment from Claude Design handoff,
   driving the existing column structure / store badges in footer.html.
   Outer .footer.footer--brand sits above the parallax background;
   .ss-footer__inner holds the link columns; .footer__strip is the
   brand + copyline row underneath. */

.footer.footer--brand,
.ss-footer {
  position: relative;
  z-index: 5;
  padding: 40px var(--page-gutter, 24px) 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(13, 13, 13, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--ink-3, #a3a3a3);
}

.ss-footer__inner {
  max-width: var(--content-max, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  align-items: start;
}

.ss-footer__logo {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: 14px;
  filter: none;
  opacity: 0.92;
}

.ss-store-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 180px;
  margin: 0;
}

.ss-store {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  padding: 0;
  box-shadow: none;
  transition: transform 160ms cubic-bezier(.22,1,.36,1),
              box-shadow 160ms cubic-bezier(.22,1,.36,1);
}
.ss-store:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.ss-store-img {
  display: block;
  width: 100%;
  height: auto;
}

.ss-cols h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2, #d0d0d0);
}
.ss-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ss-cols a {
  color: var(--ink-3, #a3a3a3);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 160ms ease;
}
.ss-cols a:hover {
  color: var(--gold-1, #ffd700);
  text-decoration: none;
}

/* Bottom strip — brand + copyline under the columns */
.footer__strip {
  max-width: var(--content-max, 1180px);
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-3, #a3a3a3);
}
.footer__brand {
  font-weight: 700;
  color: var(--ink-2, #d0d0d0);
}

/* Mobile web bottom nav mirrors the Android app footer treatment. */
html.is-mobile-web {
  --ss-tabbar-h: 58px;
  --bottom-nav-h: calc(var(--ss-tabbar-h) + env(safe-area-inset-bottom));
}

html.is-mobile-web body {
  padding-bottom: calc(var(--ss-tabbar-h) + env(safe-area-inset-bottom));
}

html.is-mobile-web .ss-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  z-index: 950;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 0;
  min-height: calc(var(--ss-tabbar-h) + env(safe-area-inset-bottom));
  padding: 0 0 env(safe-area-inset-bottom);
  background: #121212;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html.is-mobile-web .ss-backtotop{
  position: fixed;
  right: 16px;
  bottom: calc(var(--bottom-nav-h) + 12px);
  z-index: 960;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.94);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

html.is-mobile-web .ss-backtotop.is-show{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

html.is-mobile-web .ss-backtotop:active{
  background: rgba(32, 32, 32, 0.98);
}

html.is-mobile-web .ss-tabbar__item {
  position: relative;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  min-height: var(--ss-tabbar-h);
  padding: 6px 2px 7px;
  color: #ffffff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

html.is-mobile-web .ss-tabbar__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.13);
}

html.is-mobile-web .ss-tabbar__iconimg {
  width: 29px;
  height: 29px;
  display: block;
  object-fit: contain;
  opacity: 0.55;
  filter: none;
  transform: translateY(2px);
  transition: opacity 160ms ease;
}

html.is-mobile-web .ss-tabbar__label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  opacity: 0.55;
  transform: translateY(-1px);
  transition: opacity 160ms ease;
}

html.is-mobile-web .ss-tabbar__item.is-active {
  color: #ffffff;
}

html.is-mobile-web .ss-tabbar__item.is-active::before {
  background: rgba(255, 255, 255, 0.7);
}

html.is-mobile-web .ss-tabbar__item.is-active .ss-tabbar__iconimg {
  opacity: 1;
}

html.is-mobile-web .ss-tabbar__item.is-active .ss-tabbar__label {
  opacity: 1;
}

html.is-mobile-web .ss-tabbar__item:active .ss-tabbar__iconimg {
  opacity: 0.82;
}

body.search-overlay-open .ss-tabbar {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .ss-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }
  .ss-footer__inner > div:first-child {
    grid-column: 1 / -1;
  }
  .ss-store-wrap {
    flex-direction: row;
    max-width: none;
  }
  .ss-store-img {
    height: 48px;
    width: auto;
  }
}

@media (max-width: 520px) {
  .ss-footer__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .footer__strip {
    flex-direction: column;
    align-items: flex-start;
  }

  html.is-mobile-web .ss-tabbar {
    padding-bottom: env(safe-area-inset-bottom);
  }

  html.is-mobile-web .ss-tabbar__label {
    font-size: 10px;
  }
}
