/* Goity forum custom styles - consolidated final definitions. */

/* Forum topic list */
.forum-topic-row {
  align-items: center;
  min-height: 76px;
  transition: background-color .18s ease;
}
.forum-topic-row:hover {
  background: rgba(var(--bs-primary-rgb), .025);
}
.forum-topic-row h6 {
  font-weight: 400;
}
.forum-topic-row:last-child {
  border-bottom: 0 !important;
}
.go-topic-author,
.go-topic-author-head {
  width: 72px;
  flex-basis: 72px;
}
.go-topic-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}
.go-topic-author-avatar {
  width: 34px;
  height: 34px;
}
.go-topic-author-name {
  margin-top: .2rem;
  font-size: .72rem;
  line-height: 1.15;
}
.go-topic-author-name a {
  color: var(--bs-body-color);
  font-weight: 400;
}
.go-topic-author-badges {
  display: flex;
  min-height: 0;
  margin-top: 0;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.go-topic-author-badges .go-user-badges {
  gap: 2px;
  margin: 0;
  align-items: center;
  transform: translateY(-1px);
}
.go-topic-main {
  align-self: stretch;
}
.go-topic-main h6 {
  width: 100%;
  max-width: 520px;
  margin-bottom: .45rem;
  overflow: hidden;
  line-height: 1.38;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.go-topic-main h6 a {
  display: block;
  overflow: hidden;
  color: inherit;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.go-topic-main .go-topic-meta {
  margin-top: 0;
}
.go-topic-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem;
  line-height: 1.45;
}
.go-topic-meta-badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .2rem;
}
.go-topic-meta-badges .badge {
  margin-right: 0 !important;
  font-weight: 400;
}
.go-topic-meta-separator {
  color: var(--bs-secondary-color);
}
.go-topic-stat-col {
  width: 56px;
  flex: 0 0 56px;
  align-self: center;
}
.go-topic-stat-value {
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.2;
}
.forum-empty-state {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--bs-secondary-color);
}

/* Forum sidebar typography */
.go-forum-sidebar h5,
.go-forum-sidebar h6 {
  font-weight: 400;
}

/* Forum boards */
.forum-board-link {
  color: inherit;
}
.forum-board-link:hover h6 {
  color: var(--bs-primary);
}
.forum-board-item:last-child {
  border-bottom: 0 !important;
}
.forum-board-meta {
  min-width: 0;
}
.forum-board-count {
  width: clamp(2rem, 3vw, 2.5rem);
  min-width: clamp(2rem, 3vw, 2.5rem);
  flex: 0 0 clamp(2rem, 3vw, 2.5rem);
  text-align: right;
  font-size: .875rem;
  line-height: 1;
  white-space: nowrap;
}

/* Rich forum content */
.go-rich-content {
  font-size: clamp(.95rem, .25vw + .92rem, .98rem);
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.go-rich-content p:last-child {
  margin-bottom: 0;
}
.go-rich-content blockquote {
  margin: 1rem 0;
  padding: .8rem 1rem;
  border-left: 3px solid var(--bs-primary);
  background: var(--bs-light);
  border-radius: 0 .35rem .35rem 0;
}
.go-rich-content pre {
  padding: 1rem;
  border-radius: .5rem;
  background: #111827;
  color: #e5e7eb;
  overflow: auto;
}
.go-rich-content code {
  overflow-wrap: anywhere;
}
.go-rich-content table {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
}
.go-rich-content th,
.go-rich-content td {
  border: 1px solid var(--bs-border-color);
  padding: .55rem .7rem;
}
.go-rich-content a {
  overflow-wrap: anywhere;
}
.go-rich-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: .85rem 0;
  border-radius: .5rem;
}

/* Clickable @username mention */
.go-mention {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-inline: .08rem;
  padding: .08rem .34rem;
  border: 1px solid rgba(var(--bs-primary-rgb), .16);
  border-radius: .32rem;
  background: rgba(var(--bs-primary-rgb), .06);
  color: var(--bs-primary);
  font-size: .92em;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
  vertical-align: baseline;
  overflow-wrap: anywhere;
}
.go-mention:hover {
  border-color: rgba(var(--bs-primary-rgb), .28);
  background: rgba(var(--bs-primary-rgb), .1);
  color: var(--bs-primary);
  text-decoration: none;
}

