/* 작업현황 게시판 메인 스타일 */
.workboard-section { padding: 40px 0; background: #f9f9f9; margin-top: 80px; }

/* 작업현황 게시판 네비게이션 */
.workboard-nav { margin-bottom: 20px; }
.workboard-nav .bread { display: flex; align-items: center; gap: 8px; }
.workboard-nav .bread .home { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; background: none !important; }
.workboard-nav .bread .home i { font-size: 14px; color: #666; display: block !important; width: auto !important; aspect-ratio: auto !important; background: none !important; }
.workboard-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; }
.workboard-nav .bread .now { font-size: 14px; color: #3373c9; font-weight: 600; }

.workboard-container { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); padding: 32px; }
.workboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.workboard-actions { display: flex; gap: 10px; }
.upload-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; }
.upload-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; }

/* 갤러리 그리드 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* 작업 아이템 */
.work-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.work-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 이미지 컨테이너 */
.work-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

/* 대표 이미지 */
.main-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.work-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-item:hover .work-main-image {
    transform: scale(1.05);
}

/* 추가 이미지들 */
.sub-images {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
}

.work-sub-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 이미지 없음 */
.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #999;
    font-size: 14px;
}

/* 작업 정보 */
.work-info {
    padding: 16px;
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.work-category {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.work-date {
    color: #666;
    font-size: 12px;
}

.work-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.work-author {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
}

.work-content-preview {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.more-images {
    text-align: right;
    font-size: 12px;
    color: #007bff;
    font-weight: 500;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.page-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.page-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* 업로드 폼 */
.upload-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);
}

/* 작업현황 상세 */
.work-detail { max-width: 800px; 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; }
.work-header { border-bottom: 1px solid #eee; margin-bottom: 18px; }
.work-header h2 { margin: 0 0 8px 0; color: #3373c9; }
.work-meta { font-size: 0.95rem; color: #888; display: flex; gap: 12px; margin-bottom: 8px; }
.work-body { margin-bottom: 18px; }
.work-body img { max-width: 100%; border-radius: 6px; margin: 8px 0; }
.work-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; }

/* 블로그 스타일 콘텐츠 */
.work-content-text { 
    font-size: 1.1rem; 
    line-height: 1.8; 
    color: #333; 
    margin-bottom: 24px; 
    white-space: pre-wrap; 
    word-wrap: break-word; 
}

.work-content-images { 
    margin-top: 20px; 
    margin-bottom: 20px; 
}

.work-content-image { 
    max-width: 100%; 
    height: auto; 
    border-radius: 8px; 
    margin: 12px 0; 
    cursor: pointer; 
    transition: transform 0.3s ease; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
}

.work-content-image:hover { 
    transform: scale(1.02); 
    box-shadow: 0 4px 16px rgba(0,0,0,0.15); 
}

/* 작업 이미지 갤러리 (기존 스타일 유지) */
.work-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
.work-images img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; cursor: pointer; transition: transform 0.3s ease; }
.work-images img:hover { transform: scale(1.05); }

/* 댓글 */
.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) {
  .workboard-container, .upload-form, .work-detail { padding: 16px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
}

@media (max-width: 600px) {
  .workboard-container, .upload-form, .work-detail { padding: 8px; }
  .workboard-header { flex-direction: column; gap: 10px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .form-group input, .form-group select, .form-group textarea { font-size: 0.95rem; }
  .comment-input-group input { width: 80px; }
  .work-images { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .work-image-container {
        height: 150px;
    }
    
    .work-sub-image {
        width: 30px;
        height: 30px;
    }
}

/* 헤더 스타일 보완 */
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; }
} 