/* ====================================
   게시판 컨트롤 영역
   ==================================== */
.board-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.board-info {
    color: #6b7280;
    font-size: 0.875rem;
}

.board-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* 검색 폼 */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-select {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
}

.search-input-small {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    width: 200px;
}

/* ====================================
   게시판 테이블
   ==================================== */
.board-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #374151;
}

.table tbody tr:hover {
    background: #f9fafb;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* 게시글 제목 링크 */
.post-title {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.post-title:hover {
    text-decoration: underline;
}

/* 게시글 메타 정보 */
.post-meta {
    color: #6b7280;
    font-size: 0.875rem;
}

/* 게시글 상태 배지 */
.post-status {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-notice {
    background: #fef3c7;
    color: #92400e;
}

.status-hot {
    background: #fee2e2;
    color: #991b1b;
}

.status-new {
    background: #d1fae5;
    color: #065f46;
}

.comment-count {
    color: #ef4444;
    font-weight: 600;
}

/* ====================================
   게시글 상세 보기
   ==================================== */
.post-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

/* 게시글 헤더 */
.post-header {
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.post-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.post-info {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-stats {
    display: flex;
    gap: 1rem;
}

/* 게시글 내용 */
.post-content {
    padding: 2rem;
    line-height: 1.8;
    font-size: 1rem;
	min-height:300px;
	height:auto;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.post-content p {
    margin-bottom: 1rem;
}

/* 게시글 액션 영역 */
.post-actions {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.like-section {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* 좋아요 버튼 */
.like-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.like-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.like-btn.liked {
    background: #eff6ff;
    border-color: #2563eb;
    color: #2563eb;
}

.post-controls {
    display: flex;
    gap: 0.5rem;
}

/* ====================================
   글쓰기 페이지
   ==================================== */


/* ====================================
   파일 업로드
   ==================================== */
.file-upload {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s;
    cursor: pointer;
}

.file-upload:hover {
    border-color: #2563eb;
    background: #f8faff;
}

.file-upload.dragover {
    border-color: #2563eb;
    background: #eff6ff;
}

.file-upload-icon {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.file-upload-text {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.file-upload-hint {
    color: #9ca3af;
    font-size: 0.875rem;
}

.file-input {
    display: none;
}

/* 업로드된 파일 목록 */
.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-name {
    font-weight: 500;
}

.file-size {
    color: #6b7280;
    font-size: 0.875rem;
}

.file-remove {
    color: #ef4444;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.file-remove:hover {
    background: #fee2e2;
}

/* ====================================
   게시글 옵션
   ==================================== */
.post-options {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.options-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox {
    width: 18px;
    height: 18px;
}

/* ====================================
   반응형 디자인 (모바일)
   ==================================== */
@media (max-width: 768px) {
    /* 모바일 메뉴 버튼 표시 */
    .mobile-menu-btn {
        display: block;
    }

    /* 데스크톱 네비게이션 숨김 */
    .nav-menu {
        display: none;
    }

    /* 헤더 레이아웃 조정 */
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    /* 히어로 섹션 타이틀 크기 조정 */
    .hero-title {
        font-size: 2.5rem;
    }

    /* 히어로 버튼 세로 배치 */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* 그리드 레이아웃을 단일 컬럼으로 변경 */
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* 푸터 그리드 조정 */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 게시글 관련 요소들 패딩 조정 */
    .post-header,
    .post-content,
    .post-actions,
    .comment-form,
    .comment-item {
        padding: 1.5rem 1rem;
    }

    /* 게시글 메타 정보 세로 배치 */
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    /* 게시글 액션 세로 배치 */
    .post-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .like-section {
        justify-content: center;
    }

    .post-controls {
        justify-content: center;
    }

    /* 네비게이션 아이템 레이아웃 조정 */
    .nav-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .nav-author {
        text-align: left;
    }

    /* 검색바 조정 */
    .search-bar {
        margin: 0;
        max-width: 100%;
    }

    /* 게시판 컨트롤 세로 배치 */
    .board-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .board-actions {
        justify-content: space-between;
    }

    /* 검색 폼 세로 배치 */
    .search-form {
        flex-direction: column;
    }

    .search-input-small {
        width: 100%;
    }

    /* 테이블 폰트 크기 조정 */
    .table {
        font-size: 0.875rem;
    }

    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
    }

    /* 모바일에서 특정 컬럼 숨김 */
    .table .hide-mobile {
        display: none;
    }

    /* 글쓰기 컨테이너 패딩 조정 */
    .write-container {
        padding: 1.5rem 1rem;
    }
}