/* Vinted-era topic + sidebar */

:root {
  --vf-teal: #09b1ba;
  --vf-teal-dark: #007782;
  --vf-name: #0d9b8c;
  --vf-author-card: #eef7f5;
  --vf-author-line: #b7d6cf;
  --vf-ink: #222;
  --vf-muted: #9aa0a6;
  --vf-page: #f0f1f2;
  --vf-card: #ffffff;
  --vf-card-line: #e6e8ea;
}

body.bbpress,
body.single-topic,
body.single-forum,
body.forum,
body.vf-skin,
.site-content,
.site-main,
#page,
body.vf-skin .site-wrapper {
  background: var(--vf-page) !important;
}

body.vf-skin .site-sub-header,
body.single-topic .site-sub-header,
body.single-topic .entry-header,
body.single-topic h1.entry-title,
body.bbpress .entry-header .entry-title {
  display: none !important;
}

/* Stack topic children — BuddyX flex was putting the reply beside the first post */
#bbpress-forums.vf-topic,
#bbpress-forums {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--vf-ink);
}
#bbpress-forums.vf-topic > * {
  display: block;
  width: 100%;
  float: none;
  clear: both;
}
.vf-replies {
  display: block !important;
  width: 100% !important;
}

/* Cover */
.vf-topic-cover {
  margin: 0 0 28px;
}
.vf-crumb,
#bbpress-forums .bbp-breadcrumb {
  font-size: 13px;
  color: var(--vf-muted);
  margin: 0 0 16px;
  letter-spacing: 0;
}
.vf-crumb a,
#bbpress-forums .bbp-breadcrumb a {
  color: var(--vf-muted);
  text-decoration: none;
}
.vf-crumb a:hover,
#bbpress-forums .bbp-breadcrumb a:hover {
  color: var(--vf-teal-dark);
}
.bbp-breadcrumb-sep {
  margin: 0 6px;
  color: #c5c8cc;
}
.vf-topic-cover__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.vf-topic-title {
  font-size: 32px !important;
  line-height: 1.2;
  font-weight: 600;
  color: #1a1a1a !important;
  margin: 0 !important;
  letter-spacing: -0.03em;
}
.vf-topic-cover__acts {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding-top: 6px;
}
.vf-share {
  border: 0;
  background: none;
  color: #b0b4b8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.vf-share:hover {
  color: var(--vf-teal-dark);
}

/* Posts: avatar left of card, name on/above card */
.vf-post {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 14px;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  float: none !important;
  clear: both !important;
}
.vf-post__avatar {
  flex: 0 0 52px;
  width: 52px;
  padding-top: 0;
}
.vf-post.is-named .vf-post__avatar {
  padding-top: 26px;
}
.vf-post__avatar img,
.vf-avatar {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}
.vf-post__main {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}
.vf-post.is-named > .vf-post__main > .vf-post__user {
  font-size: 13px;
  font-weight: 600;
  color: var(--vf-name);
  margin: 0 0 6px 2px;
  line-height: 1.2;
}
.vf-post__user-link,
.vf-post__avatar-link {
  color: inherit;
  text-decoration: none;
}
.vf-post__user-link:hover {
  text-decoration: underline;
}
.vf-post__author-mark {
  font-weight: 400;
}
.vf-post__arch-mark {
  font-weight: 400;
  color: var(--vf-muted);
  font-size: 12px;
}
.vf-archive-note {
  margin: 0 0 14px;
  padding: 8px 12px;
  background: #f4f7f7;
  border: 1px solid #dde6e5;
  border-radius: 10px;
  color: #5b6b6a;
  font-size: 13px;
}
.vf-post.is-anon .vf-post__card .vf-post__user {
  font-size: 13px;
  font-weight: 400;
  color: var(--vf-muted);
}
.vf-post.is-author .vf-post__card {
  background: var(--vf-author-card);
  border-color: var(--vf-author-line);
}
.vf-post.is-author .vf-post__user,
.vf-post.is-author.is-anon .vf-post__card .vf-post__user,
.vf-post.is-author.is-named > .vf-post__main > .vf-post__user {
  color: var(--vf-name);
  font-weight: 600;
}
.vf-post__card {
  background: var(--vf-card);
  border: 1px solid var(--vf-card-line);
  border-radius: 14px;
  padding: 12px 16px 10px;
}
.vf-post__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  color: var(--vf-muted);
  font-size: 12px;
}
.vf-post__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  color: #b0b4b8;
  white-space: nowrap;
}
.vf-post__count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.vf-ico {
  display: block;
}
.vf-post__body {
  font-size: 15px;
  line-height: 1.55;
  color: #2c2c2c;
}
.vf-post__body p:last-child {
  margin-bottom: 0;
}

