@charset "utf-8";

/* ============================================
   Card-style Board Skin
   Reference: dew-drive.co.kr/sub/review
   ============================================ */

/* --- Layout --- */
.bo_card_list {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 15px;
}

/* --- Header --- */
.card-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid #333;
    margin-bottom: 24px;
}
.card-list-title {
    font-size: 1.5em;
    font-weight: 700;
    margin: 0 0 4px;
    color: #222;
}
.card-list-count {
    font-size: 0.88em;
    color: #888;
}
.card-list-count strong {
    color: #00838f;
    font-weight: 700;
}
.card-list-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-card-action:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #bbb;
}
.btn-card-write {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: #00838f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-card-write:hover {
    background: #006064;
    color: #fff;
    text-decoration: none;
}

/* --- Card Grid --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.card-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #999;
    font-size: 1.05em;
    background: #fafafa;
    border-radius: 12px;
}

/* --- Card Item --- */
.card-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e8e8;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.card-notice {
    border-color: #c8e6c9;
    background: #f1f8e9;
}
.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* --- Thumbnail --- */
.card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0f0f0;
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.card-item:hover .card-thumb img {
    transform: scale(1.05);
}
.card-thumb-empty {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}
.card-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ccc;
    font-size: 2.5em;
}

/* --- Badges --- */
.card-badge-notice {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    background: #00838f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.card-badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* --- Card Body --- */
.card-body {
    padding: 16px;
}
.card-title {
    font-size: 1em;
    font-weight: 600;
    color: #222;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.card-cate {
    display: inline-block;
    padding: 1px 6px;
    background: #b2ebf2;
    color: #00838f;
    font-size: 0.8em;
    border-radius: 3px;
    margin-right: 4px;
    font-weight: 500;
}
.card-comment-cnt {
    display: inline-block;
    padding: 0 5px;
    background: #e3f2fd;
    color: #1565c0;
    font-size: 0.75em;
    border-radius: 3px;
    margin-left: 4px;
    font-weight: 700;
    vertical-align: middle;
}
.card-preview {
    font-size: 0.85em;
    color: #777;
    line-height: 1.5;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* --- Card Meta --- */
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 0.78em;
    color: #999;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.card-writer {
    font-weight: 600;
    color: #555;
}
.card-hit i,
.card-good i {
    margin-right: 2px;
}
.card-good {
    color: #e53935;
}

/* --- Checkbox --- */
.card-chk {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
}
.card-chk .selec_chk {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.card-chk input[type="checkbox"] + label span {
    display: block;
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.9);
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}
.card-chk input[type="checkbox"]:checked + label span {
    background: #00838f;
    border-color: #00838f;
}

/* --- Pagination --- */
.card-pagination {
    margin: 32px 0;
    text-align: center;
}
.card-pagination .pg_wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.card-pagination .pg_page,
.card-pagination .pg_current,
.card-pagination .pg_start,
.card-pagination .pg_end,
.card-pagination .pg_prev,
.card-pagination .pg_next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    background: #fff;
    text-decoration: none;
    transition: all 0.15s;
}
.card-pagination .pg_page:hover,
.card-pagination .pg_start:hover,
.card-pagination .pg_end:hover,
.card-pagination .pg_prev:hover,
.card-pagination .pg_next:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #222;
    text-decoration: none;
}
.card-pagination .pg_current {
    background: #00838f;
    color: #fff;
    border-color: #00838f;
    font-weight: 700;
}

/* --- Footer --- */
.card-list-footer {
    text-align: right;
    padding: 16px 0;
}

/* --- More Options --- */
.more_opt {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
    min-width: 120px;
    list-style: none;
    margin: 0;
    padding: 4px 0;
}
.more_opt li {
    padding: 0;
    margin: 0;
}
.more_opt li button,
.more_opt li a {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: 0;
    background: none;
    color: #555;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}
.more_opt li button:hover,
.more_opt li a:hover {
    background: #f5f5f5;
    color: #222;
}
.more_opt li i {
    margin-right: 8px;
}

/* --- Category --- */
#bo_cate {
    margin: 0 0 20px;
}
#bo_cate h2 {
    position: absolute;
    font-size: 0;
    overflow: hidden;
}
#bo_cate ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
#bo_cate a {
    display: block;
    padding: 6px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #666;
    font-size: 0.9em;
    text-decoration: none;
    transition: all 0.2s;
}
#bo_cate a:hover,
#bo_cate #bo_cate_on {
    background: #00838f;
    color: #fff;
    border-color: #00838f;
}

