@charset "utf-8";

/* 기존 다온테마 기본 스타일 유지 */
/* 게시판 버튼 */
#bo_list a.btn_b01 {}
#bo_list a.btn_b01:focus, #bo_list a.btn_b01:hover {}
#bo_list a.btn_b02 {}
#bo_list a.btn_b02:focus, #bo_list a.btn_b02:hover {}
#bo_list a.btn_admin {}
#bo_list a.btn_admin:focus, #bo_list .btn_admin:hover {}

/* 기본 게시판 레이아웃 */
#bo_list {position:relative;margin-bottom:20px}
#bo_list:after {display:block;visibility:hidden;clear:both;content:""}

/* 카테고리 스타일 유지 */
#bo_cate {padding:0px;margin:10px 0; margin-bottom:20px; border-bottom:1px solid #ddd}
#bo_cate h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_cate ul {zoom:1}
#bo_cate ul:after {display:block;visibility:hidden;clear:both;content:""}
#bo_cate li {display:inline-block;padding:0px; min-width:150px; padding-right:2px; text-align:center;}
#bo_cate a {display:block;line-height:40px;padding:0 20px;border-radius:0px;border:1px solid #ddd; background:#fff; border-bottom:0px; text-align:center;}
#bo_cate a:focus, #bo_cate a:hover, #bo_cate a:active {text-decoration:none;background:#d2d6dc; border:1px solid #d2d6dc; border-bottom:0px;}
#bo_cate #bo_cate_on {z-index:2;background:#333;color:#fff;font-weight:500; border:1px solid #333; border-bottom:0px;}

/* 상단 버튼 영역 */
#bo_btn_top {margin:10px 0}
#bo_btn_top:after {display:block;visibility:hidden;clear:both;content:""}
#bo_list_total {float:left;line-height:34px;font-size:0.92em;color:#4e546f}
.btn_bo_user {float:right;margin:0;padding:0;list-style:none}
.btn_bo_user li {float:left;width:auto;text-align:center;margin-left:5px;background:#fff}
.btn_bo_user > li {position:relative}

/* =========================== */
/* SNS 스타일 카드 레이아웃 */
/* =========================== */

.sns_board_list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.post_card {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.post_card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.post_card.notice_post {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-color: #ffcdd2;
}

/* 게시물 헤더 */
.post_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.author_info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author_name {
    font-weight: 600;
    font-size: 1.3em;
    color: #333;
}

.notice_badge {
    display: inline-block;
    background: #ff4757;
    color: #fff;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.post_date {
    font-size: 1.1em;
    color: #666;
}

.post_actions {
    display: flex;
    align-items: center;
}

.post_actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 추천 버튼 */
.recommend_btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.recommend_btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b5b95 100%);
    transform: scale(1.05);
}

.recommend_btn.recommended {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.recommend_btn i {
    font-size: 1em;
}

.recommend_count {
    font-weight: 600;
}

/* 게시글 관리 메뉴 */
.post_manage {
    position: relative;
}

.manage_btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #666;
    padding: 8px 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manage_btn:hover {
    background: #e9ecef;
    color: #333;
}

.manage_menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 120px;
    display: none;
}

.manage_menu a {
    display: block;
    padding: 10px 15px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f3f4;
}

.manage_menu a:last-child {
    border-bottom: none;
}

.manage_menu a:hover {
    background: #f8f9fa;
    color: #333;
}

.manage_menu .delete_btn:hover {
    background: #ffe6e6;
    color: #dc3545;
}

.manage_menu a i {
    margin-right: 8px;
    width: 14px;
}

/* 게시물 제목 */
.post_title {
    margin-bottom: 15px;
}

.post_category {
    display: inline-block;
    background: #667eea;
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
    margin-bottom: 8px;
}

.post_title h3 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    word-break: break-all;
}

.post_title .new_icon {
    display: inline-block;
    background: #ff6b6b;
    color: #fff;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7em;
    font-weight: 500;
    margin-left: 8px;
    vertical-align: middle;
}

.comment_count {
    display: inline-block;
    background: #4ecdc4;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: 500;
    margin-left: 8px;
}

/* 게시물 내용 */
.post_content {
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    word-break: break-all;
    max-height: 200px;
    overflow: hidden;
    position: relative;
}

.post_content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.post_content p {
    margin-bottom: 10px;
}

