/* ================================
   BOARD SINGLE VIEW
================================ */

.board-view {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 28px 24px 40px;
  min-height: 100%;
  color: var(--text);
  background: transparent;
}

.board-view .location-title {
  margin-bottom: 18px;
  text-align: center;
}

.board-view .location-path {
  margin: 0 0 6px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8c78ba;
}

.board-view .location-path .path-dim {
  color: rgba(140, 120, 186, 0.58);
}

.board-view .location-name {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(243, 238, 248, 0.94);
}

.board-view .board-separator {
  border: 0;
  height: 1px;
  background: rgba(197, 167, 255, 0.08);
  margin: 0 0 24px;
}

.board-view .btn-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.board-view .btn-row .sidebar-button {
  display: inline-flex;
  width: auto;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: var(--accent-soft);
  border: 1px solid rgba(197, 167, 255, 0.12);
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.board-view .btn-row .sidebar-button:hover {
  background: rgba(197, 167, 255, 0.12);
  border-color: rgba(197, 167, 255, 0.16);
  box-shadow: 0 0 14px rgba(197, 167, 255, 0.06);
  color: var(--text);
  text-shadow: none;
}

.board-view .btn-row .sidebar-button.primary {
  padding-inline: 20px;
}

.board-view .board-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.board-view .board-table thead th {
  text-align: center;
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(243, 238, 248, 0.54);
  padding: 0 10px 10px;
  border-bottom: 1px solid rgba(197, 167, 255, 0.08);
}

.board-view .board-table tbody tr {
  border-bottom: 1px solid rgba(197, 167, 255, 0.06);
  transition: background 160ms ease;
}

.board-view .board-table tbody tr:hover {
  background: rgba(197, 167, 255, 0.03);
}

.board-view .board-table td {
  padding: 16px 10px;
  vertical-align: middle;
  color: var(--text);
}

.board-view .board-table thead th:nth-child(2),
.board-view .board-table thead th:nth-child(4),
.board-view .board-table thead th:nth-child(5),
.board-view .board-table td:nth-child(2),
.board-view .board-table td:nth-child(4),
.board-view .board-table td:nth-child(5) {
  text-align: center;
}

.board-view .board-table td:nth-child(4) {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.70rem;
  color: rgba(243, 238, 248, 0.62);
}

.board-view .author-name,
.board-view .last-reply-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 3px;
}

.board-view .author-date,
.board-view .last-reply-date {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.70rem;
  line-height: 1.35;
  color: rgba(243, 238, 248, 0.62);
  white-space: nowrap;
}

.board-view .last-reply-name,
.board-view .last-reply-date {
  white-space: nowrap;
}

.board-view .date-separator {
  display: inline-block;
  margin: 0 2px;
  font-size: 0.50rem;
  color: rgba(243, 238, 248, 0.28);
  vertical-align: middle;
}

.board-view .thread-title {
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(243, 238, 248, 0.88);
  line-height: 1.35;
}

.board-view .thread-flag {
  display: inline-block;
  margin-right: 8px;
  font-weight: 700;
}

.board-view .flag-important {
  color: rgba(255, 207, 123, 0.80);
}

.board-view .col-status,
.board-view .col-replies {
  text-align: center;
}

.board-view .status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  vertical-align: middle;
  background: #6d648e;
}

.board-view .status-dot.open {
  background: #8fd7df;
  box-shadow: 0 0 8px rgba(143, 215, 223, 0.18);
}

.board-view .status-dot.closed {
  background: #5e567b;
}

.board-view .status-dot.archived {
  background: #8e7aa8;
}

.board-view .status-text {
  display: none;
}

.board-view .col-replies {
  font-size: 0.70rem;
  font-weight: 400;
  color: rgba(243, 238, 248, 0.62);
}

.board-view .board-table td:nth-child(4) {
  color: rgba(243, 238, 248, 0.62);
}

.board-view .last-reply-name,
.board-view .last-reply-date {
  text-align: left;
}

.board-view .no-reply {
  display: inline-block;
  font-size: 0.72rem;
  color: rgba(243, 238, 248, 0.62);
}

.board-view .board-empty-cell {
  text-align: center;
  color: rgba(243, 238, 248, 0.62);
  padding: 24px 16px;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 820px) {
  .board-view {
    padding: 24px 10px 30px;
  }

  .board-view .location-title {
    margin-bottom: 16px;
  }

  .board-view .btn-row {
    justify-content: center;
    gap: 10px;
  }

  .board-view .btn-row .sidebar-button {
    padding: 10px 16px;
    font-size: 0.72rem;
  }

  .board-view .board-table,
  .board-view .board-table thead,
  .board-view .board-table tbody,
  .board-view .board-table tr,
  .board-view .board-table td {
    display: block;
    width: 100%;
  }

  .board-view .board-table thead,
  .board-view .board-table colgroup {
    display: none;
  }

  .board-view .board-table tbody {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .board-view .board-table tbody tr {
    padding: 10px 0 14px;
    border-bottom: 1px solid rgba(197, 167, 255, 0.08);
  }

  .board-view .board-table td {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
    padding: 4px 0;
    white-space: normal;
    text-align: left !important;
    align-items: start;
    border: 0;
  }

  .board-view .board-table td::before {
    content: attr(data-label);
    color: rgba(243, 238, 248, 0.45);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.35;
  }

  .board-view .mobile-value {
    min-width: 0;
    text-align: right;
    justify-self: end;
  }

  .board-view .mobile-value .last-reply-name,
  .board-view .mobile-value .last-reply-date,
  .board-view .mobile-value .author-name,
  .board-view .mobile-value .author-date {
    text-align: right;
   }

  .board-view .thread-value {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
  }

  .board-view .status-value {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
  }

  .board-view .status-text {
    font-size: 0.70rem;
    color: rgba(243, 238, 248, 0.70);
    text-transform: capitalize;
  }

  .board-view .thread-title {
    font-size: 0.86rem;
    color: rgba(243, 238, 248, 0.92);
  }

  .board-view .thread-flag {
    margin-right: 0;
  }

  .board-view .author-name,
  .board-view .last-reply-name {
    margin-bottom: 2px;
    font-size: 0.75rem;
  }

  .board-view .author-date,
  .board-view .last-reply-date {
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .board-view .col-replies .mobile-value,
  .board-view .col-status .mobile-value {
    text-align: right;
  }

  .board-view .no-reply {
    display: inline-block;
    font-size: 0.72rem;
    color: rgba(243, 238, 248, 0.62);
  }
}
