/* BuzzGather beauty overlay — loaded after core theme CSS */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap");

:root {
  --bg-paper: #f4f1ea;
  --bg-card: #fffcf7;
  --bg-ink: #16211f;
  --bg-muted: #5c6a67;
  --bg-line: rgba(22, 33, 31, 0.08);
  --bg-accent: #0d6e6a;
  --bg-accent-soft: rgba(13, 110, 106, 0.1);
  --bg-accent-fg: #f4f1ea;
  --bg-radius: 18px;
  --bg-shadow: 0 10px 30px rgba(22, 33, 31, 0.06);
}

html, body {
  font-family: Inter, "Poppins", "Helvetica Neue", Arial, sans-serif !important;
  background: var(--bg-paper) !important;
  color: var(--bg-ink);
}

body.welcome-page,
body[data-page="welcome"] {
  background: #0b3d3b !important;
}

/* ---------- Welcome: no profile pictures ---------- */
.random_users,
.users-profiles,
.user-image,
.welcome-users-list,
.login .random_users {
  display: none !important;
}

.login {
  min-height: 100vh;
}

.login_left_combo_parent {
  overflow: hidden;
}

.login_innre {
  background: var(--bg-card);
  border-radius: 28px;
  padding: 36px 32px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  max-width: 440px;
  margin: 40px auto;
}

.login_innre .title.main {
  font-family: Fraunces, Georgia, serif;
  font-size: 32px;
  letter-spacing: -0.03em;
  color: var(--bg-ink);
}

.login_innre .desc {
  color: var(--bg-muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.wow_form_fields input {
  border-radius: 14px !important;
  border: 1px solid var(--bg-line) !important;
  background: #fff !important;
  height: 48px;
  padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wow_form_fields input:focus {
  border-color: var(--bg-accent) !important;
  box-shadow: 0 0 0 4px var(--bg-accent-soft);
}

.login__ .btn-main,
.btn-main,
.btn-mat {
  border-radius: 999px !important;
  letter-spacing: 0.01em;
  font-weight: 600;
  padding: 12px 22px;
  box-shadow: 0 8px 20px rgba(13, 110, 106, 0.25);
}

.login_left_combo h1 {
  font-family: Fraunces, Georgia, serif;
  letter-spacing: -0.03em;
}

.login_left_combo .img img {
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* ---------- Header ---------- */
.navbar-default {
  background: rgba(244, 241, 234, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bg-line) !important;
  box-shadow: none !important;
  height: 58px;
}

.navbar-default .navbar-nav > li > a,
#head_menu_rght .sixteen-font-size {
  color: var(--bg-ink) !important;
  border-radius: 12px;
}

.navbar-default .navbar-nav > li > a:hover,
#head_menu_rght .sixteen-font-size:hover {
  background: var(--bg-accent-soft) !important;
}

.header-brand img {
  max-height: 34px;
}

.user-avatar img,
#head_menu_rght .user-avatar img {
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--bg-accent);
}

.new-update-alert {
  border-radius: 999px;
  min-width: 16px;
  height: 16px;
  font-size: 10px;
  line-height: 16px;
  padding: 0 4px;
}

/* ---------- Sidebar ---------- */
.left-sidebar {
  background: transparent;
}

.left-sidebar > ul {
  background: var(--bg-card);
  border-radius: var(--bg-radius);
  padding: 10px 8px !important;
  box-shadow: var(--bg-shadow);
  border: 1px solid var(--bg-line);
}

.left-sidebar > ul > li {
  list-style: none;
}

.left-sidebar > ul > li > a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  margin: 2px 0 !important;
  font-size: 14.5px !important;
  font-weight: 550 !important;
  color: var(--bg-ink) !important;
  line-height: 1.2 !important;
}

.left-sidebar > ul > li > a > svg {
  display: none !important;
}

.left-sidebar > ul > li > a > img {
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  flex-shrink: 0;
}

.left-sidebar > ul > li > a:hover {
  background: var(--bg-accent-soft) !important;
  color: var(--bg-accent) !important;
}

.left-sidebar > ul > li.wow_side_post_fltr > a {
  font-weight: 700 !important;
}

.leftcol {
  position: sticky;
  top: 72px;
  align-self: flex-start;
}

/* ---------- Cards / feed ---------- */
.wow_content,
.panel.panel-white,
.post .panel-white,
.publisher-box,
.user-status-home {
  background: var(--bg-card) !important;
  border-radius: var(--bg-radius) !important;
  border: 1px solid var(--bg-line) !important;
  box-shadow: var(--bg-shadow) !important;
}

.post-container {
  margin-bottom: 16px;
}

.post .panel-white {
  overflow: hidden;
}