/* --- Search --- */
.bo_sch_wrap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}
.bo_sch {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    padding: 0;
    width: 380px;
    max-width: 90%;
    overflow: hidden;
}
.bo_sch h3 {
    padding: 16px 20px;
    margin: 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1em;
}
.bo_sch form {
    padding: 20px;
}
.bo_sch select {
    width: 100%;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 14px;
    margin-bottom: 12px;
}
.bo_sch .sch_bar {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}
.bo_sch .sch_input {
    flex: 1;
    height: 42px;
    border: 0;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
}
.bo_sch .sch_btn {
    width: 42px;
    height: 42px;
    border: 0;
    background: #00838f;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}
.bo_sch .bo_sch_cls {
    position: absolute;
    top: 8px;
    right: 8px;
    border: 0;
    background: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 8px;
}
.bo_sch_bg {
    background: rgba(0,0,0,0.4);
    width: 100%;
    height: 100%;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
@media (max-width: 575px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .card-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .card-list-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .card-thumb {
        aspect-ratio: 16 / 9;
    }
    .card-pagination .pg_wrap {
        flex-wrap: wrap;
        justify-content: center;
    }
    .card-pagination .pg_page,
    .card-pagination .pg_current,
    .card-pagination .pg_start,
    .card-pagination .pg_end,
    .card-pagination .pg_prev,
    .card-pagination .pg_next {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* --- View Skin (shared) --- */
#bo_v {
    max-width: 900px;
    margin: 0 auto 40px;
    background: #fff;
}
#bo_v_title {
    padding: 0;
    margin: 0;
}
#bo_v_title .bo_v_cate {
    display: inline-block;
    padding: 2px 10px;
    background: #b2ebf2;
    color: #00838f;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
}
#bo_v_title .bo_v_tit {
    display: block;
    font-size: 1.6em;
    font-weight: 700;
    margin: 8px 0 0;
    word-break: break-word;
    line-height: 1.4;
}
#bo_v_info {
    margin: 0;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    color: #666;
}
#bo_v_info .profile_info {
    margin: 0;
    display: inline-flex;
    align-items: center;
}
#bo_v_info .profile_info .pf_img {
    margin-right: 10px;
}
#bo_v_info .profile_info .pf_img img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}
#bo_v_info .sv_member,
#bo_v_info .sv_guest {
    font-weight: 700;
    color: #222;
}
#bo_v_info .if_date {
    color: #999;
    font-weight: 400;
}
#bo_v_con {
    margin: 24px 0 32px;
    line-height: 1.8;
    font-size: 1.02em;
    word-break: break-word;
}
#bo_v_con img {
    max-width: 100%;
    height: auto;
}

/* View buttons */
.bo_v_com > li {
    position: relative;
    float: left;
    margin-left: 5px;
}
.btn_bo_user {
    float: right;
    margin: 0;
    padding: 0;
    list-style: none;
}
.btn_bo_user li {
    float: left;
    margin-left: 5px;
}
.btn_b01 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #666;
    text-decoration: none;
}
.btn_b01:hover {
    background: #f5f5f5;
    color: #333;
}

/* Prev/Next */
.bo_v_nb {
    margin: 24px 0;
    padding: 0;
    list-style: none;
}
.bo_v_nb li {
    padding: 14px 0;
    border-top: 1px solid #f0f0f0;
}
.bo_v_nb li:last-child {
    border-bottom: 1px solid #f0f0f0;
}
.bo_v_nb .nb_tit {
    display: inline-block;
    width: 60px;
    color: #999;
    font-size: 0.9em;
}
.bo_v_nb .nb_date {
    float: right;
    color: #bbb;
    font-size: 0.85em;
}
.bo_v_nb a {
    color: #333;
    text-decoration: none;
}
.bo_v_nb a:hover {
    color: #00838f;
}

/* Good/Nogood */
#bo_v_act {
    margin: 24px 0;
    text-align: center;
}
.bo_v_good,
.bo_v_nogood {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 24px;
    border: 1px solid #ddd;
    border-radius: 24px;
    color: #555;
    margin: 0 4px;
    text-decoration: none;
}
.bo_v_good:hover { border-color: #00838f; color: #00838f; }
.bo_v_nogood:hover { border-color: #e53935; color: #e53935; }

/* File/Link */
#bo_v_file ul,
#bo_v_link ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#bo_v_file li,
#bo_v_link li {
    padding: 12px 16px;
    margin: 8px 0;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: border-color 0.2s;
}
#bo_v_file li:hover,
#bo_v_link li:hover {
    border-color: #c8e6c9;
}
#bo_v_file a,
#bo_v_link a {
    color: #333;
    text-decoration: none;
}
#bo_v_file a:hover,
#bo_v_link a:hover {
    color: #00838f;
}

/* Comments */
#bo_vc article {
    margin: 16px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}
.bo_vc_w textarea {
    width: 100%;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    resize: vertical;
}
.bo_vc_w .btn_submit {
    height: 42px;
    padding: 0 24px;
    background: #00838f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
.bo_vc_w .btn_submit:hover {
    background: #006064;
}

/* SNS Share */
#bo_v_share {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}
#bo_v_share .btn {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9em;
    color: #555;
    background: #fff;
}
#bo_v_share .btn:hover {
    background: #f5f5f5;
}

/* Sound Only */
.sound_only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}
