/* Community page: compact creative feed */

.community-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.community-card {
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius-xl);
  cursor: pointer;
}

.community-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: rgba(255,255,255,0.52);
}

.community-body {
  padding: 18px;
}

.community-card .community-author {
  gap: 10px;
  margin-bottom: 12px;
}

.community-card .community-avatar {
  width: 40px;
  height: 40px;
}

.community-card .community-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: 0;
}

.community-card .community-body p {
  display: -webkit-box;
  min-height: 3.3em;
  overflow: hidden;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.community-card .community-meta {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.community-card .card-detail-btn {
  width: 100%;
  justify-content: space-between;
  margin-top: 16px;
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.78), rgba(235,248,245,0.54)),
    rgba(255,255,255,0.56);
}

:root[data-theme="dark"] .community-card .card-detail-btn {
  border-color: rgba(255,255,255,0.12);
  background: rgba(15, 23, 42, 0.42);
  color: #e0f2fe;
}

@media (max-width: 1080px) {
  .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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