/* Announce View - cb_announcement */

.cb-announce-view {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

/* ========== Header ========== */
.cb-announce-view .announce-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid #e2e8f0;
}

.cb-announce-view .announce-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

/* ========== List table ========== */
.cb-announce-view .announce-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

.cb-announce-view .announce-table thead {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}

.cb-announce-view .announce-table th,
.cb-announce-view .announce-table td {
  padding: .625rem .75rem;
  text-align: left;
  vertical-align: middle;
}

.cb-announce-view .announce-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background .15s;
}

.cb-announce-view .announce-table tbody tr:hover {
  background: #f8fafc;
}

.cb-announce-view .announce-table tbody tr.pinned {
  background: #eff6ff;
}

.cb-announce-view .announce-table tbody tr.pinned:hover {
  background: #dbeafe;
}

.cb-announce-view .announce-table .col-num {
  width: 50px;
  text-align: center;
  color: #94a3b8;
}

.cb-announce-view .announce-table .col-title a,
.cb-announce-view .announce-table .col-title a:visited,
.cb-announce-view .announce-table .col-title a:active,
.cb-announce-view .announce-table .col-title a:focus {
  color: #334155;
  text-decoration: none !important;
  font-weight: 500;
  outline: none !important;
  box-shadow: none !important;
  user-select: none !important;
  background-color: transparent !important;
}

.cb-announce-view .announce-table .col-title a:hover {
  color: #6366f1;
}

.cb-announce-view .announce-table .col-author {
  width: 120px;
  color: #64748b;
}

.cb-announce-view .announce-table .col-date {
  width: 110px;
  color: #94a3b8;
}

/* ========== Empty state ========== */
.cb-announce-view .announce-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
  background: #f8fafc;
  border-radius: .5rem;
  border: 1px dashed #cbd5e1;
}

/* ========== Post detail ========== */
.cb-announce-view .post-detail {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
  padding: 1.5rem;
}

.cb-announce-view .post-header {
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #f1f5f9;
}

.cb-announce-view .post-title {
  margin: 0 0 .5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.cb-announce-view .post-meta {
  display: flex;
  gap: 1rem;
  font-size: .8125rem;
  color: #94a3b8;
}

.cb-announce-view .post-meta i {
  margin-right: .25rem;
}

.cb-announce-view .post-body {
  font-size: .9375rem;
  line-height: 1.7;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
}

.cb-announce-view .post-actions {
  margin-top: .5rem !important;
  
  button {
    margin-left: .5rem !important;
  }
}

.announce-list-actions {
  display: flex;
  align-items: center;
  justify-content: end;
}

/* ========== Attachments ========== */
.cb-announce-view .post-attachments {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.cb-announce-view .attachments-title {
  font-size: .875rem;
  font-weight: 600;
  color: #475569;
  margin: 0 0 .5rem;
}

.cb-announce-view .attachments-title i {
  margin-right: .25rem;
  color: #6366f1;
}

.cb-announce-view .attachment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cb-announce-view .attachment-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem 0;
  font-size: .8125rem;
}

.cb-announce-view .attachment-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cb-announce-view .attachment-item a,
.cb-announce-view .attachment-item a:visited,
.cb-announce-view .attachment-item a:active,
.cb-announce-view .attachment-item a:focus,
.cb-announce-view .attachment-item a:hover {
  color: #334155;
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

.cb-announce-view .attachment-item a:hover {
  color: #6366f1;
}

.cb-announce-view .attachment-size {
  color: #94a3b8;
  font-size: .75rem;
}