.filterby {
  background: var(--bg-card);
  border-radius: 999px;
  padding: 4px;
  border: 1px solid var(--bg-line);
}

/* Hide reel posts from the regular stacked feed — they live in the slider */
.post-container .post[data-is-reel="1"] {
  /* still in DOM so slider JS can harvest if needed */
}

body.bg-reels-ready .post-container:has(.post[data-is-reel="1"]) {
  display: none;
}

/* ---------- Feed reels slider ---------- */
.bg-feed-reels {
  background: var(--bg-card);
  border: 1px solid var(--bg-line);
  border-radius: var(--bg-radius);
  box-shadow: var(--bg-shadow);
  margin-bottom: 18px;
  padding: 14px 0 18px;
}

.bg-feed-reels-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 12px;
}

.bg-feed-reels-head h3 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.bg-feed-reels-head a {
  font-size: 13px;
  font-weight: 600;
  color: var(--bg-accent);
}

.bg-feed-reels-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 4px;
  scrollbar-width: none;
}

.bg-feed-reels-track::-webkit-scrollbar {
  display: none;
}

.bg-feed-reel-card {
  position: relative;
  flex: 0 0 auto;
  width: 168px;
  aspect-ratio: 9 / 16;
  max-height: 300px;
  border-radius: 18px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #111;
  color: #fff;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.bg-feed-reel-card img.poster,
.bg-feed-reel-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-feed-reel-card .bg-reel-shade {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.bg-feed-reel-card .bg-reel-meta {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
}

.bg-feed-reel-card .bg-reel-meta .who {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

.bg-feed-reel-card .bg-reel-meta img.av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #fff;
}

.bg-feed-reel-card .bg-reel-meta p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
  opacity: 0.92;
}

.bg-feed-reel-card .bg-reel-play {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  z-index: 2;
}

@media (max-width: 768px) {
  .bg-feed-reel-card {
    width: 78vw;
    max-height: 520px;
    scroll-snap-align: center;
  }
}

/* ---------- Mobile: move header menu to bottom ---------- */
.bg-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body.bg-has-bottom-nav {
    padding-bottom: 72px;
  }

  body.bg-has-bottom-nav .navbar-default {
    height: 52px;
  }

  .header-brand {
    display: flex !important;
  }

  .header-brand img {
    max-height: 28px;
    width: auto !important;
  }

  .wow_hdr_innr_left .nav {
    display: none !important;
  }

  #bg-bottom-nav,
  .bg-bottom-nav {
    display: flex !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    height: 64px;
    padding: 4px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 252, 247, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--bg-line);
    box-shadow: 0 -8px 24px rgba(22, 33, 31, 0.08);
    align-items: stretch;
    justify-content: space-around;
    margin: 0;
    float: none !important;
    width: 100%;
  }

  #bg-bottom-nav > li,
  .bg-bottom-nav > li {
    flex: 1 1 0;
    text-align: center;
    position: relative;
  }

  #bg-bottom-nav > li > a,
  .bg-bottom-nav > li > a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 56px;
    padding: 6px 4px !important;
    color: var(--bg-ink) !important;
    border-radius: 14px;
  }

  #bg-bottom-nav > li > a svg,
  .bg-bottom-nav > li > a svg {
    width: 22px;
    height: 22px;
  }

  #bg-bottom-nav .hide_fill_svg,
  .bg-bottom-nav .hide_fill_svg {
    display: none !important;
  }

  #bg-bottom-nav .wow_new_search_bbtn,
  .bg-bottom-nav .wow_new_search_bbtn {
    display: none !important;
  }

  #bg-bottom-nav .user-avatar img,
  .bg-bottom-nav .user-avatar img {
    width: 26px;
    height: 26px;
  }

  #bg-bottom-nav .new-update-alert,
  .bg-bottom-nav .new-update-alert {
    position: absolute;
    top: 6px;
    right: calc(50% - 18px);
  }

  /* Bottom host must not clip dropdowns */
  #bg-bottom-host {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    pointer-events: none;
  }
  #bg-bottom-host > * {
    pointer-events: auto;
  }
  #bg-bottom-host,
  #head_menu_rght.bg-bottom-nav,
  .bg-bottom-nav {
    overflow: visible !important;
  }

  /* Dropdowns open upward and stay on-screen */
  #bg-bottom-host .dropdown-menu,
  #head_menu_rght.bg-bottom-nav .dropdown-menu,
  .bg-bottom-nav .dropdown-menu {
    position: absolute !important;
    bottom: calc(100% + 10px) !important;
    top: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    max-height: min(70vh, 480px);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 1060 !important;
    float: none !important;
    margin: 0 !important;
    min-width: 280px;
    max-width: calc(100vw - 16px);
    box-shadow: 0 12px 40px rgba(0,0,0,.18);
    border-radius: 16px !important;
  }

  /* First items: align left so they do not spill off-screen */
  #head_menu_rght.bg-bottom-nav > li:nth-child(1) .dropdown-menu,
  #head_menu_rght.bg-bottom-nav > li:nth-child(2) .dropdown-menu,
  .bg-bottom-nav > li:nth-child(1) .dropdown-menu,
  .bg-bottom-nav > li:nth-child(2) .dropdown-menu {
    left: 8px !important;
    right: auto !important;
    transform: none !important;
  }

  /* Last items (notifications + avatar): align right */
  #head_menu_rght.bg-bottom-nav > li:nth-last-child(1) .dropdown-menu,
  #head_menu_rght.bg-bottom-nav > li:nth-last-child(2) .dropdown-menu,
  .bg-bottom-nav > li:nth-last-child(1) .dropdown-menu,
  .bg-bottom-nav > li:nth-last-child(2) .dropdown-menu {
    left: auto !important;
    right: 8px !important;
    transform: none !important;
  }

  /* Account menu must show even outside .navbar-default */
  #bg-bottom-host .dropdown-menu.ani-acc-menu,
  #head_menu_rght.bg-bottom-nav .dropdown-menu.ani-acc-menu,
  .bg-bottom-nav .dropdown-menu.ani-acc-menu {
    display: none;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: min(320px, calc(100vw - 16px));
  }
  #bg-bottom-host .open > .dropdown-menu,
  #bg-bottom-host .open > .dropdown-menu.ani-acc-menu,
  #head_menu_rght.bg-bottom-nav .open > .dropdown-menu,
  #head_menu_rght.bg-bottom-nav .open > .dropdown-menu.ani-acc-menu,
  .bg-bottom-nav .open > .dropdown-menu,
  .bg-bottom-nav .open > .dropdown-menu.ani-acc-menu {
    display: block !important;
  }

  /* Search toggle lives in the slim top header (not forced open) */
  body.bg-has-bottom-nav .wow_hdr_innr_left {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex: 1;
  }
  body.bg-has-bottom-nav .header-brand {
    display: flex !important;
  }
  /* Keep search icon available in top bar via JS-injected button if needed */
  body.bg-has-bottom-nav #wo_home_search {
    display: none;
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    z-index: 1040;
    margin: 0;
    padding: 8px 10px;
    background: rgba(244, 241, 234, 0.98);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
  }
  body.bg-has-bottom-nav #wo_home_search.is-open {
    display: block !important;
  }
  /* Do NOT cover profile avatar when search is closed */
  body.bg-has-bottom-nav .profile-container .card.hovercard .user-avatar {
    z-index: 2;
  }
  body.bg-has-bottom-nav .profile-container {
    padding-top: 0;
  }
}