/* 게시물 푸터 */
.post_footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    color: #666;
    font-size: 0.9em;
}

.post_stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.post_stats i {
    margin-right: 5px;
    color: #999;
}

/* 빈 게시물 */
.empty_post {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.empty_post p {
    font-size: 1.1em;
    margin: 0;
}

/* 글쓰기 버튼 */
.write_btn_wrap {
    text-align: right;  /* 왼쪽 center에서 right로 변경 */
    margin: 30px 0;
}

.btn_write {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn_write:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b5b95 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    text-decoration: none;
    color: #fff;
}

.btn_write i {
    margin-right: 8px;
}

/* 페이지네이션 스타일 개선 */
.pg_wrap {
    text-align: center;
    margin: 30px 0;
}

.pg_wrap .pg {
    display: inline-block;
    padding: 0;
}

.pg_wrap .pg a,
.pg_wrap .pg strong {
    display: inline-block;
    padding: 0px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
}

.pg_wrap .pg a:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.pg_wrap .pg strong {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* 검색 관련 스타일 유지 */
.bo_sch_wrap {display:none;width:100%;height:100%;position:fixed;top:0;left:0;z-index:999999999;}
.bo_sch {position:absolute;top:50%;left:50%;background:#fff;text-align:left;width:500px;max-height:300px;margin-left:-250px;margin-top:-150px;overflow-y:auto;border-radius:5px;-webkit-box-shadow:1px 1px 18px rgba(0,0,0,0.2);-moz-box-shadow:1px 1px 18px rgba(0,0,0,0.2);box-shadow:1px 1px 18px rgba(0,0,0,0.2);border:1px solid #dde7e9;background:#fff;border-radius:3px}
.bo_sch:after {display:block;visibility:hidden;clear:both;content:""}
.bo_sch h3 {padding:15px;border-bottom:1px solid #e8e8e8}
.bo_sch legend {background:red}
.bo_sch form {padding:15px;display:block}
.bo_sch select {border:0;width:100%;height:40px;border:1px solid #dddddd;border-radius:2px;}
.bo_sch .sch_bar {display:inline-block;width:100%;clear:both;margin-top:15px;border:1px solid #dddddd;border-radius:2px;}
.bo_sch .sch_input {width:80%;height:38px;border:0;padding:0;background-color:transparent;float:left}
.bo_sch .sch_btn {height:38px;float:right;color:#656565;background:none;border:0;width:40px;font-size:15px}
.bo_sch .bo_sch_cls {position:absolute;right:0;top:0;color:#b5b8bb;border:0;padding:12px 15px;font-size:16px;background:#fff}
.bo_sch_bg {background:#000;background:rgba(0,0,0,0.5);width:100%;height:100%;}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .sns_board_list {
        margin: 20px 0;
        gap: 20px;
    }
    
    .post_card {
        padding: 15px;
        margin: 0;
        border-radius: 12px;
        border-left: 1px solid #e1e8ed;
        border-right: 1px solid #e1e8ed;
        border-bottom: 1px solid #e1e8ed;
    }  
   
    .post_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .post_actions {
        align-self: flex-end;
        margin-top: -35px;
    }
    
    .author_info {
        flex-wrap: wrap;
    }
    
    .post_title h3 {
        font-size: 1.1em;
    }
    
    .recommend_btn {
        padding: 6px 12px;
        font-size: 0.8em;
    }
    
    .write_btn_wrap {
        position: static;  /* fixed에서 static으로 변경 */
        text-align: right;
        margin: 20px 0;
        padding-right: 20px;
    }
    
    .btn_write {
        padding: 12px 20px;  /* 원래 크기로 복원 */
        border-radius: 25px;  /* 원형에서 둥근 사각형으로 */
        width: auto;         /* 고정 크기 해제 */
        height: auto;        /* 고정 크기 해제 */
        display: inline-block;
    }
    
    .btn_write span {
        display: inline;     /* 텍스트 다시 표시 */
    }
}

/* 애니메이션 효과 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post_card {
    animation: fadeInUp 0.5s ease forwards;
}

.post_card:nth-child(1) { animation-delay: 0.1s; }
.post_card:nth-child(2) { animation-delay: 0.2s; }
.post_card:nth-child(3) { animation-delay: 0.3s; }
.post_card:nth-child(4) { animation-delay: 0.4s; }
.post_card:nth-child(5) { animation-delay: 0.5s; }