@import url('/partials/layout/css/header.css');
@import url('/partials/layout/css/bottom-bar.css');

/* public/styles/channel.css */
body {
  font-family: 'Pretendard', 'Pretendard JP', sans-serif;
  margin: 0;
  padding: 80px 1rem 100px;
  background: #fff;
}

/* 상단 필터/토글 영역 */
.channel-header {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
}

/* 필터 버튼, 토글 버튼 공통 */
.filter-btn, .view-btn {
  background: none;
  border: 1px solid #ccc;
  padding: 0.4rem 0.8rem;
  margin-right: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 6px;
}

/* 활성화된 버튼 스타일 (배경은 흰색 유지, 테두리 강조) */
.filter-btn.active, .view-btn.active {
  background: #fff;
  color: #000;
  border: 2px solid #000;
}

/* 그룹 섹션 */
section {
  margin-bottom: 2rem;
}
section h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* 카드형 UI */
.card-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.channel-card {
  background: #f3f3f3;
  padding: 0.5rem;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
}
.channel-card img {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 1;
  object-fit: cover;
}

/* 리스트형 UI */
.list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.channel-row {
  display: grid;
  grid-template-columns: 1fr 80px 60px;
  align-items: center;
  gap: 0.5rem;
  background: #f9f9f9;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
}

/* 토글 아이콘 스타일 */
.view-btn img {
  width: 20px;
  height: 20px;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.view-btn.active img {
  opacity: 1;
}
