/* BudunOS forums directory + thread variants
 * Body: bos-forums-v-{id}
 * Shell: .bos-dir--forums.bos-forums--{id}
 */

/* ========== soft (identity) ========== */
body.bos-forums-v-soft .bos-dir--forums {
  /* default soft sections / posts */
}

/* ========== compact ========== */
body.bos-forums-v-compact .bos-dir--forums .bos-dir-hero {
  padding: 14px 14px 12px;
  border-radius: 14px;
  margin-bottom: 12px;
}

body.bos-forums-v-compact .bos-dir--forums .bos-dir-hero-title strong {
  font-size: 15px;
}

body.bos-forums-v-compact .bos-dir--forums .bos-dir-hero-copy p {
  font-size: 12px;
}

body.bos-forums-v-compact .bos-dir--forums .bos-dir-tabs > a {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
}

body.bos-forums-v-compact .bos-dir--forums .bos-forum-section,
body.bos-forums-v-compact .bos-dir--forums .bos-forum-meta-card,
body.bos-forums-v-compact .bos-dir--forums .bos-forum-post,
body.bos-forums-v-compact .bos-dir--forums .bos-forum-form-card,
body.bos-forums-v-compact .bos-dir--forums .bos-forum-result {
  border-radius: 12px;
  margin-bottom: 10px;
}

body.bos-forums-v-compact .bos-dir--forums .bos-forum-section-head,
body.bos-forums-v-compact .bos-dir--forums .bos-forum-table-head,
body.bos-forums-v-compact .bos-dir--forums .bos-forum-row {
  padding-top: 8px;
  padding-bottom: 8px;
}

body.bos-forums-v-compact .bos-dir--forums .bos-forum-row-title {
  font-size: 13px;
}

body.bos-forums-v-compact .bos-dir--forums .bos-forum-row-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

body.bos-forums-v-compact .bos-dir--forums .bos-forum-pagehead h1 {
  font-size: 20px;
}

body.bos-forums-v-compact .bos-dir--forums .bos-forum-cta {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 8px;
}

body.bos-forums-v-compact .bos-dir--forums .bos-forum-post-author img {
  width: 40px;
  height: 40px;
}

