@charset "utf-8";


/* ============================================================
   FONTS & GLOBAL
   ============================================================ */

@font-face {
    font-family: 'BelovedMyoeunttobak';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-1@1.0/Griun_Myoeunddobak-Rg.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BookkMyungjo';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2302@1.0/BookkMyungjo-Lt.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');


/* ============================================================
   LIST SKIN  (갤러리 · 검색 · 팝업)
   ============================================================ */

#bo_list {
    width: 1170px;
    height: 800px;
    position: absolute;
    top: calc(50% - 400px);
    left: calc(50% - 420px);
    padding: 10px;
}

.list-layout {
    width: 100%;
    height: 800px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;   /* #bo_sch(데스크탑 absolute)의 기준 컨테이너 */
}

.list-header {
    width: 100%;
    height: 170px;
    position: relative;
}

.list-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 15px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 10px;
    padding-top: 30px;
    flex: 1;
    align-items: flex-start;
    align-content: flex-start;
}

.list-footer {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
}

/* ── 헤더: 버튼 그룹 ── */
.star-button-group {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    flex-direction: row;
    gap: 25px;
    z-index: 99;
}

.star-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.star-shape {
    width: 30px;
    height: 40px;
    background-color: var(--primary-color);
    clip-path: polygon(
        50% 0%,
        62% 35%, 100% 50%, 62% 65%,
        50% 100%,
        38% 65%, 0% 50%, 38% 35%
    );
    transition: background-color 0.3s ease;
}

.star-text {
    font-family: 'NexonLv1Gothic';
    font-size: 9px;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 6px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.star-btn:hover .star-shape { background-color: var(--secondary-color); }

.star-btn:hover .star-text  { color: var(--secondary-color); }

.star-btn:active             { transform: translateY(1px); }

.star-btn.disabled           { cursor: not-allowed; pointer-events: none; }

/* ── 헤더: 타이틀 ── */
.title-main {
    font-family: 'PuradakGentleGothic';
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.title-sub {
    font-family: var(--content-font-family);
    font-size: 14px;
    color: var(--content-font-color);
    line-height: 1.4;
    margin-bottom: 20px;
    padding-top: 3px;
}

/* ── 헤더: 검색창 ── */
#bo_sch {
    position: absolute;
    /* 마크업상 footer 뒤로 이동했지만, 데스크탑에선 헤더 우하단에 그대로 보이도록
       list-layout 기준으로 재고정: top = 헤더(170) - 하단여백(30) - 검색창높이(32) */
    top: 108px;
    right: 20px;
    border: 0;
    padding: 0;
    margin: 0;
    z-index: 10;
}

#bo_sch form {
    margin: 0 !important;
    display: block !important;
}

/* 1. 전체 테두리 박스 크기 및 내부 여백 조절 */
.search-box-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: space-between; /* 내부 요소를 양 끝으로 밀착 */
    width: 250px; /* 전체 검색창 박스의 직관적인 너비 설정 */
    height: 32px;
    border: 1.5px solid var(--primary-color); /* 캐릭터 리본색 라인 테두리 */
    border-radius: 8px; /* image_cec826 느낌의 부드러운 라운딩으로 조율 */
    background-color: #fff;
    padding: 0 10px; /* 좌우 여백을 줄여 버튼이 테두리와 가까워지게 설정 */
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.search-box-wrapper:hover,
.search-box-wrapper:focus-within {
    border-color: var(--primary-color);
}

/* 2. 글자 입력창 너비 최적화 */
.search-box-wrapper .sch_input {
    flex: 1 !important; /* 남은 공간을 꽉 채우되 */
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    padding: 0 8px 0 2px !important; /* 오른쪽에 마진을 살짝 주어 글자가 버튼과 겹치지 않게 방지 */
    margin: 0 !important;
    font-family: var(--content-font-family);
    font-size: 12px;
    color: var(--primary-color);
    outline: none !important;
}

.search-box-wrapper .sch_input::placeholder {
    color: var(--secondary-color);
    font-size: 13px;
}

/* 3. 돋보기 버튼을 우측 끝 테두리 안쪽으로 밀착 */
.search-box-wrapper .sch_btn {
    flex-shrink: 0; /* 크기가 압축되지 않도록 고정 */
    width: 24px; /* 아이콘 크기에 맞는 슬림한 너비 */
    height: 100%;
    border: none !important;
    background: transparent !important;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    transition: color 0.2s ease;
}

.search-box-wrapper .sch_btn:hover {
    color: var(--primary-color);
}

.search-box-wrapper .sch_btn i {
    font-size: 13px;
}

