/* =========================================
   Home page
   ========================================= */

/* -----------------------------------------
   General feed content
   ----------------------------------------- */

.feed-posts {
  padding-right: 0;
  padding-left: 0;
}

.home-post-meta {
  font-size: small;
}

.badge-tag {
  border: 1px dashed #2a2b31;
  color: #b89c01 !important;
}

.fp-tags {
  margin-left: 0;
}

.feed-src {
  padding-left: 0 !important;
}

.view-more,
.view-less {
  display: inline-block;
  margin-top: 4px;
  padding-left: 0;
  color: #b89c01;
}

.post-title {
  padding-right: 0;
  padding-left: 0;
}

.like-share {
  padding-right: 0;
  padding-left: 0;
}

.modal-backdrop.show {
  background-color: rgba(0, 0, 0, 0.88) !important;
}

/* -----------------------------------------
   Homepage columns
   ----------------------------------------- */

.home-layout {
  --bs-gutter-x: 1.5rem;
  width: 100%;
  max-width: 1272px;
  margin-right: auto;
  margin-left: auto;
}

.home-feed-column,
.home-left-sidebar,
.home-right-sidebar,
.home-mobile-ad {
  min-width: 0;
}

.home-feed {
  gap: 12px;
}

.home-feed h3 {
  min-width: 0;
}

/* -----------------------------------------
   Feed filter
   ----------------------------------------- */

.filter-block {
  border: 1px dashed #2a2b31;
  border-radius: 16px;
  /* background-color: #16171b; */
  background: #171718;
}

.home-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid #242536;
  border-radius: 14px;
  /* background: rgba(15, 16, 21, 0.35); */
  background: #111112;
  color: #e7e8ef;
  cursor: pointer;
  transition:
    border-color 0.12s ease,
    background 0.12s ease,
    transform 0.12s ease;
}

.home-filter-toggle:hover {
  border-color: #ffdf00;
}

.home-filter-toggle:active {
  transform: translateY(1px);
}

.home-filter-toggle i {
  color: #ffdf00;
}

.home-filter-toggle__chev {
  opacity: 0.85;
  transition: transform 0.12s ease;
}

.js-post-filter-shell.is-collapsed .home-tagpanel {
  display: none;
}

.js-post-filter-shell.is-collapsed .home-filter-toggle__chev {
  transform: rotate(-90deg);
}

.js-post-filter-shell.is-collapsed .js-post-tags-clear {
  display: none !important;
}

/* -----------------------------------------
   Post tag scroller
   ----------------------------------------- */

.post-tag-scroller {
  display: grid;
  grid-template-rows: repeat(2, max-content);
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-content: start;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.post-tag-scroller::-webkit-scrollbar {
  height: 8px;
}

.post-tag-scroller::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #111;
}

.post-tag-scroller::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #ffdf00;
}

.post-tag-scroller::-webkit-scrollbar-thumb:hover {
  background: #e6c400;
}

.post-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: transparent;
  color: #4e4611;
  font-size: 0.85rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.9;
  cursor: pointer;
  transition:
    opacity 0.12s ease,
    color 0.12s ease,
    border-color 0.12s ease,
    background 0.12s ease,
    box-shadow 0.12s ease;
}

.post-tag-pill:hover {
  border-color: #ffdf00;
  color: #ffdf00;
  opacity: 1;
}

.post-tag-pill.is-active {
  border-color: #ffdf00;
  box-shadow:
    0 0 0 1px rgba(255, 223, 0, 0.35) inset;
  color: #ffdf00;
  opacity: 1;
}

.post-tag-pill:active {
  transform: translateY(1px);
}

/* -----------------------------------------
   Tag carousel controls
   ----------------------------------------- */

.tag-carousel {
  position: relative;
}

.tag-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #2a2b31;
  border-radius: 999px;
  background: rgba(15, 15, 18, 0.75);
  color: #ffdf00;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    opacity 0.12s ease,
    transform 0.12s ease,
    border-color 0.12s ease;
}

.tag-carousel-btn:hover {
  border-color: #ffdf00;
}

.tag-carousel-btn:active {
  transform: translateY(-50%) scale(0.98);
}

.tag-carousel-btn--left {
  left: 6px;
}

.tag-carousel-btn--right {
  right: 6px;
}

.tag-carousel-btn.is-disabled {
  opacity: 0;
  pointer-events: none;
}

.tag-carousel .post-tag-scroller {
  padding-right: 48px;
  padding-left: 48px;
  scrollbar-width: none;
}

.tag-carousel .post-tag-scroller::-webkit-scrollbar {
  display: none;
}

.tag-carousel::before,
.tag-carousel::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 42px;
  content: "";
  pointer-events: none;
}

.tag-carousel::before {
  left: 0;
  /* background:
    linear-gradient(90deg,
      #16171b 40%,
      rgba(22, 23, 27, 0)); */
}

