@charset "utf-8";

/* 웹진 스타일 게시판 목록 스킨 CSS */

/* 카테고리 스타일 */
#bo_cate {
    margin: 25px 0;
}

#bo_cate ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#bo_cate li {
    display: inline-block;
}

#bo_cate a {
    display: block;
    padding: 8px 15px;
    border-radius: 20px;
    background: var(--input-bg);
    color: var(--body-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#bo_cate a:hover, #bo_cate a:focus {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

#bo_cate #bo_cate_on {
    background: var(--accent-color);
    color: white;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(93, 95, 239, 0.3);
}

/* 상단 영역 */
#bo_btn_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

#bo_list_total {
    font-size: 0.95rem;
    color: var(--secondary-color);
}

#bo_list_total span {
    font-weight: bold;
    color: var(--accent-color);
}

/* 버튼 영역 */
.btn_bo_user {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

.btn_bo_user li {
    position: relative;
}

/* 전체 선택 체크박스 스타일 */
.admin_chk_all {
    margin-right: 8px;
}

.admin_chk_all label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.admin_chk_all input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-right: 4px;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
}

.admin_chk_all input[type="checkbox"]:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.admin_chk_all input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 10px;
    color: white;
    position: absolute;
    top: 1px;
    left: 2px;
}

.chk_all_txt {
    font-size: 12px;
    color: var(--secondary-color);
    white-space: nowrap;
}

/* 버튼 스타일 */
.btn_bo_user .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10%; 
    background: var(--input-bg);
    color: var(--secondary-color);
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
    position: relative;
}

.btn_bo_user .btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.btn_bo_user .btn i {
    font-size: 1.1rem;
    margin: 0 !important;
}

/* 아이콘만 있는 버튼에서 sound_only 숨김 처리 */
.btn_bo_user .btn .sound_only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* 웹진 레이아웃 - 비어있는 리스트 */
.empty_list {
    padding: 50px 0;
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.1rem;
    background: var(--input-bg);
    border-radius: 10px;
    margin: 15px;
}

/* 피처드(상단 주요) 게시물 */
.webzine_featured {
    padding: 20px 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.featured_inner {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.featured_inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.featured_thumb {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 비율 */
    overflow: hidden;
}

.featured_thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured_thumb a:hover img {
    transform: scale(1.05);
}

.featured_thumb .no_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--input-bg);
    color: var(--secondary-color);
}

.featured_thumb .no_img i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.featured_text {
    padding: 25px;
}

.featured_tit {
    font-size: 1.8rem;
    margin: 10px 0;
    line-height: 1.3;
}

.featured_tit a {
    color: var(--body-color);
    transition: color 0.2s ease;
}

.featured_tit a:hover {
    color: var(--accent-color);
}

.featured_info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.featured_name {
    font-weight: bold;
}

.featured_excerpt {
    margin: 15px 0;
    line-height: 1.6;
    color: var(--secondary-color);
}

.featured_more {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: var(--accent-color);
    color: white;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.featured_more:hover {
    background: var(--button-hover);
    box-shadow: 0 3px 8px rgba(93, 95, 239, 0.25);
    transform: translateY(-2px);
}

.featured_more i {
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.featured_more:hover i {
    transform: translateX(3px);
}

/* 웹진 그리드 레이아웃 */
.webzine_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 20px 15px;
}

.webzine_item {
    position: relative;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.webzine_item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.webzine_item:hover .webzine_tit a {
    color: var(--accent-color);
}

.webzine_thumb {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 비율 */
    overflow: hidden;
    background: linear-gradient(135deg, var(--input-bg) 0%, var(--card-bg) 100%);
}

.webzine_thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.webzine_item:hover .webzine_thumb img {
    transform: scale(1.05);
}

.webzine_thumb .no_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--input-bg) 0%, var(--card-bg) 100%);
    color: var(--secondary-color);
}

.webzine_thumb .no_img i {
    font-size: 2.5rem;
    margin-bottom: 8px;
    opacity: 0.5;
}

.webzine_thumb .no_img span {
    font-size: 0.85rem;
    opacity: 0.7;
}