@media (min-width: 769px) {
  #bg-bottom-nav,
  #bg-bottom-host {
    display: none !important;
  }
  #head_menu_rght.bg-bottom-nav {
    display: flex !important;
    position: static;
    height: auto;
    background: transparent;
    box-shadow: none;
    border: 0;
    padding: 0;
  }
}

/* Password show/hide eye */
.bg-pass-wrap {
  position: relative;
}
.bg-pass-wrap input {
  padding-right: 44px !important;
  width: 100%;
}
.bg-pass-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 6px;
  cursor: pointer;
  color: var(--bg-muted, #5c6a67);
  line-height: 0;
  z-index: 2;
}
.bg-pass-toggle:hover {
  color: var(--bg-accent, #0d6e6a);
}
.bg-pass-toggle svg {
  width: 20px;
  height: 20px;
}
.wow_form_fields .bg-pass-wrap {
  margin-top: 4px;
}


/* Night mode */
[data-theme="dark"] body,
body.dark,
#night-mode-css ~ * {
  --bg-paper: #121817;
  --bg-card: #1b2321;
  --bg-ink: #f4f1ea;
  --bg-muted: #b7c2bf;
  --bg-line: rgba(244, 241, 234, 0.08);
}

[data-theme="dark"] .navbar-default,
body.mode-night .navbar-default {
  background: rgba(18, 24, 23, 0.92) !important;
}

[data-theme="dark"] #bg-bottom-nav,
body.mode-night #bg-bottom-nav {
  background: rgba(27, 35, 33, 0.96);
}


/* Header search button (mobile slim bar) */
.bg-header-search-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--bg-ink) !important;
  margin-left: auto;
}
.bg-header-search-btn:hover {
  background: var(--bg-accent-soft);
}
@media (min-width: 769px) {
  .bg-header-search-btn { display: none !important; }
}
