/* ============================================================
   HMTHUNT Community Stylesheet
   Modern, Clean, Responsive Student Q&A Forum
   ============================================================ */

.hmt-community-wrapper {
  background-color: #f8fafc;
  min-height: 80vh;
}

/* Breadcrumbs */
.hmt-comm-breadcrumb {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}
.hmt-comm-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}
.hmt-comm-breadcrumb a:hover {
  color: #1d4ed8;
}

/* Page Header */
.hmt-comm-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.hmt-comm-subtitle {
  font-size: 14px;
  color: #64748b;
}

/* Banner Card */
.hmt-comm-banner {
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f0fe 50%, #f4f8fe 100%);
  border: 1px solid #dbeafe;
  border-radius: 20px;
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.05);
}
.hmt-comm-banner-title {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.hmt-comm-banner-title span {
  color: #2563eb;
}
.hmt-comm-banner-desc {
  font-size: 15px;
  color: #475569;
  max-width: 580px;
  line-height: 1.6;
}
.hmt-comm-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}
.hmt-comm-pill:hover {
  border-color: #bfdbfe;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.08);
}
.hmt-comm-banner-img {
  max-height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.05));
}

/* Sidebar Navigation */
.hmt-comm-sidebar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.hmt-comm-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  margin-bottom: 4px;
  cursor: pointer;
}
.hmt-comm-nav-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: #64748b;
  transition: color 0.15s ease;
}
.hmt-comm-nav-item:hover {
  background: #f1f5f9;
  color: #1d4ed8;
}
.hmt-comm-nav-item:hover i {
  color: #1d4ed8;
}
.hmt-comm-nav-item.active {
  background: #2563eb;
  color: #ffffff;
}
.hmt-comm-nav-item.active i {
  color: #ffffff;
}

/* Search Bar */
.hmt-comm-search-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hmt-comm-search-wrapper:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.hmt-comm-search-input {
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 14px;
  color: #0f172a;
  width: 100%;
}
.hmt-comm-search-btn {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s ease;
}
.hmt-comm-search-btn:hover {
  background: #1d4ed8;
}

/* Filter Tabs */
.hmt-comm-filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.hmt-comm-filter-btn {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.hmt-comm-filter-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}
.hmt-comm-filter-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* Live Sync Pill */
.hmt-comm-live-badge {
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hmt-comm-live-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Discussion Card */
.hmt-discussion-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.hmt-discussion-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  border-color: #cbd5e1;
}
.hmt-comm-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.hmt-discussion-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 4px;
  transition: color 0.15s ease;
}
.hmt-discussion-card:hover .hmt-discussion-title {
  color: #2563eb;
}
.hmt-discussion-meta {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.hmt-discussion-meta .author-name {
  font-weight: 600;
  color: #334155;
}
.hmt-discussion-meta .dot-sep {
  color: #cbd5e1;
}
.hmt-discussion-meta .category-badge {
  background: #eff6ff;
  color: #1d4ed8;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 11px;
}
.hmt-discussion-meta .college-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.hmt-discussion-snippet {
  font-size: 14px;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hmt-discussion-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hmt-comm-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.15s ease;
}
.hmt-comm-stat-badge:hover {
  background: #f1f5f9;
  color: #2563eb;
}
.hmt-comm-stat-badge.voted {
  color: #2563eb;
  background: #eff6ff;
}

/* Right Sidebar Cards */
.hmt-comm-right-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.hmt-comm-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Stats Grid */
.hmt-comm-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hmt-comm-stat-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
}
.hmt-comm-stat-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.hmt-comm-stat-number {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}
.hmt-comm-stat-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

/* Guidelines */
.hmt-comm-guideline-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #334155;
  margin-bottom: 10px;
  line-height: 1.45;
}
.hmt-comm-guideline-item i {
  color: #10b981;
  font-size: 15px;
  margin-top: 2px;
}

/* Popular Topics Tags */
.hmt-comm-topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hmt-comm-topic-tag {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}
.hmt-comm-topic-tag:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* Modals */
.hmt-comm-modal .modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}
.hmt-comm-modal .modal-header {
  border-bottom: 1px solid #f1f5f9;
  padding: 20px 24px;
}
.hmt-comm-modal .modal-body {
  padding: 24px;
}
.hmt-comm-modal .modal-footer {
  border-top: 1px solid #f1f5f9;
  padding: 16px 24px;
}

/* Verified Senior Badge */
.hmt-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
}
.hmt-senior-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
}

/* Answer Card in Thread */
.hmt-answer-item {
  border-bottom: 1px solid #f1f5f9;
  padding: 16px 0;
}
.hmt-answer-item:last-child {
  border-bottom: none;
}
