/* ===== RESPONSIVE STYLES ===== */
/**
 * @file: utilities/responsive.css
 * @description: 반응형 디자인 관련 스타일
 * @components: 반응형 디자인
 * @usage: 반응형 디자인 관련 스타일링
 */
/* 더 작은 화면 대응 */
@media screen and (max-width: 480px) {
  .post-table th:nth-child(1),
  .post-table td:nth-child(1) {
    width: 11%;  /* 번호 */
  }
  
  .post-table th:nth-child(2),
  .post-table td:nth-child(2) {
    width: auto;  /* 제목 */
  }
  
  .post-table th:nth-child(4),
  .post-table td:nth-child(4) {
    width: 20%;  /* 센터명 */
  }

  .post-table th:nth-child(3),  /* 작성자 */
  .post-table td:nth-child(3),
  .post-table th:nth-child(5),  /* 직책 */
  .post-table td:nth-child(5),
  .post-table th:nth-child(6),  /* 작성일 */
  .post-table td:nth-child(6),
  .post-table th:nth-child(7),  /* 조회수 */
  .post-table td:nth-child(7),
  .post-table th:nth-child(8),  /* 댓글수 */
  .post-table td:nth-child(8) {
    display: none;
  }
}

/* ===== RESPONSIVE STYLES ===== */
/**
 * @file: utils/responsive.css
 * @description: 반응형 디자인 관련 스타일
 * @components: 반응형 디자인
 * @usage: 반응형 디자인 관련 스타일링
 */

/* 태블릿 (768px~1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .post-table th:nth-child(1),
  .post-table td:nth-child(1) {
    width: 8%;  /* 번호 */
  }
  
  .post-table th:nth-child(2),
  .post-table td:nth-child(2) {
    width: auto;  /* 제목 */
  }
  
  .post-table th:nth-child(3),
  .post-table td:nth-child(3) {
    width: 12%;  /* 작성자 */
  }
  
  .post-table th:nth-child(4),
  .post-table td:nth-child(4) {
    width: 15%;  /* 센터명 */
  }
  
  .post-table th:nth-child(5),
  .post-table td:nth-child(5) {
    width: 12%;  /* 직책 */
  }
  
  .post-table th:nth-child(6),
  .post-table td:nth-child(6) {
    width: 12%;  /* 작성일 */
  }
  
  .post-table th:nth-child(7),
  .post-table td:nth-child(7) {
    width: 8%;  /* 조회수 */
  }

  .post-table th:nth-child(7),
  .post-table td:nth-child(7),
  .post-table th:nth-child(8),
  .post-table td:nth-child(8) {
    display: none;
  }
}

/* ===== RESPONSIVE STYLES ===== */
/**
 * @file: utils/responsive.css
 * @description: 반응형 디자인 관련 스타일
 * @components: 반응형 디자인
 * @usage: 반응형 디자인 관련 스타일링
 */

/* 태블릿 (768px 이하) */
@media screen and (max-width: 768px) {
  .navbar, .navbar-bottom {
    padding: 0 16px;
  }

  .navbar {
    height: 56px;
  }

  .navbar-bottom {
    top: 56px;
    height: 44px;
  }

  .menu {
    gap: 8px;
  }

  .menu-item {
    padding: 0 8px;
    font-size: 0.9em;
  }

  .container {
    margin-top: 100px;
  }

  .title {
    font-size: 16px;
  }

  /* 사용자 정보 영역 */
  .user-info-area {
    gap: 8px;
  }

  /* 아이콘 크기 조정 */
  .follow-icon-container,
  .message-icon-container,
  .profile-image-container,
  .logout-icon-container {
    width: 32px;
    height: 32px;
  }

  /* 커뮤니티 뷰 관련 */
  #communityView {
    padding: 40px 20px;
  }

  .community-header {
    margin-bottom: 30px;
  }

  .community-header h2 {
    font-size: 1.8em;
  }

  /* 게시글 테이블 관련 */
  .post-table {
    font-size: 0.95em;
  }

  .post-table th:nth-child(1),
  .post-table td:nth-child(1) {
    width: 11%; /* 번호 */
  }

  .post-table th:nth-child(2),
  .post-table td:nth-child(2) {
    width: auto;  /* 제목 */
  }

  .post-table th:nth-child(4),
  .post-table td:nth-child(4) {
    width: 15%; /* 센터명 */
  }

  .post-table th:nth-child(3),  /* 작성자 */
  .post-table td:nth-child(3),
  .post-table th:nth-child(5),  /* 직책 */
  .post-table td:nth-child(5),
  .post-table th:nth-child(6),  /* 작성일 */
  .post-table td:nth-child(6),
  .post-table th:nth-child(7),  /* 조회수 */
  .post-table td:nth-child(7),
  .post-table th:nth-child(8),  /* 댓글수 */
  .post-table td:nth-child(8) {
    display: none;
  }

  .post-title-cell {
    max-width: 250px;
  }

  /* 모달 관련 */
  #newPostModal .modal-content {
    width: 90%;
    max-width: 600px;
  }

  .org-chart-content {
    width: 95%;
    padding: 20px;
  }

  .org-member {
    flex: 1 1 200px;
  }

  /* 댓글 관련 */
  .comment {
    padding: 12px;
  }

  .comment-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .comment-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 8px;
  }

  .replies-container {
    margin-left: 1.5rem;
    padding-left: 1rem;
  }

  /* 팔로우 버튼 관련 */
  .button-group {
    min-width: 90px;
  }

  .follow-button,
  .township-button {
    font-size: 0.85em;
    padding: 4px 10px;
  }

  .center-link {
    font-size: clamp(11px, 0.8em, 14px);  /* 화면이 작을 때 더 작은 폰트 사이즈 */
  }
}

