/* ========================= */
/* 오빠의 기존 스타일 그대로 유지 */
/* ========================= */

/* 전체 영역 */
.popular-wrap {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 0 auto;
  padding: 20px;
  max-width: 1600px;
  width: 95%;
  background-color: transparent;
  color: #fff;
}
.board-title {
    display: flex;
    text-align: center;
    justify-content: center;
    padding: 4% 0 0 0;
    font-weight: 900;
    font-size: 1.3rem;
}

/* 각 인기글 섹션 */
.popular-section {
  flex: 1;
  padding: 20px;
  border-radius: 12px;
}

/* 섹션 제목 */
.popular-section h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #ff3b8c;
  border-bottom: 1px solid #333;
  padding-bottom: 5px;
}

/* 리스트 */
.popular-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popular-section li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2e2e2e;
  padding: 10px 0;
  font-size: 14px;
  color: #ddd;
}

.popular-section li span.rank {
  width: 20px;
  font-weight: bold;
  color: #999;
}

/* 제목 + 작성자 */
.popular-content {
  flex-grow: 1;
  margin-left: 10px;
  margin-right: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.popular-title {
  font-weight: 500;
  color: #fff;
}

/* 좋아요 */
.likes {
  font-size: 13px;
  color: #ffaa00;
  margin-right: 8px;
  white-space: nowrap;
}

/* 작성자 프로필 */
.author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.author img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #333;
}

.author span {
  font-size: 13px;
  color: #aaa;
}

@media screen and (max-width: 1024px) {
  .popular-wrap {
    flex-direction: column;
    gap: 20px;
    padding: 10px;
    width: 50%;
    margin-left: 0;
  }

  .popular-section {
    padding: 15px;
  }

  .popular-section h3 {
    font-size: 18px;
  }

  .popular-section li {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }

  .popular-section li span.rank {
    width: auto;
    min-width: 16px;
  }

  .popular-content {
    flex: 1 1 100%;
    margin: 4px 0 0 20px;
  }

  .likes {
    font-size: 12px;
    margin-left: auto;
  }

  .author {
    margin-left: 20px;
  }

  .author img {
    width: 20px;
    height: 20px;
  }

  .author span {
    font-size: 12px;
  }
}

@media screen and (max-width: 915px) {
  .popular-wrap {
    flex-direction: column;
    gap: 20px;
    padding: 10px;
    width: 90%;
    margin-left: 0;
  }
}

@media screen and (max-width: 425px) {
  .popular-wrap {
    flex-direction: column;
    gap: 20px;
    padding: 10px;
    width: 86%;
    margin-left: 0;
  }
  .popular-section li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #2e2e2e;
    padding: 0px 0;
    font-size: 13px;
    color: #ddd;
  }
}

.board-list {
  margin: 40px auto;
  padding: 0 20px;
  color: #eee;
  max-width: 1600px;
  width: 95%;
}

.board-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.board-table th, .board-table td {
  padding: 14px 10px;
  border-bottom: 1px solid #2e2e2e;
  text-align: left;
}

.board-table th {
  background: #1d1b2b;
  font-weight: bold;
  color: #fff;
}

.board-table tr.notice {
  background: #1a1a1a;
  color: #0f0;
  font-weight: bold;
}

.board-table tr.notice .notice-tag {
  color: yellow;
  margin-right: 4px;
}

.board-table td img.user-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.board-table td img.thumb-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin-right: 8px;
  vertical-align: middle;
}

.board-table td .reply-count {
  color: #ffa500;
  margin-left: 4px;
}

.board-table td i.fa-thumbs-up {
  color: #ffaa00;
  margin-right: 4px;
}

/* 페이지네이션 */
.pagination {
  text-align: center;
  margin-top: 20px;
}

.pagination .page {
  background: transparent;
  color: #fff;
  border: 1px solid #ff3b8c;
  padding: 6px 10px;
  margin: 0 2px;
  border-radius: 5px;
  cursor: pointer;
}

.pagination .page.active {
  background: #ff3b8c;
  color: #fff;
}

/* 검색창 */
.board-search {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.board-search select,
.board-search input {
  padding: 6px 10px;
  background: #1a1a1a;
  border: 1px solid #444;
  color: #fff;
}

.board-search .search-btn {
  padding: 6px 12px;
  background: #ff3b8c;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
}

/* ========================= */
/*        반응형 스타일        */
/* ========================= */

/* 태블릿 이하 */
@media screen and (max-width: 768px) {
  .board-table {
    font-size: 13px;
  }

  .board-table th:nth-child(1),
  .board-table th:nth-child(4),
  .board-table th:nth-child(5),
  .board-table td:nth-child(1),
  .board-table td:nth-child(4),
  .board-table td:nth-child(5) {
    display: none;
  }

  .board-table td img.thumb-img {
    width: 30px;
    height: 30px;
  }

  .pagination .page {
    padding: 4px 8px;
    font-size: 12px;
  }
}

/* 모바일 이하 */
@media screen and (max-width: 480px) {
  .board-table {
    font-size: 12px;
  }

  .board-search {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .board-search select,
  .board-search .search-btn {
    width: 30%;
  }
   .board-search input {
    width: 85%;
   }
}