@charset "utf-8";

/* 커뮤니티 카드 스타일 */
.community-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.community-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* 카드 헤더 */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: white;
}

.card-more {
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.card-more:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  text-decoration: none;
}

/* 카드 콘텐츠 */
.card-content {
  padding: 0;
}

/* 게시물 아이템 */
.post-item {
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

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

.post-item:hover {
  background-color: #fafafa;
}

.post-main {
  padding: 0;
}

.post-link {
  display: block;
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
}

.post-link:hover {
  text-decoration: none;
  color: inherit;
}

/* 게시물 콘텐츠 레이아웃 */
.post-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

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

/* 게시물 제목 */
.post-title {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.title-text {
  font-size: 17px;
  font-weight: 600;
  color: #000;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category {
  color: #ff6b6b;
  font-size: 13px;
  font-weight: 500;
}

/* 포스트 내용 미리보기 */
.post-snippet {
  font-size: 14px;
  color: #888;
  margin: -4px 0 8px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 배지 스타일 */
.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge.new {
  background: #4ecdc4;
  color: white;
}

.badge.hot {
  background: #ff6b6b;
  color: white;
}

/* 게시물 메타 정보 */
.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #666;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-left {
  display: flex;
  align-items: center;
}

.meta-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.level-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.author-name {
  color: #333;
  font-weight: 500;
}

/* 메타 아이템 */
.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #666;
}

.meta-icon {
  font-style: normal;
  font-size: 12px;
}

.meta-text {
  font-size: 12px;
  color: #666;
}

/* 썸네일 이미지 */
.post-thumbnail {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.post-link:hover .thumbnail-img {
  transform: scale(1.05);
}

/* 빈 상태 */
.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: #999;
}

.empty-state p {
  margin: 0;
  font-size: 14px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .community-card {
    border-radius: 8px;
    margin-bottom: 16px;
  }

  .card-header {
    padding: 14px 16px;
  }

  .card-title {
    font-size: 16px;
  }

  .post-link {
    padding: 14px 16px;
  }

  .post-content {
    gap: 12px;
  }

  .title-text {
    font-size: 16px;
    font-weight: 600;
  }

  .post-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
  }

  .meta-right {
    gap: 8px;
  }

  .meta-item {
    gap: 2px;
  }

  .meta-text {
    font-size: 11px;
  }

  .post-thumbnail {
    width: 80px;
    height: 60px;
  }
}
