/* Suniia — Bottom Tab Bar (mobile only, < 75rem) */

.s-tab-bar {
  display: none;
}

@media (max-width: 74.9375rem) {

  /* ── Tab bar container ── */
  .s-tab-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 110;
    background: rgba(var(--color-obsidian-rgb), 0.97);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border-top: 1px solid rgba(var(--color-champagne-rgb), 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* ── Push body content above tab bar ── */
  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  /* ── Hide hamburger — More tab replaces it ── */
  .suniia-hamburger {
    display: none;
  }

  /* ── Tab item (link or button) ── */
  .s-tab-bar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 8px 4px;
    gap: 3px;
    color: rgba(var(--color-pearl-rgb), 0.45);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.18s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }

  .s-tab-bar__item:hover {
    color: rgba(var(--color-pearl-rgb), 0.80);
  }

  .s-tab-bar__item--active {
    color: var(--color-champagne);
  }

  /* Active indicator — thin line at bottom of icon */
  .s-tab-bar__item--active::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background: var(--color-champagne);
    opacity: 0.7;
  }

  .s-tab-bar__item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .s-tab-bar__label {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
  }
}

/* 2026-06-01 mobile hotfix: prevent bottom tab overlap on card lists */
@media (max-width: 74.9375rem) {
  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 16px);
  }

  .view-video-library .view-content,
  .view-tag-library .view-content {
    padding-bottom: calc(var(--sp3) + 56px + env(safe-area-inset-bottom, 0px));
  }

  .view-video-library .view-content .views-row:last-child,
  .view-tag-library .view-content .views-row:last-child {
    margin-bottom: 8px;
  }
}