.tag-carousel::after {
  right: 0;
  /* background:
    linear-gradient(270deg,
      #16171b 40%,
      rgba(22, 23, 27, 0)); */
}

/* -----------------------------------------
   Trending hashtags
   ----------------------------------------- */

.trending-hashtags-shell {
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background-color: #16171b;
}

.trending-hashtags-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: #ffdf00 #111;
}

.trending-hashtags-row::-webkit-scrollbar {
  height: 8px;
}

.trending-hashtags-row::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #111;
}

.trending-hashtags-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #ffdf00;
}

.trending-hashtag-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 0.35rem 0.7rem;
  color: #b7b7b7;
  text-decoration: none;
  transition:
    color 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease;
}

.trending-hashtag-pill:hover,
.trending-hashtag-pill.is-active {
  color: #b89c01;
}

/* -----------------------------------------
   Desktop feed scroll
   ----------------------------------------- */

.friends-posts-scroll {
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
}

.friends-posts-scroll::-webkit-scrollbar {
  width: 8px;
}

.friends-posts-scroll::-webkit-scrollbar-track {
  background: #111;
}

.friends-posts-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #ffdf00;
}

.friends-posts-scroll::-webkit-scrollbar-thumb:hover {
  background: #e6c400;
}

/* Desktop home uses the viewport; only the centre feed scrolls. */
@media (min-width: 1200px) {
  body.no-page-scroll[data-auth="true"] .gh-content-frame {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  body.no-page-scroll[data-auth="true"] .gh-utility-navbar {
    flex: 0 0 auto;
  }

  body.no-page-scroll[data-auth="true"] .home-layout {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  body.no-page-scroll[data-auth="true"] .home-feed-column {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  body.no-page-scroll[data-auth="true"] #feedTarget {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  body.no-page-scroll[data-auth="true"] .friends-posts-scroll {
    width: 100%;
    height: auto;
    max-height: 100%;
    min-height: 0;
    flex: 1 1 auto;
    overscroll-behavior: contain;
  }
}



/* Unified mobile card toggle colours */
.role-status-card .role-status-toggle,
.weekly-activity-card .role-status-toggle,
.home-daily-missions-card .role-status-toggle {
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: transparent;
  color: #fff;
  padding: 10px 12px;
  opacity: 1;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.role-status-card .role-status-toggle i,
.role-status-card .role-status-toggle span,
.weekly-activity-card .role-status-toggle i,
.weekly-activity-card .role-status-toggle span,
.home-daily-missions-card .role-status-toggle i,
.home-daily-missions-card .role-status-toggle span {
  color: inherit;
  opacity: 1;
}

/* .role-status-card .role-status-toggle:hover,
.role-status-card .role-status-toggle:focus-visible,
.weekly-activity-card .role-status-toggle:hover,
.weekly-activity-card .role-status-toggle:focus-visible,
.home-daily-missions-card .role-status-toggle:hover,
.home-daily-missions-card .role-status-toggle:focus-visible {
  border-color: rgba(255, 223, 0, 0.5);
  background-color: rgba(255, 223, 0, 0.06);
  color: #ffdf00;
} */

.role-status-card .role-status-toggle:focus,
.weekly-activity-card .role-status-toggle:focus,
.home-daily-missions-card .role-status-toggle:focus {
  box-shadow: none;
}

/* =========================================
   Responsive layout
   ========================================= */

/* Mobile and tablet use normal page scrolling. */
@media (max-width: 1199.98px) {
  .home-layout {
    --bs-gutter-y: 1.25rem;
  }

  .home-feed-column,
  .home-left-sidebar,
  .home-right-sidebar {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
  }

  #feedTarget,
  .friends-posts-scroll {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .friends-posts-scroll {
    padding-right: 0;
  }

  .friends-posts-scroll>.my-3 {
    display: block;
    width: 100%;
  }

  .home-mobile-ad>aside {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
  }

  .home-mobile-ad .gh-news-card {
    margin-inline: auto;
  }
}

@media (max-width: 991.98px) {
  .home-feed {
    align-items: center;
  }

  .filter-block {
    border-radius: 14px;
  }
}

@media (max-width: 767.98px) {
  .home-layout {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 1.25rem;
  }

  .trending-hashtags-shell {
    padding-inline: 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .home-feed {
    flex-wrap: wrap;
  }

  .home-feed .btn-yellow {
    width: 100%;
    justify-content: center;
  }

  .filter-block {
    border-radius: 12px;
  }

  .post-tag-scroller {
    gap: 0.4rem;
  }

  .post-tag-pill {
    padding: 0.3rem 0.55rem;
    font-size: 0.78rem;
  }

  .tag-carousel-btn {
    width: 34px;
    height: 34px;
  }

  .tag-carousel .post-tag-scroller {
    padding-right: 42px;
    padding-left: 42px;
  }
}