@charset "utf-8";

/* ==========================================================================
   1. 기본 게시판 공통 스타일 (VIEW 페이지 복원)
   ========================================================================== */

/* 게시판 읽기 (VIEW) 전체 용기 */
#bo_v {
    margin: 0 auto 20px;
    padding-bottom: 20px;
    border-top: 2px solid #111;
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Segoe UI", Roboto, sans-serif;
}

#bo_v_title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    padding: 20px 0 15px;
    margin: 0;
    line-height: 1.4;
}

#bo_v_info {
    color: #666;
    padding: 12px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    margin-bottom: 20px;
}

#bo_v_info h2 {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

#bo_v_info strong {
    display: inline-block;
    margin: 0 12px 0 4px;
    font-weight: 600;
    color: #333;
}

/* 상단/하단 버튼 영역 (가로 정렬 복원) */
#bo_v_top, #bo_v_bot {
    margin: 15px 0;
    padding: 10px 0;
    zoom: 1;
}

#bo_v_top:after, #bo_v_bot:after {
    display: block;
    visibility: hidden;
    clear: both;
    content: "";
}

.bo_v_nb { float: left; margin: 0; padding: 0; list-style: none; }
.bo_v_nb li { float: left; margin-right: 5px; }

.bo_v_com { float: right; margin: 0; padding: 0; list-style: none; }
.bo_v_com li { float: left; margin-left: 5px; }

/* 기존 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
    line-height: 1.2;
    vertical-align: middle;
}
.btn-black { background: #111; color: #fff !important; border: 1px solid #111; }
.btn-black-o { background: #fff; color: #333 !important; border: 1px solid #ccc; }
.btn-black-o:hover { background: #f8f9fa; }
.btn-red-o { background: #fff; color: #e03131 !important; border: 1px solid #ffc9c9; }
.btn-red-o:hover { background: #fff5f5; }

/* 본문 영역 */
#bo_v_atc {
    min-height: 150px;
    padding: 20px 0;
}

#bo_v_atc_title {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

#bo_v_con {
    margin-bottom: 30px;
    width: 100%;
    line-height: 1.8;
    word-break: break-all;
    font-size: 15px;
    color: #333;
}

#bo_v_con img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 10px auto;
}

/* 추천 / 스크랩 버튼 */
#bo_v_act {
    margin: 30px 0;
    text-align: center;
}

/* SNS 공유 */
#bo_v_sns {
    margin: 20px 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 8px;
}


/* ==========================================================================
   2. 유튜브 본문 반응형 플레이어 (VIEW 페이지용)
   ========================================================================== */

.youtube-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 비율 */
    margin: 20px 0 30px 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.youtube-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ==========================================================================
   3. 카드형 목록 커스텀 스타일 (LIST 페이지용)
   ========================================================================== */

#bo_gall_custom {
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Segoe UI", Roboto, sans-serif;
}

.bo_fx_custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.bo_fx_custom.bottom {
    margin-top: 30px;
}

#bo_list_total {
    font-size: 14px;
    color: #666;
}

#bo_list_total strong {
    color: #111;
}

.page_info {
    margin-left: 8px;
    color: #888;
}

/* 커스텀 버튼 */
.btn_custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn_primary { background: #111; color: #fff !important; }
.btn_primary:hover { background: #333; }

.btn_gray { background: #f1f3f5; color: #495057 !important; }
.btn_gray:hover { background: #e9ecef; }

.btn_admin { background: #fff; border: 1px solid #e0e0e0; color: #e03131 !important; }
.btn_admin:hover { background: #fff5f5; }

.btn_danger { background: #fff5f5; color: #e03131 !important; border: 1px solid #ffc9c9; }
.btn_danger:hover { background: #ffe3e3; }

.btn_bo_user, .btn_bo_adm {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#gall_allchk {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

/* 카드 그리드 */
.card-grid-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 992px) {
    .card-grid-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .card-grid-list { grid-template-columns: repeat(1, 1fr); }
}

.card-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background: rgba(255,255,255,0.85);
    padding: 4px;
    border-radius: 4px;
}

.card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f8f9fa;
    overflow: hidden;
}

.thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-item:hover .thumb-img {
    transform: scale(1.05);
}

.no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #adb5bd;
    font-size: 13px;
    font-weight: 600;
}

.notice-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #ffec99;
    color: #f08c00;
    font-weight: bold;
    font-size: 18px;
}

/* 리스트 유튜브 플레이 아이콘 */
.yt-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 38px;
    background: rgba(255, 0, 0, 0.85);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.card-item:hover .yt-play-btn {
    background: rgba(255, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 0 7px 13px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 2px;
}

.card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    line-height: 1.4;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-sub {
    font-size: 13px;
    color: #868e96;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.empty_card {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    color: #868e96;
    font-size: 15px;
}

#bo_sch_custom {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    border: none;
    padding: 0;
}

#bo_sch_custom form {
    display: flex;
    gap: 6px;
}

.sch_select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.sch_input {
    padding: 8px 14px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 13px;
    width: 220px;
    outline: none;
}

.sch_input:focus, .sch_select:focus {
    border-color: #111;
}

.sch_btn {
    padding: 8px 16px;
    background: #212529;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}