.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  color: #f6f5ef;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.community-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.community-copy h1 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 1rem;
}

.community-copy p {
  color: #c7cbd3;
  line-height: 1.6;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  color: #2ee6d6;
  font-weight: 600;
  margin-bottom: 1rem;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: #2ee6d6;
  color: #081018;
  box-shadow: 0 10px 24px rgba(46, 230, 214, 0.25);
}

.btn-secondary {
  border: 1px solid rgba(46, 230, 214, 0.7);
  color: #f6f5ef;
  background: rgba(15, 23, 34, 0.6);
}

.community-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  background: #0f1722;
  border: 1px solid #1b2636;
  border-radius: 16px;
  padding: 1.2rem;
}

.stat-number {
  font-family: "Unbounded", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.stat-label {
  color: #c7cbd3;
}

/* ── Category Grid ────────────────────────────────────────────────────────── */
.forum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.forum-card {
  background: #0f1722;
  border: 1px solid #1b2636;
  border-radius: 18px;
  padding: 1.4rem;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
  user-select: none;
}

.forum-card:hover {
  border-color: rgba(46, 230, 214, 0.5);
  transform: translateY(-2px);
}

.forum-card.active {
  border-color: #2ee6d6;
  background: linear-gradient(135deg, rgba(46, 230, 214, 0.08), #0f1722);
}

.forum-card h3 {
  font-family: "Unbounded", sans-serif;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.forum-card p {
  color: #c7cbd3;
  line-height: 1.5;
  font-size: 0.875rem;
}

.forum-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 1.2rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

/* ── Review Spotlight ─────────────────────────────────────────────────────── */
.review-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(46, 230, 214, 0.16), rgba(246, 178, 74, 0.16));
  border: 1px solid #1b2636;
  border-radius: 22px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.review-copy h2 {
  font-family: "Unbounded", sans-serif;
  margin-bottom: 0.8rem;
}

.review-copy p {
  color: #c7cbd3;
}

.review-cards {
  display: grid;
  gap: 1rem;
}

.review-card {
  background: #0f1722;
  border: 1px solid #1b2636;
  border-radius: 14px;
  padding: 1rem;
}

.review-title {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.review-meta {
  color: #c7cbd3;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

/* ── Thread Feed ──────────────────────────────────────────────────────────── */
.thread-feed {
  scroll-margin-top: 80px;
}

.thread-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.thread-section-header h2 {
  font-family: "Unbounded", sans-serif;
}

.btn-new-thread-comm {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 1.3rem;
  background: #2ee6d6;
  color: #081018;
  border: none;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(46, 230, 214, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-new-thread-comm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(46, 230, 214, 0.45);
}

/* ── Filter bar ───────────────────────────────────────────────────────────── */
.comm-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.comm-filter-btn {
  padding: 0.3rem 0.85rem;
  border: 1px solid #1b2636;
  border-radius: 999px;
  font-size: 0.78rem;
  background: #0f1722;
  color: #94a3b8;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.comm-filter-btn.active,
.comm-filter-btn:hover {
  background: #2ee6d6;
  color: #081018;
  border-color: #2ee6d6;
}

/* ── Post cards ───────────────────────────────────────────────────────────── */
.comm-post-card {
  background: #0f1722;
  border: 1px solid #1b2636;
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.18s ease;
}

.comm-post-card:hover {
  border-color: rgba(46, 230, 214, 0.35);
}

.comm-post-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.comm-post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.comm-post-category {
  font-size: 0.72rem;
  padding: 2px 0.55rem;
  background: #2ee6d6;
  color: #081018;
  border-radius: 999px;
  font-weight: 700;
}

.comm-post-author {
  font-size: 0.78rem;
  color: #94a3b8;
}

.comm-post-date {
  font-size: 0.78rem;
  color: #4a5568;
  margin-left: auto;
}

.comm-post-title {
  font-size: 1rem;
  font-weight: 600;
  color: #f6f5ef;
  margin-bottom: 0.3rem;
}

.comm-post-excerpt {
  font-size: 0.875rem;
  color: #c7cbd3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comm-post-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #1b2636;
}

.comm-post-replies {
  font-size: 0.78rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.comm-post-delete {
  margin-left: auto;
  font-size: 0.75rem;
  color: #f56565;
  border: 1px solid #f56565;
  border-radius: 6px;
  padding: 2px 0.55rem;
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.comm-post-delete:hover {
  background: #f56565;
  color: #fff;
}

/* ── Auth prompt ──────────────────────────────────────────────────────────── */
.comm-auth-prompt {
  text-align: center;
  padding: 2rem;
  background: #0f1722;
  border-radius: 14px;
  border: 1px dashed #1b2636;
  color: #94a3b8;
  margin-top: 1rem;
}

.comm-auth-btn {
  background: none;
  border: none;
  padding: 0;
  color: #2ee6d6;
  font-weight: 600;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── New Thread Modal ─────────────────────────────────────────────────────── */
.comm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
}

.comm-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(540px, 92vw);
  background: #0d1824;
  color: #f6f5ef;
  border: 1px solid #1b2636;
  border-radius: 22px;
  padding: 1.75rem;
  z-index: 201;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.comm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.comm-modal-header h2 {
  font-family: "Unbounded", sans-serif;
  font-size: 1.05rem;
}

.comm-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.07);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: #f6f5ef;
  flex-shrink: 0;
  transition: background 0.18s ease;
}

.comm-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.comm-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.comm-form select,
.comm-form input[type="text"],
.comm-form textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #1b2636;
  border-radius: 8px;
  font-size: 0.875rem;
  background: #162032;
  color: #f6f5ef;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
}

.comm-form select:focus,
.comm-form input:focus,
.comm-form textarea:focus {
  outline: none;
  border-color: #2ee6d6;
  box-shadow: 0 0 0 3px rgba(46, 230, 214, 0.15);
}

.comm-form textarea {
  resize: vertical;
  min-height: 110px;
}

.comm-form-message {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin-top: 0.25rem;
  display: none;
}

.comm-form-message.success {
  background: rgba(46, 230, 214, 0.12);
  color: #2ee6d6;
  display: block;
}

.comm-form-message.error {
  background: rgba(245, 101, 101, 0.12);
  color: #f56565;
  display: block;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .community-hero,
  .review-highlight {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .comm-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }

  .comm-filter::-webkit-scrollbar { display: none; }
  .comm-filter-btn { flex-shrink: 0; }
}

@media (max-width: 640px) {
  .community-stats {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 2rem 1.25rem 4rem;
  }
}
