@charset "UTF-8";

/* 건마가좋다 - 홈페이지 통합 스킨 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    background: #f5f7fa;
    color: #333;
}

/* 메인 컨테이너 */
#bo_list,
#bo_v,
#bo_w {
    max-width: 100%;
    margin: 0;
    padding: 30px;
    background: #ffffff;
}

/* =============================
   게시판 타이틀
   ============================= */
.board-header {
    background: linear-gradient(135deg, #5b6fc9 0%, #4a5fb8 100%);
    padding: 50px 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(91,111,201,0.2);
}

.board-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.board-header p {
    font-size: 15px;
    color: rgba(255,255,255,0.9);
}

/* =============================
   컨트롤 바
   ============================= */
.board-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fb;
    border-radius: 12px;
    border: 1px solid #e1e4e8;
}

.board-info {
    display: flex;
    gap: 25px;
    align-items: center;
}

.board-info span {
    color: #666;
    font-size: 14px;
}

.board-info strong {
    color: #5b6fc9;
    font-weight: 700;
    margin-left: 5px;
}

/* 버튼 */
.btn-group {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #5b6fc9 0%, #4a5fb8 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(91,111,201,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91,111,201,0.4);
}

.btn-outline {
    background: white;
    color: #5b6fc9;
    border: 2px solid #5b6fc9;
}

.btn-outline:hover {
    background: #5b6fc9;
    color: white;
}

/* 검색 */
.search-box {
    display: flex;
    gap: 10px;
    background: #f8f9fb;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e1e4e8;
    margin-bottom: 20px;
}