/* ===== RESPONSIVE STYLES ===== */
/**
 * @file: utils/responsive.css
 * @description: 반응형 디자인 관련 스타일
 * @components: 반응형 디자인
 * @usage: 반응형 디자인 관련 스타일링
 */
/* 모바일 S (320px 이하) */
@media screen and (max-width: 320px) {
  .navbar, .navbar-bottom {
    padding: 0 8px;
  }

  .title {
    font-size: 12px;
  }

  .menu-item {
    font-size: 0.70em;
    padding: 0 2px;
  }

  /* 아이콘 최소 크기 */
  .follow-icon-container,
  .message-icon-container,
  .profile-image-container,
  .logout-icon-container {
    width: 24px;
    height: 24px;
  }

  /* 아이콘 내부 최소 크기 */
  .message-icon,
  .follow-icon,
  .logout-icon {
    font-size: 15px;
  }

  /* 구분선 최소화 */
  .divider {
    margin: 0 1px;
    height: 12px;
  }

  .user-info-area {
    gap: 2px;
  }

  /* 인증 아이콘 크기 조정 */
  .profile-area .verification-icon {
    width: 12px;
    height: 12px;
    right: -2px;
    bottom: -2px;
  }

  .profile-area .verification-icon .material-icons-round {
    font-size: 10px;
  }

  /* 안읽은 메시지 카운트 크기 조정 */
  .unread-count {
    min-width: 14px;
    height: 14px;
    font-size: 10px;
    top: -2px;
    right: -2px;
    border-width: 1.5px;
  }

  #communityView {
    padding: 18px 6px;
  }

  .community-header {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  .community-header h2 {
    font-size: 1.5em;
  }

  #newPostBtn {
    width: 100%;
    padding: 8px 16px;
    font-size: 0.9em;
  }

  .post-table {
    font-size: 0.8em;
  }

  .post-table th:nth-child(1),
  .post-table td:nth-child(1) {
    width: 10%;  /* 번호 */
  }
  
  .post-table th:nth-child(2),
  .post-table td:nth-child(2) {
    width: auto;  /* 제목 */
  }
  
  .post-table th:nth-child(4),
  .post-table td:nth-child(4) {
    width: 15%;  /* 센터명 */
  }

  /* 댓글 열 숨기기 (8번째 열) */
  .post-table th:nth-child(3),
  .post-table td:nth-child(3),
  .post-table th:nth-child(5),
  .post-table td:nth-child(5),
  .post-table th:nth-child(6),
  .post-table td:nth-child(6),
  .post-table th:nth-child(7),
  .post-table td:nth-child(7),
  .post-table th:nth-child(8),
  .post-table td:nth-child(8) {
    display: none;
  }

  .post-title-cell {
    max-width: none;
    padding-right: 5px;
  }

  .post-link {
    white-space: normal;
    line-height: 1.3;
    max-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .post-title-cell {
    max-width: 150px;
  }

  .org-chart-btn {
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
  }
}

/* ===== RESPONSIVE STYLES ===== */
/**
 * @file: utils/responsive.css
 * @description: 반응형 디자인 관련 스타일
 * @components: 반응형 디자인
 * @usage: 반응형 디자인 관련 스타일링
 */