/* UEditor */
.go-ueditor-wrap {
  border-radius: .5rem;
  overflow: hidden;
}
.go-ueditor-wrap .edui-editor {
  width: 100% !important;
  border-color: var(--bs-border-color) !important;
  box-shadow: none !important;
}
.go-ueditor-wrap .edui-editor-toolbarbox {
  box-shadow: none !important;
}
.go-ueditor-wrap .edui-editor-iframeholder {
  width: 100% !important;
}

/* Compact threaded replies */
.go-forum-reply {
  scroll-margin-top: 95px;
}
.go-reply-thread {
  border-top: 1px solid var(--bs-border-color);
  padding-inline: clamp(1rem, 2vw, 1.5rem);
}
.go-reply-thread:first-child {
  border-top: 0;
}
.go-reply-main {
  position: relative;
  padding: clamp(.85rem, 1.2vw, 1rem) 0 clamp(.8rem, 1vw, .9rem);
}
.go-reply-avatar {
  margin-right: clamp(.75rem, 1vw, .85rem);
}
.go-reply-author-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  min-width: 0;
  line-height: 1.3;
}
.go-reply-author {
  font-size: .9rem;
  font-weight: 600;
  color: var(--bs-body-color);
}
.go-reply-time,
.go-reply-to-label,
.go-reply-floor {
  font-size: .75rem;
  font-weight: 400;
  color: var(--bs-secondary-color);
}
.go-reply-time {
  margin-left: .5rem;
}
.go-reply-to-label a {
  color: var(--bs-secondary-color);
}
.go-reply-floor {
  text-decoration: none;
}
.go-reply-floor:hover,
.go-reply-to-label a:hover {
  color: var(--bs-primary);
}
.go-reply-content {
  margin-top: clamp(.35rem, .6vw, .45rem);
  font-size: clamp(.92rem, .25vw + .89rem, .94rem);
  line-height: 1.65;
}
.go-reply-content > :first-child {
  margin-top: 0;
}
.go-reply-content > :last-child {
  margin-bottom: 0;
}
.go-reply-actions {
  display: flex;
  align-items: center;
  margin-top: clamp(.4rem, .6vw, .5rem);
}
.go-reply-action {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bs-secondary-color);
  font-size: .75rem;
  line-height: 1.3;
}
.go-reply-action:hover {
  color: var(--bs-primary);
}
.go-reply-children {
  margin-left: clamp(1.9rem, 5vw, 3.4rem);
  padding-left: clamp(.75rem, 1.5vw, 1.15rem);
  border-left: 1px solid var(--bs-border-color);
}
.go-reply-children > .go-forum-reply {
  border-top: 1px solid var(--bs-border-color);
}
.go-reply-children .go-reply-children {
  margin-left: clamp(1.25rem, 3vw, 1.9rem);
  padding-left: clamp(.75rem, 1.2vw, 1rem);
}
.go-reply-children .go-reply-children .go-reply-children {
  margin-left: 0;
}
.go-reply-children .go-reply-main {
  padding-top: .85rem;
  padding-bottom: .8rem;
}
.go-reply-children .go-reply-avatar {
  margin-right: .75rem;
}
.go-reply-children .go-reply-content {
  margin-top: .35rem;
}
.go-reply-children .go-reply-actions {
  margin-top: .4rem;
}
.go-reply-target {
  padding: .65rem .85rem;
  border: 1px solid rgba(var(--bs-primary-rgb), .2);
  border-radius: .45rem;
  background: rgba(var(--bs-primary-rgb), .035);
  font-size: .84rem;
}

/* My network shared navigation */
.go-network-menu-link {
  transition: background-color .16s ease, color .16s ease;
}
.go-network-menu-link:hover,
.go-network-menu-link.active {
  background: var(--bs-light);
}

