/* Approved 2026-08-23 Padlet-like shelf actions. */

.student-board-shelf-lane {
  display: flex;
  width: 340px;
  min-width: 340px;
  flex-direction: column;
  padding: 14px;
  border: 1px solid #d6dfeb;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 22px rgba(40, 59, 91, .07);
  scroll-snap-align: start;
}

body.student-board-page #postContainer[data-view="shelf"] {
  display: flex !important;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.student-board-shelf-lane > header h3 { color: #1c2942; font-size: 17px; }
.student-board-shelf-lane > header span { color: #4862a2; }
.student-board-shelf-posts { min-height: 0; flex: none; overflow: visible; }
.student-board-shelf-lane .post-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-color: #dbe3ee;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(33, 53, 86, .05);
}
.student-board-shelf-lane .board-file-card img { max-height: 170px; }

.student-board-shelf-lane .post-body { padding: 13px; }
.student-board-shelf-lane .post-read-zone { min-height: 0; }
.student-board-shelf-lane .author-name,
.student-board-shelf-lane .post-title { color: #17213a; }

.student-board-shelf-lane .post-content-preview {
  display: -webkit-box;
  overflow: hidden;
  color: #5f6e87;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.student-board-shelf-lane .reaction-total-badge,
.student-board-shelf-lane .comment-summary-head,
.student-board-shelf-lane .comment-summary-preview,
.student-board-shelf-lane .comment-summary-section .view-comments span {
  display: none;
}

.student-board-shelf-lane .comment-summary-section {
  position: absolute;
  right: 13px;
  bottom: 13px;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.student-board-shelf-lane .comment-summary-section .view-comments {
  display: inline-flex;
  width: auto;
  min-width: 42px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
  padding: 0 9px;
  border: 0;
  color: #60718d;
  background: transparent;
  font-size: 12px;
}

.student-board-shelf-lane .comment-summary-section .view-comments::after {
  content: attr(data-comment-count);
}

.student-board-shelf-compose {
  width: 100%;
  min-height: 40px;
  margin: 10px 0 0;
  border: 1px solid #8ba8f5;
  border-radius: 10px;
  color: #2d5bd7;
  background: #f8faff;
  font-weight: 900;
  cursor: pointer;
}

.student-board-shelf-add {
  display: grid;
  min-width: 300px;
  min-height: 360px;
  align-content: center;
  gap: 10px;
  border: 2px dashed #adc0df;
  border-radius: 16px;
  color: #3564dc;
  background: rgba(247, 250, 255, .72);
  cursor: pointer;
}

.student-board-shelf-add i {
  font-size: 34px;
}

.student-board-shelf-add strong {
  font-size: 17px;
}

.student-board-shelf-add span {
  color: #7c8ba5;
  font-size: 12px;
}

@media (max-width: 760px) {
  body.student-board-page #postContainer[data-view="shelf"] {
    display: grid !important;
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .student-board-shelf-lane,
  .student-board-shelf-add { width: 100%; min-width: 0; height: auto; min-height: 0; max-height: none; }
}
