/* BudunOS profile hero variants
 * Body: bos-profile-v-{id}
 * Header: .bos-profile-header.bos-profile-header--{id}
 * Keeps cover crop / avatar upload / friendship JS hooks intact.
 */

/* ---------- classic — identity (current soft card) ---------- */
body.bos-profile-v-classic .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-profile-header {
  /* default sidebar.css styles */
}

/* ---------- Immersive cover — meta on scrim ---------- */
body.bos-profile-v-immersive .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-profile-header {
  overflow: hidden !important;
  border: 0 !important;
  box-shadow: 0 18px 48px -28px rgba(20, 24, 32, 0.35) !important;
}

body.bos-profile-v-immersive .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-cover-wrapper {
  height: 260px !important;
  border-radius: 20px !important;
}

@media (min-width: 768px) {
  body.bos-profile-v-immersive .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-cover-wrapper {
    height: 300px !important;
  }
}

@media (min-width: 992px) {
  body.bos-profile-v-immersive .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-cover-wrapper {
    height: 340px !important;
  }
}

body.bos-profile-v-immersive .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-avatar-wrapper {
  top: auto !important;
  bottom: 72px !important;
  left: 20px !important;
  z-index: 4;
}

@media (min-width: 768px) {
  body.bos-profile-v-immersive .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-avatar-wrapper {
    bottom: 78px !important;
    left: 24px !important;
  }
}

body.bos-profile-v-immersive .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-pf-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  margin: 0;
  padding: 56px 18px 18px 140px !important;
  min-height: 0 !important;
  align-items: flex-end;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 10, 14, 0.78) 58%, rgba(8, 10, 14, 0.9) 100%);
}

@media (min-width: 768px) {
  body.bos-profile-v-immersive .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-pf-meta {
    padding: 64px 22px 20px 160px !important;
  }
}

body.bos-profile-v-immersive .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-name-wrapper,
body.bos-profile-v-immersive .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-name-wrapper a,
body.bos-profile-v-immersive .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-pf-uname {
  color: #fff !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

body.bos-profile-v-immersive .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-pf-uname {
  opacity: 0.85;
}

body.bos-profile-v-immersive .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-buttons-wrapper .btn {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
  backdrop-filter: blur(8px);
}

body.bos-profile-v-immersive .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-buttons-wrapper .btn:hover {
  background: rgba(255, 255, 255, 0.24) !important;
  color: #fff !important;
}

body.bos-profile-v-immersive .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-buttons-wrapper .btn-success,
body.bos-profile-v-immersive .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-buttons-wrapper .btn-primary {
  background: #fff !important;
  border-color: #fff !important;
  color: #0f1419 !important;
}

body.bos-profile-v-immersive .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-buttons-wrapper .btn-success:hover,
body.bos-profile-v-immersive .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-buttons-wrapper .btn-primary:hover {
  background: #f0f3f6 !important;
  color: #0f1419 !important;
}

/* ---------- Centered hero ---------- */
body.bos-profile-v-centered .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-profile-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: visible !important;
}

body.bos-profile-v-centered .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-cover-wrapper {
  height: 140px !important;
  border-radius: 19px 19px 0 0 !important;
}

@media (min-width: 768px) {
  body.bos-profile-v-centered .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-cover-wrapper {
    height: 168px !important;
  }
}

body.bos-profile-v-centered .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-avatar-wrapper {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  bottom: auto !important;
  align-self: center;
  margin: -52px auto 0 !important;
  z-index: 3;
}

@media (min-width: 768px) {
  body.bos-profile-v-centered .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-avatar-wrapper {
    margin-top: -60px !important;
  }

  body.bos-profile-v-centered .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-avatar-wrapper img {
    width: 120px !important;
    height: 120px !important;
    border-radius: 22px !important;
  }
}

body.bos-profile-v-centered .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-pf-meta {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 20px 22px !important;
  min-height: 0 !important;
  gap: 14px;
}

body.bos-profile-v-centered .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-name-wrapper {
  text-align: center !important;
  width: 100%;
}

body.bos-profile-v-centered .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-name-inner {
  justify-content: center;
}

body.bos-profile-v-centered .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-buttons-wrapper {
  justify-content: center !important;
  width: 100%;
}

/* ---------- Compact strip ---------- */
body.bos-profile-v-compact .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-profile-header {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: end;
  overflow: visible !important;
}

body.bos-profile-v-compact .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-cover-wrapper {
  grid-column: 1 / -1;
  grid-row: 1;
  height: 88px !important;
  border-radius: 19px 19px 0 0 !important;
}