.webzine_text {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.webzine_tit {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 600;
}

.webzine_tit a {
    color: var(--body-color);
    transition: color 0.2s ease;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.webzine_tit a:hover {
    color: var(--accent-color);
}

.webzine_excerpt {
    margin: 0;
    line-height: 1.6;
    color: var(--secondary-color);
    font-size: 0.9rem;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.webzine_info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    color: var(--secondary-color);
    font-size: 0.8rem;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.webzine_info i {
    margin-right: 4px;
    font-size: 0.75rem;
}

.webzine_name {
    font-weight: 600;
    color: var(--body-color);
}

/* 체크박스 스타일을 완전히 재정의합니다 */
.chk_box {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: block !important;
}

/* 중요: 기존 체크박스를 완전히 숨깁니다 */
.chk_box input[type="checkbox"] {
    position: absolute;
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    opacity: 0;
}

/* 체크박스 라벨 스타일 */
.chk_box input[type="checkbox"] + label {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    width: 24px;
    height: 24px;
}

/* 체크박스의 보이는 부분을 만듭니다 */
.chk_box input[type="checkbox"] + label span {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 22px !important;
    height: 22px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 5px !important;
    transition: all 0.2s ease;
}

/* 체크 안 됐을 때 - 점 제거 */
.chk_box input[type="checkbox"] + label span:after {
    content: '' !important;
    display: none !important;
}

/* 체크박스가 선택됐을 때 스타일 */
.chk_box input[type="checkbox"]:checked + label span {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

/* 체크 표시 */
.chk_box input[type="checkbox"]:checked + label span:after {
    content: '\f00c' !important;
    display: block !important;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
    color: #fff;
}

/* sound_only 완전 숨김 */
.chk_box .sound_only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* 카테고리 링크 */
.bo_cate_link {
    display: inline-block;
    margin-right: 8px;
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-weight: 500;
}

.bo_cate_link:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
}

/* 댓글 수 */
.cnt_cmt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    padding: 2px 6px;
    border-radius: 10px;
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    flex-shrink: 0;
    font-weight: 500;
    line-height: 1;
}

/* 새글 아이콘 */
.new_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    padding: 2px 5px;
    border-radius: 3px;
    background: var(--success-color);
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    line-height: 1;
    vertical-align: middle;
}

.new_icon .sound_only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

/* 파일/다운로드 아이콘 크기 조정 */
.webzine_tit i,
.webzine_text i.fa,
.webzine_text i.fas,
.webzine_text i.far,
.featured_tit i {
    font-size: 0.85rem !important;
    margin-right: 3px;
    vertical-align: middle;
}

/* 다운로드 아이콘 특별 처리 */
.fa-download,
i.fa-download {
    font-size: 0.8rem !important;
    color: var(--secondary-color);
}

/* 공지 아이콘 */
.webzine_notice {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    background: var(--accent-second, #ff6b6b);
    color: white;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 5;
}

/* 검색 */
.bo_sch_wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
    display: none;
}

.bo_sch {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 400px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -50%);
    overflow: hidden;
}

.bo_sch h3 {
    margin: 0;
    padding: 15px 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
}

.bo_sch form {
    padding: 20px;
}

.bo_sch select {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--body-color);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6' viewBox='0 0 8 6'%3E%3Cpath fill='%23666' d='M0 0h8L4 6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 8px 6px;
}

.bo_sch .sch_bar {
    position: relative;
    margin-top: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    overflow: hidden;
}

.bo_sch .sch_input {
    width: calc(100% - 45px);
    height: 45px;
    border: 0;
    padding: 0 15px;
    background: transparent;
    color: var(--body-color);
}

.bo_sch .sch_btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 45px;
    border: 0;
    background: var(--accent-color);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bo_sch .bo_sch_cls {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    font-size: 1.5rem;
    color: var(--secondary-color);
    background: transparent;
    border: 0;
    cursor: pointer;
}

/* 하단 버튼 영역 */
.bo_fx {
    margin: 20px 0;
    display: flex;
    justify-content: flex-end;
    padding: 0 15px;
}

/* 체크박스 열 숨김 */
.is_checkbox_hide {
    display: none !important;
}

/* 더보기 버튼 관련 스타일 */
.more_opt {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    z-index: 990;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 150px;
}

.more_opt:before {
    content: "";
    position: absolute;
    top: -8px;
    right: 13px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 6px 8px 6px;
    border-color: transparent transparent var(--card-bg) transparent;
}

.more_opt li {
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.more_opt li:last-child {
    border-bottom: 0;
}

.more_opt li button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px;
    border: 0;
    background: transparent;
    color: var(--body-color);
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
}

.more_opt li button:hover {
    background: var(--input-bg);
    color: var(--accent-color);
}

.more_opt li button i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* 반응형 스타일 */
@media (min-width: 993px) {
    /* 데스크톱 */
    .featured_inner {
        flex-direction: row;
    }
    
    .featured_thumb {
        width: 60%;
        height: auto;
        padding-bottom: 0;
    }
    
    .featured_thumb img {
        position: relative;
        height: 100%;
        min-height: 400px;
    }
    
    .featured_text {
        width: 40%;
        padding: 30px;
    }
}

@media (max-width: 992px) {
    /* 태블릿 */
    .webzine_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured_tit {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* 태블릿 및 소형 태블릿 */
    .webzine_grid {
        gap: 16px;
    }

    .webzine_item {
        border-radius: 10px;
    }

    .webzine_text {
        padding: 14px;
    }

    .featured_excerpt {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 모바일에서 상단 버튼 정렬 */
    .admin_chk_all {
        margin-right: 5px;
    }

    /* 체크박스 숨김 */
    .chk_box {
        display: none !important;
    }
}

@media (max-width: 576px) {
    /* 스마트폰 */
    .webzine_grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 15px 10px;
    }

    .webzine_text {
        padding: 12px;
    }

    .featured_tit {
        font-size: 1.3rem;
    }

    .webzine_tit {
        font-size: 1rem;
    }

    .webzine_info {
        font-size: 0.75rem;
        gap: 8px;
    }

    /* 페이지 정보 숨김 */
    #bo_list_total {
        display: none;
    }

    .bo_cate_link {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    /* 모바일에서 관리자 체크박스 및 버튼 조정 */
    .btn_bo_user {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .admin_chk_all {
        display: none;
    }

    /* 페이지 버튼 크기 축소 */
    .pg_page, .pg_current {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 0.9rem;
    }
}

@media (max-width: 420px) {
    /* 소형 스마트폰 */
    .webzine_grid {
        padding: 12px 8px;
    }

    .webzine_thumb {
        padding-bottom: 60%; /* 5:3 비율 */
    }

    .featured_excerpt {
        -webkit-line-clamp: 3;
    }

    .webzine_excerpt {
        -webkit-line-clamp: 2;
    }

    .featured_info, .webzine_info {
        gap: 6px;
        font-size: 0.7rem;
    }

    .bo_cate_link {
        margin-right: 4px;
    }
}