/* 전체 공통 스타일 */
body {
    font-family: 'Pretendard', sans-serif;
    background-color: #f4f6f8;
    color: #333;
    margin: 0;
    padding: 0;
}

a {
    color: #007BFF;
    text-decoration: none;
}

/* 글쓰기 버튼에만 적용될 스타일 */
#write-btn {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s;
  }

a:hover {
    text-decoration: underline;
}

/* 게시판 목록 컨테이너 */
.board-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

/* 게시판 제목 및 버튼 */
.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.board-header h1 {
    font-size: 32px;
    color: #2c3e50;
    margin: 0;
}

.board-header .home-btn {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.board-header .home-btn:hover {
    background-color: #2c80b4;
}

/* 게시글 목록 */
.board-list {
    border-top: 2px solid #ddd;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.board-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}


.board-list-item:hover {
    background-color: #f0f3f5;
}

.board-title {
    flex: 2; /* 제목은 좀 더 넓게 */
    font-weight: 600;
    font-size: 16px;
}

.board-title a {
    color: #2c3e50;
    text-decoration: none;
}

.board-user {
    flex: 1;
    text-align: center;
    color: #666;
    display: inline-flex;
}


.board-author,
.board-recommend,
.board-view,
.board-date {
    /* 고정 width 제거 */
    text-align: left;
    white-space: nowrap;
}



.board-eye-icon {
    margin-right: 3px;
    vertical-align: middle;
}

/* 상세 페이지 */
.board-view-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.board-view-container h1 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.board-meta {
    display: flex;
    justify-content: flex-start;  /* 왼쪽 정렬 */
    align-items: center;
    gap: 12px;  /* 요소 사이 간격을 줄임 */
    font-size: 14px;
    color: #555;
}



/* 본문 */
.board-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
    margin-bottom: 30px;
}
/* 댓글 섹션 */
.comment-section {
    margin-top: 50px;
    background-color: #fafbfd;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e1e5ea;
}

.comment-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

#comment-form textarea {
    width: 100%;
    min-height: 80px; /* 원래보다 적당히 작게 조정 */
    padding: 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 15px;
    font-family: inherit;
}

.comment-submit {
    text-align: right;
}

.comment-submit button {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    font-weight: 500;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.comment-submit button:hover {
    background-color: #2c80b4;
}

.comment-list h4 {
    font-size: 18px;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #444;
}

#comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#comments-list li {
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
}

#comments-list li p {
    margin: 4px 0;
}

/* 뒤로가기 버튼 */
.back-btn {
    text-align: right;
    margin-top: 30px;
}

.back-btn a {
    color: #007BFF;
    font-weight: 500;
}

/* 글쓰기 페이지 */
.board-write-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.board-write-container h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.board-write-container form {
    display: flex;
    flex-direction: column;
}

.board-write-container .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.board-write-container .form-group label {
    font-size: 15px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

.board-write-container .form-group input,
.board-write-container .form-group textarea {
    font-family: inherit;
    font-size: 16px;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.board-write-container .form-group input:focus,
.board-write-container .form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.2);
}


.board-write-container .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.board-write-container .form-actions button {
    background-color: #3498db;
    color: white;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.board-write-container .form-actions button:hover {
    background-color: #2c80b4;
}

.board-write-container .form-actions .cancel-btn {
    background-color: #3498db;
    color: white;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.board-write-container .form-actions .cancel-btn:hover {
    color: #2c80b4;
}

/* 추천/비추천 & 수정/삭제 버튼 */
.action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding-bottom: 10px;
    border-bottom: none; /* 구분선 제거 */
}

.recommend-box,
.action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommend-box button,
.action-buttons .edit-btn,
.action-buttons .delete-btn {
    background-color: #eaf1f8;
    border: 1px solid #ccc;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.recommend-box button:hover,
.action-buttons .edit-btn:hover,
.action-buttons .delete-btn:hover {
    background-color: #d0e4f2;
    color: #000;
}

.recommend-box span {
    font-weight: bold;
    margin: 0 8px;
}