.search-box select,
.search-box input[type="text"] {
    background: white;
    border: 1px solid #d1d5da;
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input[type="text"] {
    flex: 1;
    min-width: 250px;
}

.search-box input[type="text"]:focus {
    border-color: #5b6fc9;
    box-shadow: 0 0 0 3px rgba(91,111,201,0.1);
}

.search-box button {
    background: linear-gradient(135deg, #5b6fc9 0%, #4a5fb8 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    transform: translateY(-1px);
}

/* =============================
   게시글 카드
   ============================= */
.post-list {
    display: grid;
    gap: 15px;
}

.post-card {
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #5b6fc9 0%, #4a5fb8 100%);
    border-radius: 12px 0 0 12px;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: #5b6fc9;
}

.post-card:hover::before {
    transform: scaleY(1);
}

/* 공지사항 */
.post-card.notice {
    background: linear-gradient(135deg, #f0f3ff 0%, #e8ecff 100%);
    border: 2px solid #5b6fc9;
}

.notice-badge {
    display: inline-block;
    padding: 5px 14px;
    background: linear-gradient(135deg, #5b6fc9 0%, #4a5fb8 100%);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* 카테고리 */
.post-category {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(91,111,201,0.1);
    color: #5b6fc9;
    border: 1px solid rgba(91,111,201,0.3);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* 제목 */
.post-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.5;
    cursor: pointer;
    transition: color 0.3s ease;
}

.post-title:hover {
    color: #5b6fc9;
}

/* NEW 배지 */
.badge-new {
    display: inline-block;
    padding: 3px 8px;
    background: #ff6b6b;
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
}

/* 댓글 수 */
.comment-count {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(91,111,201,0.15);
    color: #5b6fc9;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
}

/* 메타 정보 */
.post-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    color: #888;
    font-size: 13px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e1e4e8;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta strong {
    color: #666;
}

/* =============================
   페이징
   ============================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0 30px 0;
}

.pagination a,
.pagination strong {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 1px solid #e1e4e8;
    color: #666;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #5b6fc9;
    color: white;
    border-color: #5b6fc9;
}

.pagination strong {
    background: linear-gradient(135deg, #5b6fc9 0%, #4a5fb8 100%);
    color: white;
    border-color: #5b6fc9;
}

/* =============================
   게시글 보기
   ============================= */
.post-view-container {
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
}

/* 제목 */
.view-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid #5b6fc9;
    line-height: 1.4;
}

/* 정보 */
.view-info {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fb;
    border-radius: 10px;
    border: 1px solid #e1e4e8;
}

.view-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.view-info-item strong {
    color: #5b6fc9;
    font-weight: 600;
}

/* 본문 */
.view-content {
    padding: 30px 0;
    line-height: 1.9;
    font-size: 16px;
    color: #333;
    min-height: 300px;
}

.view-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.view-content p {
    margin-bottom: 18px;
}

/* 첨부파일 */
.view-attachments {
    background: #f8f9fb;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.view-attachments h3 {
    color: #5b6fc9;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.view-attachments ul {
    list-style: none;
}

.view-attachments li {
    padding: 12px 0;
    border-bottom: 1px solid #e1e4e8;
}

.view-attachments li:last-child {
    border-bottom: none;
}

.view-attachments a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.view-attachments a:hover {
    color: #5b6fc9;
}

/* 버튼 그룹 */
.view-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e1e4e8;
}

/* =============================
   댓글
   ============================= */
.comments-section {
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
}

.comments-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #5b6fc9;
}

.comment-item {
    background: #f8f9fb;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 15px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comment-author {
    font-weight: 700;
    color: #5b6fc9;
    font-size: 15px;
}

.comment-date {
    color: #888;
    font-size: 13px;
}

.comment-content {
    color: #555;
    line-height: 1.7;
    font-size: 14px;
}

/* =============================
   글쓰기 폼
   ============================= */
.write-container {
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 15px;
    padding: 40px;
}

.write-title {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #5b6fc9;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    background: white;
    border: 1px solid #d1d5da;
    color: #333;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #5b6fc9;
    outline: none;
    box-shadow: 0 0 0 3px rgba(91,111,201,0.1);
}

.form-group textarea {
    min-height: 400px;
    resize: vertical;
    line-height: 1.7;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e1e4e8;
}

.form-actions button,
.form-actions a {
    padding: 14px 40px;
    font-size: 15px;
}

/* =============================
   이전글/다음글
   ============================= */
.post-navigation {
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.post-navigation ul {
    list-style: none;
}

.post-navigation li {
    padding: 15px 0;
    border-bottom: 1px solid #e1e4e8;
}

.post-navigation li:last-child {
    border-bottom: none;
}

.post-navigation a {
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: #5b6fc9;
}

.post-navigation strong {
    color: #5b6fc9;
    font-weight: 700;
    min-width: 70px;
}

/* =============================
   빈 상태
   ============================= */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 16px;
    color: #888;
}

/* =============================
   반응형
   ============================= */
@media (max-width: 768px) {
    #bo_list, #bo_v, #bo_w {
        padding: 20px 15px;
    }
    
    .board-header {
        padding: 30px 20px;
    }
    
    .board-header h2 {
        font-size: 24px;
    }
    
    .board-controls {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .board-info {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .search-box {
        flex-direction: column;
        padding: 15px;
    }
    
    .search-box input[type="text"] {
        min-width: auto;
    }
    
    .post-card {
        padding: 20px;
    }
    
    .post-title {
        font-size: 16px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .post-view-container {
        padding: 25px 20px;
    }
    
    .view-title {
        font-size: 22px;
    }
    
    .view-info {
        flex-direction: column;
        gap: 12px;
    }
    
    .comments-section {
        padding: 25px 20px;
    }
    
    .write-container {
        padding: 25px 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button,
    .form-actions a {
        width: 100%;
    }
}

/* =============================
   애니메이션
   ============================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card,
.post-view-container,
.comments-section,
.write-container {
    animation: fadeInUp 0.5s ease;
}

/* =============================
   스크롤바
   ============================= */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f3f5;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #5b6fc9 0%, #4a5fb8 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a5fb8;
}