/* Quotes = Vinted left bar, not Style Pack staircase */
body.vf-skin .vf-post__body blockquote,
body.vf-skin .vf-post__body blockquote.bbp-the-quote,
#bbpress-forums .vf-post__body blockquote {
  background: transparent !important;
  border: 0 !important;
  border-left: 2px solid #d4d7db !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  quotes: none !important;
  margin: 0 0 12px !important;
  padding: 2px 0 2px 12px !important;
}
body.vf-skin .vf-post__body blockquote:before,
body.vf-skin .vf-post__body blockquote:after {
  content: none !important;
  display: none !important;
}
body.vf-skin .vf-post__body blockquote blockquote {
  margin: 8px 0 4px !important;
  padding-left: 12px !important;
}
body.vf-skin .vf-post__body .bsp-quote-title,
body.vf-skin .vf-post__body .bbp-the-quote-cite,
body.vf-skin .vf-post__body .bbp-author-name,
body.vf-skin .vf-post__body .comment_anonymous {
  display: block;
  font-size: 13px !important;
  font-weight: 400;
  color: var(--vf-muted) !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
}
body.vf-skin .vf-post__body .bsp-quote-title a,
body.vf-skin .vf-post__body .bbp-the-quote-cite a {
  color: var(--vf-muted) !important;
  text-decoration: none !important;
}
body.vf-skin .bbp-author-name .comment_anonymous:before {
  content: none !important;
}
body.vf-skin .vf-post__body blockquote p {
  margin: 0 0 8px !important;
  padding: 0 !important;
}
body.vf-skin .vf-post__body blockquote p:empty,
body.vf-skin .vf-post__body blockquote span[class^="id-"]:empty {
  display: none !important;
}
.vf-post__foot {
  margin-top: 10px;
  min-height: 22px;
}

/* Likes = outline heart, no chip */
body.vf-skin .wpulike,
body.vf-skin .wpulike-heart,
body.vf-skin .wp_ulike_general_class,
body.vf-skin .wpulike .count-box,
body.vf-skin .wpulike button,
body.vf-skin .wpulike .wp_ulike_btn,
body.vf-skin .wpulike .wp_ulike_put_image {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}
body.vf-skin .vf-topic-cover__acts .wpulike .count-box,
body.vf-skin .vf-topic-cover__acts .wp_ulike_counter_up {
  display: none !important;
}
body.vf-skin .vf-post__foot .wpulike {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
body.vf-skin .vf-post__foot .count-box {
  color: var(--vf-muted) !important;
  font-size: 13px;
  background: none !important;
  padding: 0 !important;
}

/* Hide BuddyBoss leftovers. Do not hide .bbp-topic-permalink —
   that class is the topic title link in the forum list. */
#bbpress-forums .bbp-lead-topic > .bbp-header,
#bbpress-forums .bbp-lead-topic > .bbp-footer,
#bbpress-forums .bbp-replies > .bbp-header,
#bbpress-forums .bbp-replies > .bbp-footer,
#bbpress-forums .bbp-reply-header,
#bbpress-forums .bbp-topic-header,
#bbpress-forums .bbp-reply-header .bbp-reply-permalink,
#bbpress-forums .bbp-topic-header .bbp-topic-permalink,
#bbpress-forums .vf-post .bbp-reply-permalink,
#bbpress-forums .vf-post .bbp-topic-permalink,
#bbpress-forums .bbp-reply-author,
#bbpress-forums .bbp-topic-author,
#bbpress-forums .bbp-template-notice,
#bbpress-forums .bbp-login-form {
  display: none !important;
}

#bbpress-forums li.bbp-topic-title > a.bbp-topic-permalink {
  display: block !important;
  color: var(--vf-teal-dark);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  margin: 0 0 4px;
}
#bbpress-forums li.bbp-topic-title > a.bbp-topic-permalink:hover {
  text-decoration: underline;
}

#bbpress-forums .bbp-pagination {
  font-size: 13px;
  color: var(--vf-muted);
  border: 0;
  margin: 4px 0 16px;
}
#bbpress-forums fieldset.bbp-form {
  background: #fff;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
}
#bbpress-forums fieldset.bbp-form legend {
  font-size: 15px;
  font-weight: 600;
}

.vf-login-hint {
  margin: 8px 0 0;
  padding: 0;
  font-size: 14px;
  color: var(--vf-muted);
  background: none !important;
  border: 0 !important;
}
.vf-login-hint a {
  color: var(--vf-teal-dark);
  text-decoration: none;
  font-weight: 600;
}