/* ── 푸터: 페이지네이션 ── */
.pg_wrap_box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
}

.pg_group { display: flex; gap: 15px; }

.pg_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.pg_btn:hover { opacity: 0.7; }

.triangle      { width: 0; height: 0; display: inline-block; }

.triangle.left  { border-right: 10px solid var(--primary-color); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }

.triangle.right { border-left:  10px solid var(--primary-color); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }

.bar { width: 2px; height: 14px; background-color: var(--primary-color); display: inline-block; }

.pg_btn.first .bar { margin-right: 2px; }

.pg_btn.last  .bar { margin-left:  2px; }

/* 블라인드 */
/* 각 게시물 아이템 컨테이너 */
.list-item {
    width: 125px;
    height: 125px;
    position: relative;
    overflow: hidden;
    background: #eee;
}

.list-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.list-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.list-item.is-blind img {
    filter: blur(12px);
    transform: scale(1.1);
}

.blind-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* ── 팝업 오버레이 ── */
#img-popup-overlay {
    display: none;
}

#popup-secret-form,
#popup-image-view {
    display: none;
}

#popup-blind-cover {
    display: none;
}

/* 출처 표시 */
#popup-source {
    font-size: 12px;
    color: #bbb;
    text-align: right;
    padding-right: 4px;
    letter-spacing: 0.02em;
}


/* ============================================================
   WRITE SKIN
   ============================================================ */

#bo_w {
    width: 1170px;
    height: 800px;
    position: absolute;
    top: calc(50% - 400px);
    left: calc(50% - 420px);
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#bo_w::-webkit-scrollbar { display: none; }

.board-write.theme-box {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 행 */
.write-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-end;
}

/* 필드 */
.write-field {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.write-field-grow { flex: 2; }

.write-field label {
    display: block;
    font-family: 'BookkMyungjo', serif;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 13px;
}

.write-field input[type="text"],
.write-field input[type="password"],
.write-field select {
    width: 100%;
    padding: 4px 2px;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    border-radius: 0;
    background: transparent;
    font-family: 'BelovedMyoeunttobak', var(--content-font-family);
    font-size: 15px;
    box-sizing: border-box;
    color: var(--content-font-color);
    outline: none;
}

.write-field input[type="text"]:focus,
.write-field input[type="password"]:focus,
.write-field select:focus {
    border-bottom-color: var(--secondary-color);
}

/* 버튼 박스 */
.write-btn-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0 10px;
}

.write-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: filter 0.15s;
}

.write-btn-submit {
    background: var(--primary-color);
    color: #fff;
}

.write-btn-cancel {
    background: #888;
    color: #fff;
}

.write-btn:hover { filter: brightness(0.88); }

/* 갤러리 이미지 첨부 */
.write-field-full { flex: 0 0 100%; }

.gall-file-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 2px solid var(--primary-color);
}

.gall-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gall-file-item input[type="file"] {
    font-family: 'BelovedMyoeunttobak', var(--content-font-family);
    font-size: 13px;
    color: var(--content-font-color);
}

.gall-file-current {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ============================================================
   MOBILE / 반응형 (모바일 최적화)
   ============================================================ */

/* 중간 데스크탑: width·위치 축소 */
@media screen and (min-width: 1100px) and (max-width: 1500px) {
    #bo_list {
        width: 860px;
        height: 700px;
        position: absolute;
        top: calc(50% - 350px);
        left: calc(50% - 310px);
    }

    .list-content {
    gap: 10px;
}

    .star-button-group {
        top: 0px;
    }
}

/* 모바일: 폭 100%, 헤더 버튼 숨김, 검색창 하단 중앙 */
@media screen and (max-width: 1099px) {
    #bo_list {
        width: 100%;
        height: auto;
        position: absolute;
        top: 10px;
        left: 0px;
        padding: 30px;
    }

    /* 고정 높이 해제(갤러리는 space-between이라 콘텐츠가 흩어지지 않도록) */
    .list-layout {
        height: auto;
    }

    .list-header {
        height: auto;
    }

    /* 헤더 버튼 그룹 숨김 */
    .star-button-group {
        display: none;
    }

    /* 검색창: absolute 해제 → 페이지네이션 아래 중앙 */
    #bo_sch {
        position: static;
        width: 100%;
        margin: 15px 0 0;
        padding: 0;
        border: 0;
        display: flex;
        justify-content: center;
        z-index: auto;
    }

    #bo_sch form {
        width: 100%;
        max-width: 400px;
    }

    .search-box-wrapper {
        width: 100%;
    }
}