@media (min-width: 768px) {
  body.bos-profile-v-compact .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-cover-wrapper {
    height: 108px !important;
  }
}

body.bos-profile-v-compact .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-avatar-wrapper {
  position: relative !important;
  grid-column: 1;
  grid-row: 2;
  top: auto !important;
  left: auto !important;
  bottom: auto !important;
  margin: -36px 0 12px 14px !important;
  z-index: 3;
}

@media (min-width: 768px) {
  body.bos-profile-v-compact .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-avatar-wrapper {
    margin: -44px 0 14px 18px !important;
  }

  body.bos-profile-v-compact .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-avatar-wrapper img {
    width: 84px !important;
    height: 84px !important;
    border-radius: 16px !important;
  }
}

body.bos-profile-v-compact .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-avatar-wrapper img {
  width: 72px !important;
  height: 72px !important;
  border-radius: 14px !important;
}

body.bos-profile-v-compact .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-pf-meta {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  padding: 10px 14px 14px 8px !important;
  min-height: 0 !important;
}

body.bos-profile-v-compact .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-name-wrapper a {
  font-size: 17px !important;
}

@media (min-width: 992px) {
  body.bos-profile-v-compact .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-name-wrapper a {
    font-size: 18px !important;
  }
}

body.bos-profile-v-compact .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-buttons-wrapper .btn {
  height: 34px;
  min-width: 34px;
  padding: 0 12px !important;
  font-size: 11.5px !important;
}

/* ---------- Frost hero — glass meta band ---------- */
body.bos-profile-v-glass .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-profile-header {
  overflow: hidden !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.bos-profile-v-glass .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-cover-wrapper {
  height: 240px !important;
  border-radius: 22px !important;
}

@media (min-width: 768px) {
  body.bos-profile-v-glass .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-cover-wrapper {
    height: 280px !important;
  }
}

@media (min-width: 992px) {
  body.bos-profile-v-glass .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-cover-wrapper {
    height: 300px !important;
  }
}

body.bos-profile-v-glass .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-avatar-wrapper {
  top: auto !important;
  bottom: 28px !important;
  left: 28px !important;
  z-index: 4;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
  body.bos-profile-v-glass .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-avatar-wrapper {
    bottom: 32px !important;
    left: 32px !important;
  }
}

body.bos-profile-v-glass .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-pf-meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  margin: 0;
  padding: 14px 16px 14px 140px !important;
  min-height: 0 !important;
  align-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.7)) !important;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 12px 36px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  isolation: isolate;
}

@media (min-width: 768px) {
  body.bos-profile-v-glass .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-pf-meta {
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 16px 18px 16px 156px !important;
  }
}

body.night-mode.bos-profile-v-glass .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-pf-meta,
html[data-bs-theme="dark"].bos-profile-v-glass .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-pf-meta {
  background: linear-gradient(180deg, rgba(38, 45, 52, 0.88), rgba(30, 37, 43, 0.84)) !important;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.night-mode.bos-profile-v-glass .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-avatar-wrapper,
html[data-bs-theme="dark"].bos-profile-v-glass .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-avatar-wrapper {
  background: rgba(30, 37, 43, 0.9) !important;
}

/* Mobile: stack immersive / glass meta under avatar room */
@media (max-width: 575.98px) {
  body.bos-profile-v-immersive .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-pf-meta,
  body.bos-profile-v-glass .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-pf-meta {
    padding-left: 16px !important;
    padding-top: 18px !important;
    flex-direction: column;
    align-items: flex-start;
  }

  body.bos-profile-v-immersive .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-avatar-wrapper,
  body.bos-profile-v-glass .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-avatar-wrapper {
    bottom: auto !important;
    top: 170px !important;
  }

  body.bos-profile-v-immersive .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-cover-wrapper {
    height: 220px !important;
  }

  body.bos-profile-v-glass .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-cover-wrapper {
    height: 210px !important;
  }

  body.bos-profile-v-immersive .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-pf-meta {
    padding-top: 64px !important;
  }

  body.bos-profile-v-glass .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-pf-meta {
    padding-top: 58px !important;
  }

  body.bos-profile-v-compact .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-profile-header {
    grid-template-columns: 1fr;
  }

  body.bos-profile-v-compact .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .profile-avatar-wrapper {
    margin: -28px 0 0 12px !important;
  }

  body.bos-profile-v-compact .bos-profile:not(.bos-group):not(.bos-page):not(.bos-event) .bos-pf-meta {
    grid-column: 1;
    padding: 8px 12px 14px 12px !important;
  }
}