/* ========== glass ========== */
body.bos-forums-v-glass .bos-dir--forums .bos-dir-hero,
body.bos-forums-v-glass .bos-dir--forums .bos-forum-section,
body.bos-forums-v-glass .bos-dir--forums .bos-forum-meta-card,
body.bos-forums-v-glass .bos-dir--forums .bos-forum-stat,
body.bos-forums-v-glass .bos-dir--forums .bos-forum-post,
body.bos-forums-v-glass .bos-dir--forums .bos-forum-form-card,
body.bos-forums-v-glass .bos-dir--forums .bos-forum-result {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 14px 40px -24px rgba(20, 24, 32, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

body.bos-forums-v-glass .bos-dir--forums .bos-forum-section-head,
body.bos-forums-v-glass .bos-dir--forums .bos-forum-meta-card-head,
body.bos-forums-v-glass .bos-dir--forums .bos-forum-form-head,
body.bos-forums-v-glass .bos-dir--forums .bos-forum-post-author {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}

body.bos-forums-v-glass .bos-dir--forums .bos-dir-tabs > a.active {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px -12px rgba(20, 24, 32, 0.35);
}

body.bos-forums-v-glass .bos-dir--forums .bos-forum-row:hover {
  background: rgba(255, 255, 255, 0.55);
}

body.night-mode.bos-forums-v-glass .bos-dir--forums .bos-dir-hero,
body.night-mode.bos-forums-v-glass .bos-dir--forums .bos-forum-section,
body.night-mode.bos-forums-v-glass .bos-dir--forums .bos-forum-meta-card,
body.night-mode.bos-forums-v-glass .bos-dir--forums .bos-forum-stat,
body.night-mode.bos-forums-v-glass .bos-dir--forums .bos-forum-post,
body.night-mode.bos-forums-v-glass .bos-dir--forums .bos-forum-form-card,
body.night-mode.bos-forums-v-glass .bos-dir--forums .bos-forum-result,
html[data-bs-theme="dark"].bos-forums-v-glass .bos-dir--forums .bos-dir-hero,
html[data-bs-theme="dark"].bos-forums-v-glass .bos-dir--forums .bos-forum-section,
html[data-bs-theme="dark"].bos-forums-v-glass .bos-dir--forums .bos-forum-meta-card,
html[data-bs-theme="dark"].bos-forums-v-glass .bos-dir--forums .bos-forum-stat,
html[data-bs-theme="dark"].bos-forums-v-glass .bos-dir--forums .bos-forum-post,
html[data-bs-theme="dark"].bos-forums-v-glass .bos-dir--forums .bos-forum-form-card,
html[data-bs-theme="dark"].bos-forums-v-glass .bos-dir--forums .bos-forum-result {
  background: rgba(30, 37, 43, 0.78);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 14px 40px -20px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.night-mode.bos-forums-v-glass .bos-dir--forums .bos-forum-section-head,
body.night-mode.bos-forums-v-glass .bos-dir--forums .bos-forum-meta-card-head,
body.night-mode.bos-forums-v-glass .bos-dir--forums .bos-forum-form-head,
body.night-mode.bos-forums-v-glass .bos-dir--forums .bos-forum-post-author,
html[data-bs-theme="dark"].bos-forums-v-glass .bos-dir--forums .bos-forum-section-head,
html[data-bs-theme="dark"].bos-forums-v-glass .bos-dir--forums .bos-forum-meta-card-head,
html[data-bs-theme="dark"].bos-forums-v-glass .bos-dir--forums .bos-forum-form-head,
html[data-bs-theme="dark"].bos-forums-v-glass .bos-dir--forums .bos-forum-post-author {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ========== ink ========== */
body.bos-forums-v-ink .bos-dir--forums .bos-dir-hero,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-section,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-meta-card,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-stat,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-post,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-form-card,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-result {
  background: #141a20;
  border-color: rgba(255, 255, 255, 0.1);
  color: #f0f3f6;
}

body.bos-forums-v-ink .bos-dir--forums .bos-dir-hero-title strong,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-section-head a,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-row-title,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-meta-title,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-meta-card-head,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-pagehead h1,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-post-name,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-form-head,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-result-title,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-stat strong,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-crumb strong {
  color: #f0f3f6;
}

body.bos-forums-v-ink .bos-dir--forums .bos-dir-hero-copy p,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-row-copy p,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-row-mobile,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-muted,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-role,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-post-author small,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-stat span,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-crumb,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-crumb a,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-pagehead p,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-result-meta,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-result-snippet,
body.bos-forums-v-ink .bos-dir--forums .bos-dir-tabs > a {
  color: #8b949e;
}

body.bos-forums-v-ink .bos-dir--forums .bos-dir-tabs > a.active {
  color: #f0f3f6;
  background: rgba(255, 255, 255, 0.08);
}

body.bos-forums-v-ink .bos-dir--forums .bos-forum-section-head,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-table-head,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-meta-card-head,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-form-head,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-post-author {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

body.bos-forums-v-ink .bos-dir--forums .bos-forum-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

body.bos-forums-v-ink .bos-dir--forums .bos-forum-row-title:hover,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-section-head a:hover,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-crumb a:hover,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-result-title:hover {
  color: #fff;
}

body.bos-forums-v-ink .bos-dir--forums .bos-forum-toggle,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-iconbtn,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-row-ico {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f0f3f6;
}

body.bos-forums-v-ink .bos-dir--forums .bos-forum-cta {
  background: #fff !important;
  border-color: #fff !important;
  color: #141a20 !important;
}

body.bos-forums-v-ink .bos-dir--forums .bos-forum-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #f0f3f6;
}

body.bos-forums-v-ink .bos-dir--forums .bos-forum-field .form-control,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-field .form-select {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f0f3f6;
}

body.bos-forums-v-ink .bos-dir--forums .bos-forum-post-text,
body.bos-forums-v-ink .bos-dir--forums .bos-forum-field label {
  color: #e8eaed;
}

/* ========== cards (magazine sections + pill tabs) ========== */
body.bos-forums-v-cards .bos-dir--forums .bos-dir-tabs {
  gap: 4px;
}

body.bos-forums-v-cards .bos-dir--forums .bos-dir-tabs > a {
  border-radius: 999px;
  padding: 7px 14px;
}

body.bos-forums-v-cards .bos-dir--forums .bos-dir-tabs > a.active {
  background: #1b1e23;
  color: #fff;
}

body.night-mode.bos-forums-v-cards .bos-dir--forums .bos-dir-tabs > a.active,
html[data-bs-theme="dark"].bos-forums-v-cards .bos-dir--forums .bos-dir-tabs > a.active {
  background: #fff;
  color: #0f1419;
}

body.bos-forums-v-cards .bos-dir--forums .bos-forum-section,
body.bos-forums-v-cards .bos-dir--forums .bos-forum-meta-card,
body.bos-forums-v-cards .bos-dir--forums .bos-forum-post,
body.bos-forums-v-cards .bos-dir--forums .bos-forum-form-card,
body.bos-forums-v-cards .bos-dir--forums .bos-forum-result {
  border-radius: 18px;
  box-shadow: 0 14px 36px -24px rgba(20, 24, 32, 0.28);
}

body.bos-forums-v-cards .bos-dir--forums .bos-forum-section-head {
  border-radius: 18px 18px 0 0;
}

body.bos-forums-v-cards .bos-dir--forums .bos-forum-row {
  margin: 0 8px 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f6f7f9;
}

body.night-mode.bos-forums-v-cards .bos-dir--forums .bos-forum-row,
html[data-bs-theme="dark"].bos-forums-v-cards .bos-dir--forums .bos-forum-row {
  background: rgba(255, 255, 255, 0.04);
}

body.bos-forums-v-cards .bos-dir--forums .bos-forum-row:hover {
  background: color-mix(in srgb, var(--link-color) 10%, #fff);
}

body.night-mode.bos-forums-v-cards .bos-dir--forums .bos-forum-row:hover,
html[data-bs-theme="dark"].bos-forums-v-cards .bos-dir--forums .bos-forum-row:hover {
  background: color-mix(in srgb, var(--link-color) 18%, transparent);
}

body.bos-forums-v-cards .bos-dir--forums .bos-forum-table-head {
  margin: 0 8px;
  padding-left: 12px;
  padding-right: 12px;
  background: transparent;
  border: 0;
}

body.bos-forums-v-cards .bos-dir--forums .bos-forum-stats {
  gap: 10px;
}

body.bos-forums-v-cards .bos-dir--forums .bos-forum-stat {
  border-radius: 14px;
  padding: 12px;
}

body.bos-forums-v-cards .bos-dir--forums .bos-forum-cta {
  border-radius: 999px;
}

body.bos-forums-v-cards .bos-dir--forums .bos-forum-post {
  border-radius: 18px;
  overflow: hidden;
}

body.bos-forums-v-cards .bos-dir--forums .bos-forum-post-author {
  background: color-mix(in srgb, var(--link-color) 8%, #fff);
}

body.night-mode.bos-forums-v-cards .bos-dir--forums .bos-forum-post-author,
html[data-bs-theme="dark"].bos-forums-v-cards .bos-dir--forums .bos-forum-post-author {
  background: color-mix(in srgb, var(--link-color) 14%, transparent);
}
