/* 게시판 메인 스타일 */
.board-section { padding: 40px 0; background: #f9f9f9; margin-top: 80px; }

/* 게시판 네비게이션 */
.board-nav { margin-bottom: 20px; }
.board-nav .bread { display: flex; align-items: center; gap: 8px; }
.board-nav .bread .home { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; background: none !important; }
.board-nav .bread .home i { font-size: 14px; color: #666; display: block !important; width: auto !important; aspect-ratio: auto !important; background: none !important; }
.board-nav .bread i.fas.fa-chevron-right { font-size: 10px; color: #ccc; display: block !important; width: auto !important; aspect-ratio: auto !important; background: none !important; border-radius: 0 !important; }
.board-nav .bread .now { font-size: 14px; color: #3373c9; font-weight: 600; }
.board-container { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); padding: 32px; }
.board-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.board-actions { display: flex; gap: 10px; }
.write-btn, .logout-btn, .login-btn { background: #3373c9; color: #fff; border: none; border-radius: 4px; padding: 8px 20px; font-size: 1rem; cursor: pointer; transition: background 0.2s; }
.write-btn:hover, .logout-btn:hover, .login-btn:hover { background: #00b9d4; }
.logout-btn { background: #dc3545; }
.logout-btn:hover { background: #c82333; }
.login-btn { background: #28a745; }
.login-btn:hover { background: #218838; }
.board-table { width: 100%; overflow-x: auto; margin-bottom: 24px; }
.board-table table { width: 100%; border-collapse: collapse; }
.board-table th, .board-table td { padding: 12px 8px; border-bottom: 1px solid #eee; text-align: center; }
.board-table th { background: #f1f5fa; color: #3373c9; font-weight: 700; }
.board-table td { background: #fff; }
.post-link { color: #3373c9; text-decoration: underline; cursor: pointer; }
.post-link:hover { color: #00b9d4; }

/* 페이지네이션 스타일 개선 */
.pagination { 
    text-align: center; 
    margin-top: 24px; 
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination .page-btn { 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 6px; 
    background: #f1f5fa; 
    color: #3373c9; 
    font-weight: 600; 
    text-decoration: none; 
    transition: all 0.2s;
    border: 1px solid #e1e8ed;
    font-size: 14px;
    line-height: 1;
}

.pagination .page-btn:hover { 
    background: #e1f0ff; 
    border-color: #3373c9;
    transform: translateY(-1px);
}

.pagination .page-btn.active { 
    background: #3373c9; 
    color: #fff; 
    border-color: #3373c9;
    box-shadow: 0 2px 4px rgba(51, 115, 201, 0.3);
}

.pagination .page-btn.prev-btn,
.pagination .page-btn.next-btn {
    font-size: 12px;
    font-weight: bold;
}

.pagination .page-ellipsis {
    color: #666;
    font-weight: 600;
    padding: 0 8px;
    font-size: 14px;
}

.pagination .page-info {
    width: 100%;
    margin-top: 12px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* 게시글 작성 폼 */
.write-form { max-width: 600px; margin: 0 auto; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); padding: 32px; }
.form-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.cancel-btn { background: #eee; color: #333; border: none; border-radius: 4px; padding: 6px 16px; font-size: 1rem; cursor: pointer; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: #3373c9; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; }
.form-group textarea { min-height: 120px; }
.form-buttons { text-align: right; }
.submit-btn { background: #3373c9; color: #fff; border: none; border-radius: 4px; padding: 10px 28px; font-size: 1rem; cursor: pointer; }
.submit-btn:hover { background: #00b9d4; }

/* 이미지 업로드 */
.image-upload { margin-bottom: 8px; }
.upload-area { 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    gap: 10px; 
    background: #f1f5fa; 
    border: 2px dashed #3373c9; 
    border-radius: 8px; 
    padding: 20px; 
    margin-top: 6px; 
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
    justify-content: center;
}
.upload-area:hover {
    border-color: #00d1e9;
    background: #f0f9ff;
}
.upload-area.dragover {
    border-color: #00d1e9;
    background: #f0f9ff;
    transform: scale(1.02);
}
.upload-area i { font-size: 2rem; color: #3373c9; margin-bottom: 8px; }
.upload-area p { 
    font-size: 1rem; 
    color: #3373c9; 
    font-weight: 500; 
    margin: 0;
    text-align: center;
}
.upload-area span { 
    font-size: 0.9rem; 
    color: #666; 
    text-align: center;
}
.image-preview { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    margin-top: 12px; 
    min-height: 60px;
}
.image-preview-item {
    position: relative;
    display: inline-block;
    margin: 5px;
    transition: transform 0.2s ease;
}
.image-preview-item:hover {
    transform: scale(1.05);
}
.image-preview img { 
    max-width: 100px; 
    max-height: 100px; 
    border-radius: 8px; 
    border: 2px solid #eee;
    display: block;
    object-fit: cover;
}
.image-preview-item .delete-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ff4444;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    z-index: 10;
}
.image-preview-item .delete-btn:hover {
    background: #ff0000;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

/* 게시글 상세 */
.post-detail { max-width: 700px; margin: 0 auto; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); padding: 32px; }
.detail-header { margin-bottom: 18px; }
.back-btn { background: #eee; color: #333; border: none; border-radius: 4px; padding: 6px 16px; font-size: 1rem; cursor: pointer; }
.post-header { border-bottom: 1px solid #eee; margin-bottom: 18px; }
.post-header h2 { margin: 0 0 8px 0; color: #3373c9; }
.post-meta { font-size: 0.95rem; color: #888; display: flex; gap: 12px; margin-bottom: 8px; }
.post-contact-info { font-size: 0.9rem; color: #666; display: flex; gap: 12px; margin-bottom: 8px; }
.post-contact-info .address, .post-contact-info .phone { display: flex; align-items: center; gap: 4px; }
.post-contact-info .address::before { content: "📍"; }
.post-contact-info .phone::before { content: "📞"; }
.post-body { margin-bottom: 18px; }
.post-body img { max-width: 100%; max-height: 400px; width: auto; height: auto; border-radius: 6px; margin: 8px 0; object-fit: contain; }
.post-actions { text-align: right; margin-bottom: 18px; }
.edit-btn, .delete-btn { background: #3373c9; color: #fff; border: none; border-radius: 4px; padding: 6px 16px; font-size: 1rem; cursor: pointer; margin-left: 8px; }
.edit-btn:hover, .delete-btn:hover { background: #00b9d4; }

/* 게시글 이미지 */
.post-images { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 16px; }
.post-images img { max-width: 100%; max-height: 400px; width: auto; height: auto; object-fit: contain; border-radius: 8px; cursor: pointer; transition: transform 0.3s ease; border: 1px solid #eee; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.post-images img:hover { transform: scale(1.02); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* 댓글 */
.comments-section { margin-top: 32px; }
.comments-section h3 { color: #3373c9; margin-bottom: 12px; }
.comment-form { margin-bottom: 16px; }
.comment-input-group { display: flex; flex-wrap: wrap; gap: 8px; }
.comment-input-group input, .comment-input-group textarea { border: 1px solid #ddd; border-radius: 4px; padding: 8px; font-size: 1rem; }
.comment-input-group input { width: 120px; }
.comment-input-group textarea { flex: 1; min-width: 180px; min-height: 40px; }
.comment-submit-btn { background: #3373c9; color: #fff; border: none; border-radius: 4px; padding: 8px 18px; font-size: 1rem; cursor: pointer; }
.comment-submit-btn:hover { background: #00b9d4; }
.comments-list { margin-top: 8px; }
.comment-item { background: #f1f5fa; border-radius: 6px; padding: 10px 14px; margin-bottom: 8px; }
.comment-meta { font-size: 0.92rem; color: #555; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.delete-comment-btn { background: #eee; color: #c00; border: none; border-radius: 4px; padding: 2px 10px; font-size: 0.9rem; cursor: pointer; }
.delete-comment-btn:hover { background: #ffdddd; }

/* 반응형 */
@media (max-width: 900px) {
  .board-container, .write-form, .post-detail { padding: 16px; }
}

/* 헤더 스타일 보완 */
header { position: fixed; top: 0; left: 0; width: 100vw; z-index: 100; border-bottom: 1px solid rgba(255,255,255,0.2); transition: all .3s ease; background: rgba(0,0,0,0.1); }
header.on { background: rgba(255,255,255,0.98); border-bottom: 1px solid rgba(0,0,0,0.1); }
header.on .hd_left h1 a { background: url(../img/logo_bl.png) no-repeat center/contain; }
header.on .hd_left nav a { color: #111; }
header.on .hd_quick a span { color: #111; }
header.on .hd_call span { color: #fff; }

/* 사이드바 스타일 보완 */
.sidebar { position: fixed; right: 2%; bottom: 3%; z-index: 100; }
.sidebar .side_menu { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.sidebar .sidebar-item { margin-bottom: 5px; }
.sidebar .sidebar-item a { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.9); border-radius: 8px; padding: 8px 12px; text-decoration: none; color: #333; transition: all 0.3s ease; backdrop-filter: blur(10px); border: 1px solid rgba(0,0,0,0.1); }
.sidebar .sidebar-item a:hover { transform: translateX(-5px); background: rgba(255,255,255,1); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.sidebar .sidebar-item i { display: block; width: 20px; height: 20px; background-size: contain; background-repeat: no-repeat; background-position: center; }
.sidebar .sidebar-item span { font-size: 14px; font-weight: 500; white-space: nowrap; }
.sidebar .sidebar-item .arrow { width: 8px; height: 8px; border-right: 2px solid #333; border-top: 2px solid #333; transform: rotate(45deg); transition: transform 0.3s ease; }
.sidebar .call-icon { background: url(../img/icon_call.svg) no-repeat center/contain; }
.sidebar .kakao-icon { background: url(../img/icon_kakao.svg) no-repeat center/cover; }
.sidebar .blog-icon { background: url(../img/icon_blog.png) no-repeat center/cover; }
.sidebar .inquiry-icon { background: url(../img/icon_message.svg) no-repeat center/contain; }
.sidebar .insta-icon { background: url(../img/icon_insta.svg) no-repeat center/cover; }

@media screen and (max-width: 1024px) {
  .sidebar { right: 16px; }
  .sidebar .side_menu { display: flex; }
}
@media (max-width: 600px) {
  .board-container, .write-form, .post-detail { padding: 8px; }
  .board-header { flex-direction: column; gap: 10px; }
  .form-group input, .form-group select, .form-group textarea { font-size: 0.95rem; }
  .comment-input-group input { width: 80px; }
  .post-contact-info { flex-direction: column; gap: 8px; }
  .post-contact-info .address, .post-contact-info .phone { font-size: 0.85rem; }
  
  /* 모바일에서 게시판 테이블 글씨 크기 조정 */
  .board-table th, .board-table td { 
    padding: 8px 4px; 
    font-size: 0.85rem; 
  }
  
  /* 작성일 열(5번째 열) 글씨 크기 더 작게 */
  .board-table td:nth-child(5) { 
    font-size: 0.75rem; 
    color: #666;
  }
  
  /* 테이블 헤더도 작게 */
  .board-table th:nth-child(5) {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  /* 더 작은 화면에서 작성일 열 글씨 크기 더 작게 */
  .board-table td:nth-child(5) { 
    font-size: 0.7rem; 
    padding: 6px 2px;
  }
  
  .board-table th:nth-child(5) {
    font-size: 0.75rem;
    padding: 6px 2px;
  }
  
  /* 전체 테이블 글씨 크기 조정 */
  .board-table th, .board-table td { 
    padding: 6px 2px; 
    font-size: 0.8rem; 
  }
} 

@media (max-width: 600px) {
    .pagination {
        gap: 4px;
    }
    
    .pagination .page-btn {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .pagination .page-info {
        font-size: 0.8rem;
    }
} 