/* BudunOS profile page layout variants (extracted)
 * Body: bos-profile-layout-v-{id}
 */

/* ==========================================================================
 * Profile PAGE LAYOUT variants
 * Body: bos-profile-layout-v-{id}
 * Root: .bos-profile.bos-profile-layout--{id}
 * ========================================================================== */

/* ---------- classic — identity (rail left) ---------- */
body.bos-profile-layout-v-classic .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) {
  /* default */
}

/* ---------- Rail right — feed left, about right ---------- */
@media (min-width: 992px) {
  body.bos-profile-layout-v-rail-right .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-profile-body > .bos-profile-side {
    order: 2 !important;
  }

  body.bos-profile-layout-v-rail-right .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-profile-body > .bos-profile-main {
    order: 1 !important;
  }
}

/* ---------- Side menu — vertical tabs ---------- */
@media (min-width: 992px) {
  body.bos-profile-layout-v-side-menu .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-areas:
      "hero hero"
      "nav content";
    column-gap: 16px;
    row-gap: 14px;
    align-items: start;
  }

  body.bos-profile-layout-v-side-menu .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) > .bos-profile-header {
    grid-area: hero;
  }

  body.bos-profile-layout-v-side-menu .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) > .bos-profile-tabs {
    grid-area: nav;
    position: sticky;
    top: 84px;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    overflow: visible !important;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto !important;
    margin-bottom: 0 !important;
    padding: 10px !important;
    gap: 4px;
  }

  body.bos-profile-layout-v-side-menu .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) > .bos-profile-tabs > a {
    width: 100% !important;
    justify-content: flex-start !important;
    padding: 10px 12px !important;
  }

  body.bos-profile-layout-v-side-menu .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) > .bos-profile-tabs > a .bos-pf-tab-lbl {
    display: inline !important;
  }

  body.bos-profile-layout-v-side-menu .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) > .bos-profile-tabs > a.active::after {
    display: none !important;
  }

  body.bos-profile-layout-v-side-menu .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) > .bos-profile-body {
    grid-area: content;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
  }

  /* In side-menu, keep about rail under feed as a secondary column inside content */
  body.bos-profile-layout-v-side-menu .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-profile-body > .bos-profile-side {
    order: 2 !important;
  }

  body.bos-profile-layout-v-side-menu .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-profile-body > .bos-profile-main {
    order: 1 !important;
  }
}

/* ---------- Wide feed — about strip on top ---------- */
@media (min-width: 992px) {
  body.bos-profile-layout-v-wide .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-profile-body {
    display: flex;
    flex-wrap: wrap;
  }

  body.bos-profile-layout-v-wide .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-profile-body > .bos-profile-side {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
  }

  body.bos-profile-layout-v-wide .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-profile-body > .bos-profile-side > .card,
  body.bos-profile-layout-v-wide .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-profile-body > .bos-profile-side > .d-grid,
  body.bos-profile-layout-v-wide .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-profile-body > .bos-profile-side > .d-none,
  body.bos-profile-layout-v-wide .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-profile-body > .bos-profile-side > div {
    margin-bottom: 0 !important;
    min-width: 0;
  }

  body.bos-profile-layout-v-wide .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-profile-body > .bos-profile-side > .d-none.d-lg-block:has(.bos-mini-footer),
  body.bos-profile-layout-v-wide .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-profile-body > .bos-profile-side > div.d-none.d-lg-block:has(.bos-mini-footer) {
    grid-column: 1 / -1;
  }

  body.bos-profile-layout-v-wide .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-profile-body > .bos-profile-main {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* ---------- Magazine — sticky pills + rail right ---------- */
body.bos-profile-layout-v-magazine .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) > .bos-profile-tabs {
  position: sticky;
  top: 70px;
  z-index: 8;
  margin-bottom: 14px !important;
  border-radius: 999px !important;
  padding: 6px !important;
  gap: 4px;
  box-shadow: 0 10px 28px -18px rgba(20, 24, 32, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.bos-profile-layout-v-magazine .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) > .bos-profile-tabs > a {
  border-radius: 999px !important;
  padding: 8px 14px !important;
}

body.bos-profile-layout-v-magazine .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) > .bos-profile-tabs > a.active {
  background: #1b1e23 !important;
  color: #fff !important;
}

body.bos-profile-layout-v-magazine .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) > .bos-profile-tabs > a.active .main-icon,
body.bos-profile-layout-v-magazine .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) > .bos-profile-tabs > a.active .svg-container {
  color: #fff !important;
}

body.bos-profile-layout-v-magazine .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) > .bos-profile-tabs > a.active .main-icon *,
body.bos-profile-layout-v-magazine .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) > .bos-profile-tabs > a.active .svg-container * {
  stroke: #fff !important;
  color: #fff !important;
  fill: none !important;
}

body.bos-profile-layout-v-magazine .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) > .bos-profile-tabs > a.active::after {
  display: none !important;
}

@media (min-width: 992px) {
  body.bos-profile-layout-v-magazine .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-profile-body > .bos-profile-side {
    order: 2 !important;
  }

  body.bos-profile-layout-v-magazine .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-profile-body > .bos-profile-main {
    order: 1 !important;
  }
}

body.night-mode.bos-profile-layout-v-magazine .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) > .bos-profile-tabs > a.active,
html[data-bs-theme="dark"].bos-profile-layout-v-magazine .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) > .bos-profile-tabs > a.active {
  background: #fff !important;
  color: #0f1419 !important;
}

body.night-mode.bos-profile-layout-v-magazine .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) > .bos-profile-tabs > a.active .main-icon,
body.night-mode.bos-profile-layout-v-magazine .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) > .bos-profile-tabs > a.active .svg-container,
html[data-bs-theme="dark"].bos-profile-layout-v-magazine .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) > .bos-profile-tabs > a.active .main-icon,
html[data-bs-theme="dark"].bos-profile-layout-v-magazine .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) > .bos-profile-tabs > a.active .svg-container {
  color: #0f1419 !important;
}

body.night-mode.bos-profile-layout-v-magazine .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) > .bos-profile-tabs > a.active .main-icon *,
body.night-mode.bos-profile-layout-v-magazine .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) > .bos-profile-tabs > a.active .svg-container *,
html[data-bs-theme="dark"].bos-profile-layout-v-magazine .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) > .bos-profile-tabs > a.active .main-icon *,
html[data-bs-theme="dark"].bos-profile-layout-v-magazine .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) > .bos-profile-tabs > a.active .svg-container * {
  stroke: #0f1419 !important;
  color: #0f1419 !important;
}