/* My network */
.go-network-item:last-child {
  border-bottom: 0 !important;
}
.go-network-topic-stats {
  display: var(--go-network-topic-stats-display, flex);
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}
.go-network-reply-preview,
.go-network-bio {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* User badges: verified first, level second. */
.go-user-badges {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  margin-left: 5px;
  line-height: 1;
  white-space: nowrap;
  vertical-align: text-bottom;
  transform: translateY(1px);
}
.go-user-badge {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: bottom;
}
.go-user-badge-verified {
  width: 22px;
  height: 22px;
  flex: 0 0 18px;
}
.go-user-badge-level {
 width: 26px;
    height: 21px;
  flex: 0 0 22px;
}
.go-reply-author-line .go-user-badges {
  margin-left: 4px;
  margin-right: 3px;
}
:where(.small, small) .go-user-badges {
  align-items: center;
  margin-left: 4px;
  vertical-align: middle;
  transform: none;
}
:where(h1, h2, h3, h4, h5, h6) + .go-user-badges {
  align-self: flex-end;
  transform: none;
}
:where(h1, h2, h3, h4, h5, h6).mb-1 + .go-user-badges {
  margin-bottom: .25rem;
}

@media (max-width: 767.98px) {
  body {
    --go-forum-topic-align: flex-start;
  }
}

@media (max-width: 575.98px) {
  html {
    --go-network-topic-stats-display: none;
  }
}

/* TRX finance UI */
.go-trx-action-panel {
  padding: 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .65rem;
  background: var(--bs-body-bg);
}
.go-trx-fee-preview {
  padding: .75rem .9rem;
  border-radius: .55rem;
  background: var(--bs-light);
  font-size: .86rem;
}
.go-trx-fee-preview > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .18rem 0;
}
.go-trx-fee-preview .go-trx-net {
  margin-top: .35rem;
  padding-top: .55rem;
  border-top: 1px solid var(--bs-border-color);
}
.go-trx-history-row {
  padding: .65rem 0;
  border-bottom: 1px solid var(--bs-border-color);
}
.go-trx-history-row:last-child {
  border-bottom: 0;
}

/* TRX advertising */
.go-topic-paid-ad {
  background: linear-gradient(90deg, rgba(255, 193, 7, .09), rgba(255, 255, 255, 0));
  box-shadow: inset 3px 0 0 rgba(240, 160, 0, .48);
}
.go-topic-paid-ad:hover {
  background: linear-gradient(90deg, rgba(255, 193, 7, .13), rgba(13, 110, 253, .025));
}
.go-topic-ad-icon {
  width: 19px;
  height: 19px;
  margin: 0;
  flex: 0 0 19px;
  object-fit: contain;
}
.go-topic-paid-title {
  display: flex;
  align-items: center;
  gap: 6px;
}
.go-topic-paid-title a {
  min-width: 0;
  flex: 1 1 auto;
  color: #dc3545;
}
.go-topic-paid-title a:hover {
  color: #bb2d3b;
}
.go-external-ad-card {
  border-color: rgba(13, 110, 253, .12);
}
.go-external-ad-media {
  width: 100%;
  overflow: hidden;
  background: var(--bs-light);
}
.go-external-ad-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.go-external-ad-square {
  aspect-ratio: 1 / 1;
}
.go-external-ad-banner {
  aspect-ratio: 2 / 1;
}
.go-external-ad-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: .45rem;
  font-size: .72rem;
  color: var(--bs-secondary-color);
}
.go-external-ad-label img {
  width: 16px;
  height: 16px;
}
.go-external-ad-title {
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.45;
}
.go-external-ad-description {
  line-height: 1.55;
}
.go-ad-upload-preview {
  max-width: 400px;
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  border-radius: .6rem;
  background: var(--bs-light);
}
.go-ad-upload-preview img {
  display: block;
  width: 100%;
  max-height: 400px;
  object-fit: contain;
}
.go-user-ad-row:last-child {
  border-bottom: 0 !important;
}
.go-admin-ad-toolbar {
  flex: 0 0 auto;
  white-space: nowrap;
}
.go-admin-ad-toolbar .form-select {
  width: auto;
  min-width: 112px;
}
.go-admin-ad-toolbar .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.go-admin-ad-thumb {
  width: 72px;
  height: 54px;
  flex: 0 0 72px;
  border-radius: .5rem;
  object-fit: cover;
  background: var(--bs-light);
}
.go-admin-ad-thumb-icon {
  padding: 14px 22px;
  object-fit: contain;
}

/* User advertising lifecycle controls */
.go-user-ad-actions {
  align-items: center;
}
.go-user-ad-edit {
  padding: .85rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .5rem;
  background: var(--bs-light);
}
.go-user-ad-edit .form-label {
  margin-bottom: .3rem;
  font-weight: 400;
}
