/**
 * 카테고리 페이지 스타일
 */

/* 카테고리 페이지 히어로 레이아웃 */
.category-page .post-hero {
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.category-page .post-search {
  align-self: flex-end;
}

/* 카테고리 탭 */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  justify-content: center;
}

.category-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border-radius: 16px;
  border: none;
  background: transparent;
  color: #111827;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: box-shadow 0.2s;
  flex: 1;
  min-width: 56px;
  max-width: 100px;
}

.category-tab:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-tab:hover .category-btn-icon {
  transform: scale(1.1);
}

.category-tab.active {
  font-weight: 700;
}

.category-tab.active .category-btn-icon {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

.category-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 6px;
  transition: transform 0.2s;
}

/* post-card-content (category.js 직접 사용) */
.post-card-content {
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  flex: 1;
}

@media (max-width: 768px) {
  .category-tabs {
    gap: 6px;
  }

  .category-tab {
    padding: 10px 6px;
    font-size: 0.75rem;
    min-width: 48px;
  }

  .category-btn-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}
