/* Vinted forum index — matches old vinted.lt/forumai table layout */

:root {
  --vf-teal: #09b1ba;
  --vf-teal-dark: #007782;
  --vf-ink: #222;
  --vf-muted: #777;
  --vf-line: #e5e8ea;
  --vf-head: #f3f5f6;
  --vf-bg: #f2f3f5;
}

body.page-id-6114,
body.page-id-6114 .site-content,
body.page-id-6114 #content,
body.page-id-6114 .content-area,
body.page-id-6114 .site-main {
  background: var(--vf-bg) !important;
}

body.page-id-6114 .entry-header,
body.page-id-6114 .entry-title,
body.page-id-6114 h1.page-title,
body.page-id-6114 .site-sub-header,
body.page-id-6114 .page-header {
  display: none !important;
}

body.page-id-6114 .site-content .container,
body.page-id-6114 .buddyx-container {
  max-width: 1140px;
}

body.page-id-6114 .entry-content > p:empty {
  display: none;
}

#bbpress-forums.vf-forum-wrap,
.vf-forum-wrap {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: var(--vf-ink);
  margin: 0 0 16px;
}

.vf-forum-group {
  background: #fff;
  border: 1px solid var(--vf-line);
  border-radius: 0;
  overflow: hidden;
  margin: 0 0 14px;
}

.vf-forum-group__title {
  background: var(--vf-teal);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 10px 16px;
  line-height: 1.25;
  border: 0;
}

#bbpress-forums .vf-forum-table,
.vf-forum-table {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.vf-forum-table__head,
.vf-forum-table__row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(140px, 0.7fr) 64px 88px;
  gap: 12px;
  align-items: start;
  padding: 12px 16px;
}

.vf-forum-table__head {
  background: var(--vf-head);
  color: #666;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 1px solid var(--vf-line);
  align-items: center;
  padding: 8px 16px;
}

.vf-forum-table__row {
  background: #fff;
  border-bottom: 1px solid var(--vf-line);
}

.vf-forum-table__row:last-child {
  border-bottom: 0;
}

.vf-forum-table__row:hover {
  background: #fafbfc;
}

.vf-col-topics,
.vf-col-posts {
  text-align: left;
  font-variant-numeric: tabular-nums;
  color: #444;
  padding-top: 2px;
  font-size: 14px;
}

.vf-forum-table__head .vf-col-topics,
.vf-forum-table__head .vf-col-posts,
.vf-forum-table__head .vf-col-last {
  text-align: left;
}

.vf-forum-title {
  display: inline-block;
  color: var(--vf-teal) !important;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  line-height: 1.3;
  margin: 0;
}

.vf-forum-title:hover {
  color: var(--vf-teal-dark) !important;
  text-decoration: underline !important;
}

.vf-forum-desc {
  margin: 5px 0 0;
  color: var(--vf-muted);
  font-size: 13px;
  line-height: 1.45;
}

.vf-col-last {
  font-size: 13px;
  color: var(--vf-muted);
  min-width: 0;
  line-height: 1.35;
}

.vf-col-last .vf-last-author,
.vf-col-last .vf-last-author a,
.vf-col-last a.bbp-author-link,
.vf-col-last .bbp-author-name {
  color: var(--vf-teal) !important;
  font-weight: 600;
  text-decoration: none !important;
  font-size: 13px;
}

.vf-col-last .vf-last-author a:hover {
  text-decoration: underline !important;
}

.vf-col-last .vf-last-time,
.vf-col-last .vf-last-time a {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: #999 !important;
  text-decoration: none !important;
}

.vf-col-last .avatar,
.vf-col-last img.avatar {
  display: none !important;
}

.vf-col-last .vf-last-empty {
  color: #aaa;
  font-size: 13px;
}

/* Legacy bbPress lists inside a forum */
#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer {
  background: var(--vf-teal) !important;
  color: #fff !important;
  border: 0 !important;
  padding: 8px 12px !important;
}

#bbpress-forums li.bbp-header .forum-titles,
#bbpress-forums li.bbp-header .bbp-topic-title,
#bbpress-forums li.bbp-header .bbp-forum-info,
#bbpress-forums li.bbp-header a {
  color: #fff !important;
}

#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies {
  border: 1px solid var(--vf-line);
  background: #fff;
}

#bbpress-forums .bbp-forum-title,
#bbpress-forums .bbp-topic-permalink {
  color: var(--vf-teal);
  font-weight: 600;
}

#bbpress-forums .bbp-pagination,
#bbpress-forums .bbp-search-form input[type="text"] {
  border-radius: 2px;
}

@media (max-width: 800px) {
  .vf-forum-table__head {
    display: none;
  }
  .vf-forum-table__row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 14px;
  }
  .vf-col-topics,
  .vf-col-posts {
    display: inline-block;
    margin-right: 14px;
  }
  .vf-col-topics::before {
    content: "Temų: ";
    color: var(--vf-muted);
    font-weight: 600;
  }
  .vf-col-posts::before {
    content: "Pasisakymų: ";
    color: var(--vf-muted);
    font-weight: 600;
  }
}