/* Sidebar */
#secondary.widget-area,
.primary-sidebar,
.bbpress-sidebar,
aside.widget-area,
#secondary.primary-sidebar {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  background: transparent !important;
}

#secondary .widget,
.primary-sidebar .widget,
.bbpress-sidebar .widget,
aside.widget-area .widget,
.vf-side-block {
  background: #fff !important;
  border: 0 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  margin: 0 0 20px !important;
  padding: 18px 20px 14px !important;
  overflow: visible;
}

#secondary .widget-title,
.primary-sidebar .widget-title,
.bbpress-sidebar .widget-title,
#secondary h2,
.primary-sidebar h2 {
  background: none !important;
  color: #1b1b1b !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.vf-side-block__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  color: #1b1b1b;
}
.vf-side-block__head a {
  font-size: 14px;
  font-weight: 400;
  color: var(--vf-teal) !important;
  text-decoration: none;
}
.vf-side-block__head a:hover {
  color: var(--vf-teal-dark) !important;
}
.vf-side-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.vf-side-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 7px 0;
  border: 0;
  font-size: 14px;
  line-height: 1.35;
}
.vf-side-list a {
  color: #333;
  text-decoration: none;
  min-width: 0;
}
.vf-side-list a:hover {
  color: var(--vf-teal-dark);
}
.vf-side-list span {
  color: #b0b4b8;
  flex: 0 0 auto;
}

.vf-forum-group {
  background: #fff;
  border-radius: 8px;
}

/* Forum photo gallery — show every image, not +N More Photos mosaic */
#bbpress-forums .bb-activity-media-wrap.forums-media-wrap,
#bbpress-forums .forums-media-wrap {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  float: none !important;
  margin: 10px 0 2px !important;
  overflow: visible !important;
}
#bbpress-forums .forums-media-wrap.bb-media-length-1 {
  grid-template-columns: minmax(0, 1fr);
}
#bbpress-forums .forums-media-wrap.bb-media-length-3 .bb-activity-media-elem:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}
@media (min-width: 560px) {
  #bbpress-forums .forums-media-wrap.bb-media-length-5,
  #bbpress-forums .forums-media-wrap.bb-media-length-6,
  #bbpress-forums .forums-media-wrap.bb-media-length-7,
  #bbpress-forums .forums-media-wrap.bb-media-length-8,
  #bbpress-forums .forums-media-wrap.bb-media-length-9,
  #bbpress-forums .forums-media-wrap.bb-media-length-more {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
#bbpress-forums .forums-media-wrap .bb-activity-media-elem,
#bbpress-forums .forums-media-wrap .bb-activity-media-elem.hide,
#bbpress-forums .forums-media-wrap .bb-activity-media-elem.bb-hide {
  display: block !important;
  visibility: visible !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: #eef0f2;
}
#bbpress-forums .forums-media-wrap.bb-media-length-1 .bb-activity-media-elem {
  aspect-ratio: auto;
  max-height: 480px;
  background: #f6f7f8;
}
#bbpress-forums .forums-media-wrap .entry-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
}
#bbpress-forums .forums-media-wrap img.photo,
#bbpress-forums .forums-media-wrap img.lazy,
#bbpress-forums .forums-media-wrap .entry-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 10px;
  display: block;
}
#bbpress-forums .forums-media-wrap.bb-media-length-1 img.photo,
#bbpress-forums .forums-media-wrap.bb-media-length-1 .entry-img img {
  object-fit: contain !important;
  max-height: 480px;
  width: 100% !important;
  height: auto !important;
}
#bbpress-forums .forums-media-wrap .bb-photos-length,
#bbpress-forums .forums-media-wrap .media-action-wrap {
  display: none !important;
}

.vf-post__body img,
.vf-post__body .wp-caption img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.vf-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
  margin: 10px 0 4px;
}
.vf-gallery.vf-gallery--2,
.vf-gallery.vf-gallery--3,
.vf-gallery.vf-gallery--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.vf-gallery a,
.vf-gallery figure,
.vf-gallery p {
  margin: 0;
  display: block;
}
.vf-gallery img {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: cover;
  border-radius: 10px;
  background: #eef0f2;
}

@media (max-width: 782px) {
  .vf-topic-title {
    font-size: 24px !important;
  }
  .vf-post__avatar,
  .vf-post.is-named .vf-post__avatar {
    flex-basis: 40px;
    width: 40px;
    padding-top: 0;
  }
  .vf-post.is-named .vf-post__avatar {
    padding-top: 22px;
  }
  .vf-post__avatar img,
  .vf-avatar {
    width: 40px !important;
    height: 40px !important;
  }
}
