/* ===== HOME PAGE ===== */

/* Welcome banner */
.home-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  background: var(--c-blue);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.home-banner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -20px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.home-banner::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: 60px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.home-banner-content {
  position: relative;
  z-index: 1;
}

.home-banner-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.home-banner-content p {
  font-size: 13px;
  opacity: 0.85;
}

.home-banner-stats {
  display: flex;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.banner-stat {
  text-align: center;
}

.banner-stat-num {
  display: block;
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.banner-stat-label {
  font-size: 11px;
  opacity: 0.8;
}

/* Site-wide stats bar */
.site-stats-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.site-stats-bar .ss-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.site-stats-bar .ss-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.site-stats-bar .ss-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.site-stats-bar .ss-divider {
  width: 1px;
  height: 32px;
  background: var(--border-color);
  margin: 0 8px;
}

/* Two-column row: my stats/fortune | announcements */
.home-main-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.home-left-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-announce-card {
  display: flex;
  flex-direction: column;
}

/* My stats grid */
.my-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.my-stat {
  text-align: center;
  padding: 12px 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.my-stat-num {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.my-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Hot posts + activity side by side */
.home-content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Fortune card */
.fortune-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fortune-level {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.fortune-detail {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.8;
}

.fortune-detail .yi { color: var(--green); }
.fortune-detail .ji { color: var(--red); }

.btn-checkin {
  margin-top: 12px;
  padding: 8px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: #fff;
}

.btn-checkin.done {
  opacity: 0.5;
  cursor: default;
}

/* Announcement & Ad */
.home-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.announce-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.announce-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 0;
}

.announce-item .announce-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}

.announce-item:nth-child(1) .announce-dot { background: var(--c-blue); }
.announce-item:nth-child(2) .announce-dot { background: var(--c-green); }
.announce-item:nth-child(3) .announce-dot { background: var(--c-orange); }
.announce-item:nth-child(4) .announce-dot { background: var(--c-purple); }
.announce-item:nth-child(5) .announce-dot { background: var(--c-pink); }


/* Hot Posts */
.hot-posts {
  margin-bottom: 24px;
}

.hot-posts .section-title {
  margin-bottom: 8px;
}

.hot-posts .post-card-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 0;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.hot-posts .post-card-mini:hover {
  background: var(--bg-hover);
}

.post-card-mini .pcm-info {
  flex: 1;
  min-width: 0;
}

.post-card-mini .pcm-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card-mini .pcm-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.post-card-mini .pcm-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* Activities */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.activity-item:last-child { border-bottom: none; }

.activity-item .act-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.activity-item .act-text {
  flex: 1;
}

.activity-item .act-text strong {
  font-weight: 600;
  color: var(--text-primary);
}

.activity-item .act-target {
  color: var(--accent);
  font-weight: 500;
}

.activity-item .act-time {
  font-size: 11px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

/* ===== CHAT PAGE ===== */
.chat-layout {
  display: flex;
  height: calc(100vh - var(--topbar-height) - 48px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
}

/* Chat Left Panel */
.chat-left {
  width: 320px;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}

.chat-left-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.chat-left-header h3 {
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 12px;
}

.chat-search-add {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-search-add .input {
  flex: 1;
}

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.btn-icon:hover { background: var(--bg-tertiary); }

/* Add Button Dropdown */
.add-dropdown-wrap {
  position: relative;
}

/* Transparent bridge — fills the gap between button and dropdown so
   the cursor doesn't leave the hover area while moving to the menu */
.add-dropdown-wrap::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 0;
  width: 34px;
  height: 6px;
  z-index: 50;
}

.add-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 160px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 4px 0;
  z-index: 50;
}

.add-dropdown-wrap:hover .add-dropdown,
.add-dropdown:hover {
  display: block;
}

.add-dropdown .add-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.add-dropdown .add-item:hover { background: var(--bg-hover); }

.add-dropdown .add-info {
  font-size: 11px;
  color: var(--text-tertiary);
  padding: 6px 14px;
  border-top: 1px solid var(--border-light);
  line-height: 1.6;
}

.add-dropdown .add-info strong {
  color: var(--accent);
}

/* Chat List */
.chat-list-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.chat-list-section {
  margin-bottom: 4px;
}

.chat-list-section .section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  padding: 6px 16px;
  letter-spacing: 0.5px;
}

.chat-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.chat-list-item:hover { background: var(--bg-hover); }
.chat-list-item.active  { background: var(--bg-active); }

.chat-list-item .cli-info {
  flex: 1;
  min-width: 0;
}

.chat-list-item .cli-name {
  font-size: 14px;
  font-weight: 550;
  color: var(--text-primary);
}

.chat-list-item .cli-last-msg {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.chat-list-item .cli-time {
  font-size: 11px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  align-self: flex-start;
}

/* Chat Right Panel */
.chat-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-right-header {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-right-header .chat-partner-name {
  font-size: 15px;
  font-weight: 600;
}

.chat-right-header .chat-partner-status {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Messages Area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-secondary);
}

.chat-msg {
  display: flex;
  gap: 10px;
  max-width: 70%;
  animation: fadeIn 0.2s ease-out;
}

.chat-msg.mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg .msg-bubble {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.chat-msg:not(.mine) .msg-bubble {
  background: var(--bg-primary);
  border-top-left-radius: 3px;
  color: var(--text-primary);
}

.chat-msg.mine .msg-bubble {
  background: var(--accent);
  color: #fff;
  border-top-right-radius: 3px;
}

.chat-msg .msg-time {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 4px;
  padding: 0 4px;
}

.chat-msg.mine .msg-time {
  text-align: right;
}

.chat-msg .msg-sender {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  padding: 0 4px;
}

/* Typing Indicator */
.typing-indicator {
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 4px 20px;
  font-style: italic;
  display: none;
}

.typing-indicator.visible { display: block; }

/* Chat Input */
.chat-input-bar {
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--bg-primary);
}

.chat-input-bar .input {
  flex: 1;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
}

.chat-input-bar .btn-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.chat-input-bar .btn-send:hover { background: var(--accent-hover); transform: scale(1.05); }

/* No Chat Selected */
.chat-no-select {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  gap: 12px;
}

.chat-no-select .no-chat-icon {
  font-size: 48px;
  opacity: 0.5;
}

.chat-no-select p {
  font-size: 14px;
}

/* ===== DISCUSSION PAGE ===== */
.discussion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.board-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.board-tab {
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.board-tab:hover { color: var(--text-primary); background: var(--bg-hover); }
.board-tab.active {
  background: var(--bg-primary);
  color: var(--accent);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Per-board accent on active tab */
.board-tab[data-board="灌水区"].active { color: var(--c-blue); }
.board-tab[data-board="站务办"].active { color: var(--c-red); }
.board-tab[data-board="技术区"].active { color: var(--c-purple); }
.board-tab[data-board="创意区"].active { color: var(--c-pink); }
.board-tab[data-board="资源分享"].active { color: var(--c-green); }

.discussion-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
}

.discussion-toolbar .input {
  width: 200px;
}

/* Post Card */
.post-card {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-color);
}

.post-card.pinned {
  border-left: 3px solid var(--orange);
}

.post-card .post-body {
  flex: 1;
  min-width: 0;
}

.post-card .post-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.post-card .post-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.post-card .post-title-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-card .post-board-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 11px;
}

.post-card .post-board-name {
  color: var(--text-tertiary);
  font-size: 11px;
}

.post-card .post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.post-card .post-author {
  font-size: 12px;
  color: var(--text-secondary);
}

.post-card .post-stats {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.post-card .post-stats span {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Admin action buttons */
.btn-admin-sm {
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.btn-admin-sm:hover { background: var(--accent); color: #fff; }
.btn-admin-del { color: var(--red); }
.btn-admin-del:hover { background: var(--red); color: #fff; }

/* New Post Button */
.btn-new-post {
  flex-shrink: 0;
}

/* Post Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 300;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: 24px;
  width: 500px;
  max-width: 90vw;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.25s ease-out;
}

.modal h3 {
  font-size: 18px;
  font-weight: 650;
  margin-bottom: 16px;
}

.modal .form-group {
  margin-bottom: 14px;
}

.modal .form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal .form-group select,
.modal .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  resize: vertical;
}

.modal .form-group textarea {
  min-height: 120px;
}

.modal .form-group select:focus,
.modal .form-group textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.modal .modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

/* ===== CLIPBOARD PAGE ===== */
.clipboard-layout {
  display: flex;
  gap: 0;
  height: calc(100vh - var(--topbar-height) - 48px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.clip-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.clip-editor textarea {
  flex: 1;
  padding: 20px;
  border: none;
  resize: none;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  border-right: 1px solid var(--border-color);
}

.clip-editor textarea:focus { outline: none; }

.clip-preview {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: var(--bg-primary);
  line-height: 1.7;
  font-size: 14px;
}

.clip-preview h1, .clip-preview h2, .clip-preview h3 {
  margin: 16px 0 8px;
  font-weight: 650;
}
.clip-preview h1 { font-size: 22px; }
.clip-preview h2 { font-size: 18px; }
.clip-preview h3 { font-size: 16px; }
.clip-preview p { margin: 8px 0; }
.clip-preview code {
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
}
.clip-preview pre {
  background: var(--bg-secondary);
  padding: 14px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
}
.clip-preview blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  color: var(--text-secondary);
  margin: 8px 0;
}

.clip-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.clip-toolbar .clip-title {
  font-size: 15px;
  font-weight: 600;
}

.clip-toolbar .clip-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.share-link-input {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--accent);
  width: 240px;
}

/* ===== CONTACTS PAGE ===== */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
}

.contact-card .contact-info {
  min-width: 0;
}

.contact-card .contact-name {
  font-size: 14px;
  font-weight: 550;
  color: var(--text-primary);
}

.contact-card .contact-status {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ===== SETTINGS PAGE ===== */
.settings-flat {
  padding: 0;
  margin-bottom: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.settings-flat h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0;
  padding: 14px 0 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.settings-section {
  margin-bottom: 24px;
}

.settings-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-row .setting-label {
  font-size: 14px;
  color: var(--text-primary);
}

.settings-row .setting-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Toggle Switch */
.toggle {
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: var(--bg-tertiary);
  cursor: pointer;
  position: relative;
  transition: background var(--transition-fast);
}

.toggle.on {
  background: var(--accent);
}

.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform var(--transition-fast);
}

.toggle.on::after {
  transform: translateX(18px);
}

/* ===== COMMUNITY PAGE ===== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.community-card {
  padding: 28px 24px 24px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.community-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.community-card .comm-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.community-card .comm-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.community-card .comm-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .home-main-row {
    grid-template-columns: 1fr;
  }
  .home-content-row {
    grid-template-columns: 1fr;
  }
  .site-stats-bar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .site-stats-bar .ss-divider {
    display: none;
  }
  .chat-left {
    width: 260px;
  }
}

/* Color enhancements */
.section-title { color: var(--text-secondary); }

/* Community cards: colored solid top stripe per board */
.community-card:nth-child(1) { border-top: 3px solid var(--c-blue); }
.community-card:nth-child(2) { border-top: 3px solid var(--c-purple); }
.community-card:nth-child(3) { border-top: 3px solid var(--c-green); }
.community-card:nth-child(4) { border-top: 3px solid var(--c-orange); }
.community-card:nth-child(5) { border-top: 3px solid var(--c-red); }

/* Colored icon badge on community cards */
.community-card .comm-badge {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.community-card .comm-badge-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  margin: 0 auto 14px;
  display: block;
}
.community-card:nth-child(1) .comm-badge { background: var(--c-blue); }
.community-card:nth-child(2) .comm-badge { background: var(--c-purple); }
.community-card:nth-child(3) .comm-badge { background: var(--c-green); }
.community-card:nth-child(4) .comm-badge { background: var(--c-orange); }
.community-card:nth-child(5) .comm-badge { background: var(--c-red); }

.post-card.pinned { border-left-color: var(--orange); }
.hot-posts .post-card-mini:hover { background: rgba(0,122,255,0.04); }

/* Ad card subtle tint */
.ad-card { background: var(--bg-card); }

/* Fortune number pop */
.fortune-detail strong { font-size: 16px; }

/* ===== USER PROFILE PAGE ===== */
.profile-header-card {
  background: var(--bg-card) !important;
  border-left: 4px solid var(--accent) !important;
}

.profile-stat-num {
  font-size: 24px;
  font-weight: 700;
}

/* Mini post card on profile & home */
.post-card-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition-fast);
  border: 1px solid transparent;
}
.post-card-mini:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}

/* Chat bubble for self — solid accent */
.chat-msg.mine .msg-bubble {
  background: var(--accent);
  color: #fff;
}

/* Discussion post card hover accent */
.post-card:hover {
  border-left: 3px solid var(--accent);
}
.post-card.pinned:hover {
  border-left-color: var(--orange);
}
