/* ===============================
   📜 DOPE TONE NOTICE BOARD
   =============================== */
.notice-board {
  margin-top: 24px;
  background: #fafafa; /* White paper */
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 
    0 4px 12px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.notice-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  border-bottom: 2px solid var(--dt-blue-glow);
}

.notice-board-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--dt-blue-glow);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.notice-board-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #00ff88;
  font-family: 'Poppins', sans-serif;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff88;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.notice-board-feed {
  max-height: 420px;
  overflow-y: auto;
  padding: 16px;
  background: #fafafa;
  background-image: 
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 100% 24px; /* Lined paper effect */
}

.notice-board-feed::-webkit-scrollbar {
  width: 6px;
}

.notice-board-feed::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}

/* NOTICE ITEM */
.notice-item {
  margin-bottom: 20px;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  border-left: 3px solid var(--dt-blue);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.notice-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.notice-item-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dt-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.notice-item-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #0a0a0a;
}

.notice-item-time {
  font-size: 11px;
  color: rgba(0,0,0,0.4);
  margin-left: auto;
  font-family: 'Poppins', sans-serif;
}

.notice-item-text {
  font-size: 13px;
  color: #1a1a1a;
  line-height: 1.5;
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* AUTO EMBED STYLES */
.notice-item-media {
  margin-top: 8px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
}

.notice-item-media img,
.notice-item-media video {
  width: 100%;
  display: block;
}

.notice-item-link-preview {
  margin-top: 8px;
  padding: 10px;
  background: #f5f5f5;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.notice-item-link-preview:hover {
  background: #efefef;
  border-color: var(--dt-blue);
}

.link-preview-thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #ddd;
}

.link-preview-content {
  flex: 1;
  min-width: 0;
}

.link-preview-title {
  font-size: 13px;
  font-weight: 600;
  color: #0a0a0a;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-preview-desc {
  font-size: 11px;
  color: rgba(0,0,0,0.6);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.link-preview-domain {
  font-size: 10px;
  color: var(--dt-blue);
  margin-top: 4px;
  font-weight: 600;
}

/* USER REPLY */
.notice-item.user-reply {
  border-left-color: var(--dt-red);
  background: #fffbfb;
}

.notice-item.user-reply .notice-item-avatar {
  background: var(--dt-red);
}

/* INPUT AREA */
.notice-board-input-wrap {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.08);
}

#noticeBoardInput {
  flex: 1;
  height: 38px;
  padding: 0 14px;
  background: #f5f5f5;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 20px;
  color: #1a1a1a;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: all 0.2s ease;
}

#noticeBoardInput:focus {
  background: #fff;
  border-color: var(--dt-blue);
  box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.1);
}

#noticeBoardInput::placeholder {
  color: rgba(0,0,0,0.4);
}

.notice-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--dt-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.notice-send-btn:hover {
  background: var(--dt-blue-glow);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
  transform: scale(1.05);
}

.notice-send-btn:active {
  transform: scale(0.95);
}

/* MOBILE */
@media (max-width: 768px) {
  .notice-board-feed {
    max-height: 300px;
  }
}