/* 모바일 M (375px 이하) */
@media screen and (max-width: 375px) {
  .navbar, .navbar-bottom {
    padding: 0 9px;
  }

  .title {
    font-size: 13px;
  }

  .menu-item {
    font-size: 0.75em;
    padding: 0 3px;
  }

  /* 아이콘 추가 축소 */
  .follow-icon-container,
  .message-icon-container,
  .profile-image-container,
  .logout-icon-container {
    width: 24px;
    height: 24px;
    
  }

  /* 아이콘 내부 크기 조정 */
  .message-icon,
  .follow-icon,
  .logout-icon {
    font-size: 17px;
  }

  /* 구분선 간격 더 축소 */
  .divider {
    margin: 0 1px;
    height: 14px;
  }

  .user-info-area {
    gap: 2px;
  }

  /* 게시글 테이블 수정 */
  .post-table {
    font-size: 0.80em;
  }

  .post-title-cell {
    max-width: none;
  }

  #communityView {
    padding: 20px 10px;
  }

  .community-header h2 {
    font-size: 1.6em;
  }

  #newPostBtn {
    width: 100%;
    padding: 8px 16px;
    font-size: 0.9em;
  }

  .post-table {
    font-size: 0.85em;
  }

  .post-title-cell {
    max-width: 180px;
  }

  .author-profile-image {
    width: 20px;
    height: 20px;
  }

  .org-chart-btn {
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
    font-size: 0.9em;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }
  
  .post-table th:nth-child(1),
  .post-table td:nth-child(1) {
    width: 11%;
  }

  .post-table th:nth-child(2),
  .post-table td:nth-child(2) {
    width: auto;
  }

  .post-table th:nth-child(3),
  .post-table td:nth-child(3),
  .post-table th:nth-child(4),
  .post-table td:nth-child(4),
  .post-table th:nth-child(5),
  .post-table td:nth-child(5),
  .post-table th:nth-child(6),
  .post-table td:nth-child(6),
  .post-table th:nth-child(7),
  .post-table td:nth-child(7),
  .post-table th:nth-child(8),
  .post-table td:nth-child(8) {
    display: none;
  }
}

/* ===== RESPONSIVE STYLES ===== */
/**
 * @file: utils/responsive.css
 * @description: 반응형 디자인 관련 스타일
 * @components: 반응형 디자인
 * @usage: 반응형 디자인 관련 스타일링
 */
/* 모바일 L (425px 이하) */
@media screen and (max-width: 425px) {
  .navbar, .navbar-bottom {
    padding: 0 12px;
  }

  .menu-item {
    font-size: 0.85em;
    padding: 0 6px;
  }

  /* 아이콘 크기 축소 */
  .follow-icon-container,
  .message-icon-container,
  .profile-image-container,
  .logout-icon-container {
    width: 28px;
    height: 28px;
  }

  /* 아이콘 간격 축소 */
  .user-info-area {
    gap: 6px;
  }

  .divider {
    margin: 0 3px;
  }

  /* 툴팁 숨기기 */
  .tooltip {
    display: none;
  }

  #communityView {
    padding: 30px 15px;
  }

  .community-header {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .community-header h2 {
    font-size: 1.7em;
  }

  .post-title-cell {
    max-width: 200px;
  }

  /* 게시글 상세 모달 스타일 수정 */
  .modal-content.post-detail {
    width: 95%;
    margin: 10px auto;
  }

  .post-detail-table th {
    width: 80px;
    font-size: 0.9em;
  }

  .post-detail-table td {
    font-size: 0.9em;
  }
  
  /* 게시글 테이블 수정 */
  .post-table {
    font-size: 0.9em;
  }

  .post-table th:nth-child(1),
  .post-table td:nth-child(1) {
    width: 11%;
  }

  .post-table th:nth-child(2),
  .post-table td:nth-child(2) {
    width: auto;
  }

  .post-table th:nth-child(3),
  .post-table td:nth-child(3),
  .post-table th:nth-child(4),
  .post-table td:nth-child(4),
  .post-table th:nth-child(5),
  .post-table td:nth-child(5),
  .post-table th:nth-child(6),
  .post-table td:nth-child(6),
  .post-table th:nth-child(7),
  .post-table td:nth-child(7),
  .post-table th:nth-child(8),
  .post-table td:nth-child(8) {
    display: none;
  }

  .post-title-cell {
    max-width: none;
  }

  /* 제목 텍스트 스타일 */
  .post-link {
    font-size: 1em;
    line-height: 1.4;
  }

  #newPostBtn {
    width: 100%;
    padding: 8px 16px;
    font-size: 0.9em;
  }

  .org-chart-btn {
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
    font-size: 0.9em;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }
}
