@charset "utf-8";

@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;
}

.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;
    min-height: 0;
    overflow-y: auto;
    align-items: flex-start;
    align-content: flex-start;
}

/* ── 카세트테이프 리스트 아이템 (3열) ── */

.tape-item {
    width: calc((100% - 30px) / 3);
    flex-shrink: 0;
}

/* 완료·보류 항목: 흑백 처리, hover 시 컬러 복원 */
.tape-item.tape-inactive .list-tape {
    filter: grayscale(100%);
    opacity: 0.75;
    transition: filter 0.35s ease, opacity 0.35s ease;
}
.tape-item.tape-inactive .list-tape:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.list-tape {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 2.5;
    border: 3px solid black;
    border-radius: 10px;
    position: relative;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.list-tape:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.list-tape-top-outline {
    width: 90%;
    height: 65%;
    margin: 4% auto 0;
    clip-path: polygon(12px 0%, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%, 0 12px);
    background: black;
    padding: 2px;
    display: flex;
}

.list-tape-top-inline {
    flex: 1;
    background-color: #fff;
    clip-path: polygon(11px 0%, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%, 0 11px);
    padding: 2px;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
}

.list-tape-title {
    width: 75%;
    height: 22%;
    margin: 6% auto 3%;
    border: 2px solid black;
    background: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.list-tape-title-text {
    font-family: 'BelovedMyoeunttobak';
    font-size: 16px;
    color: #111;
    text-align: center;
    padding: 3px 4px 0px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.list-tape-rollbox {
    width: 60%;
    height: 36%;
    border: 2px solid black;
    border-radius: 30px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 5px 8px;
    background: rgba(255,255,255,0.6);
    box-sizing: border-box;
}

.list-tape-roll {
    width: 20%;
    aspect-ratio: 1 / 1;
    border: 2px solid black;
    border-radius: 100%;
    background-color: white;
    flex-shrink: 0;
}

.list-tape-roll-middle {
    flex: 1;
    height: 100%;
    border: 2px solid black;
    position: relative;
    overflow: hidden;
    margin: 0 6px;
}

.list-tape-middle-left {
    position: absolute;
    width: 90%;
    aspect-ratio: 1 / 1;
    background: #222222;
    border-radius: 100%;
    top: -70%;
    left: -59%;
}

.list-tape-middle-right {
    position: absolute;
    width: 90%;
    aspect-ratio: 1 / 1;
    background: #222222;
    border-radius: 100%;
    top: -70%;
    right: -59%;
}

.list-tape-bottom {
    position: absolute;
    bottom: 0;
    left: 18%;
    width: 64%;
    height: 22%;
    overflow: visible;
}

.list-tape-bottom svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.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;
    /* 기존 bottom: -10px; 에서 값을 대폭 올려 배치 높이를 위로 올립니다 */
    bottom: 30px; 
    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;
}


/* ── 게시물 그리드 ── */

.movie-item {
    width: calc(1120px / 4);
    flex-shrink: 0;
}

.movie-item,
.movie-item * {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.movie-thumb-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 2;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.movie-poster-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(0.7) sepia(30%) hue-rotate(180deg);
    transition: filter 0.4s ease, transform 0.4s ease;

    --c-size: 21px;
    --p-size: 8px;
    --p-gap: 32px;

    -webkit-mask-image:
        linear-gradient(black, black),
        radial-gradient(circle at 50% 0px,   black var(--p-size), transparent calc(var(--p-size) + 0.5px)),
        radial-gradient(circle at 50% 100%,  black var(--p-size), transparent calc(var(--p-size) + 0.5px)),
        radial-gradient(circle at 0    0,    black var(--c-size), transparent calc(var(--c-size) + 0.5px)),
        radial-gradient(circle at 100% 0,    black var(--c-size), transparent calc(var(--c-size) + 0.5px)),
        radial-gradient(circle at 0    100%, black var(--c-size), transparent calc(var(--c-size) + 0.5px)),
        radial-gradient(circle at 100% 100%, black var(--c-size), transparent calc(var(--c-size) + 0.5px));

    -webkit-mask-size:
        100% 100%,
        var(--p-gap) 100%,
        var(--p-gap) 100%,
        100% 100%, 100% 100%, 100% 100%, 100% 100%;

    -webkit-mask-repeat: no-repeat, repeat-x, repeat-x, no-repeat, no-repeat, no-repeat, no-repeat;

    -webkit-mask-position:
        0 0,
        center top,
        center bottom,
        0 0, 0 0, 0 0, 0 0;

    padding: 0 var(--c-size);
    -webkit-mask-clip: border-box, content-box, content-box, border-box, border-box, border-box, border-box;
    -webkit-mask-composite: source-over, destination-out, destination-out, destination-out, destination-out, destination-out, destination-out;
    mask-composite: exclude;
}

.movie-item:hover .movie-poster-img    { filter: grayscale(0%) brightness(1) sepia(0%) hue-rotate(0deg); transform: scale(1.05); }
.movie-item:hover .movie-thumb-container { transform: translateY(-5px); }


/* ── 푸터: 페이지네이션 ── */

.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; }


/* ============================================================
   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-fixed { flex: 0 0 auto; }

/* 폭 유틸 (flex-basis:0 + grow 비율 → 행 내에서 1:1, 1:1:2, 1:3 비율 유지) */
.write-field.wf-quarter { flex: 1 1 0; }   /* 1/4 */
.write-field.wf-half    { flex: 2 1 0; }   /* 1/2 */
.write-field.wf-rest    { flex: 3 1 0; }   /* 예정일(quarter) 옆 나머지 전부 */
.write-field.wf-full    { flex: 1 1 100%; } /* 한 행 전체 */

.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);
}

/* 읍소문 textarea */
.write-field textarea {
    width: 100%;
    min-height: 180px;
    padding: 10px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    background: transparent;
    font-family: 'BelovedMyoeunttobak', var(--content-font-family);
    font-size: 15px;
    line-height: 1.6;
    box-sizing: border-box;
    color: var(--content-font-color);
    outline: none;
    resize: vertical;
}
.write-field textarea:focus {
    border-color: var(--secondary-color);
}
body.dark-mode .write-field textarea {
    color: var(--content-font-color);
}

/* 에디터 영역 */
.write-editor-wrap {
    margin-bottom: 10px;
}

/* 글자 수 */
#editor_char_count_display {
    text-align: center;
    padding: 10px;
    margin: 8px 0 16px;
    border: 1px solid #ddd;
    background: transparent;
    font-size: 13px;
    color: #888;
    border-radius: 5px;
    line-height: 1.6;
}

/* 불러오기 버튼 */
.write-load-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    background: var(--primary-color);
    color: #fff !important;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    height: 30px;
    transition: filter 0.15s;
}
.write-load-btn:hover { filter: brightness(0.88); }

/* 버튼 박스 */
.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-temp {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}
.write-btn:hover { filter: brightness(0.88); }

/* 공지 작성 notice */
.write-notice {
    padding: 8px 12px;
    background: rgba(0,0,0,0.04);
    border-left: 3px solid var(--primary-color);
    font-size: 13px;
    margin-bottom: 14px;
    border-radius: 0 4px 4px 0;
}

/* dark mode */
body.dark-mode .write-field input[type="text"],
body.dark-mode .write-field input[type="password"],
body.dark-mode .write-field select {
    color: #e3e3e2;
}
body.dark-mode #editor_char_count_display {
    border-color: #2a3a60;
    color: #aaa;
}

/* 갤러리 이미지 첨부 */
.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;
}

/* 블라인드 */
/* 각 게시물 아이템 컨테이너 */
/* ============================================================
   list.skin — 티켓 카드 (앞면/뒷면 flip)
   ============================================================ */

/* .list-item = 티켓(=flip) 컨테이너 — 3열 */
.list-item {
    width: calc((100% - 30px) / 3);
    height: 160px;
    position: relative;
    background: transparent;
    overflow: visible;
    perspective: 1200px;
    cursor: pointer;
}

.ticket-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(.4,.15,.2,1);
    transform-style: preserve-3d;
}
.list-item.flipped .ticket-inner { transform: rotateY(180deg); }

/* 티켓 면 — 좌우 가장자리에 반원 펀칭 반복 (우표 가장자리 느낌) */
.ticket-face {
    /* 펀칭 반지름과 세로 간격: 값만 바꾸면 펀칭 크기/촘촘함 조절됨 */
    --punch-r: 6px;
    --punch-period: 20px;

    position: absolute;
    inset: 0;
    box-sizing: border-box;
    padding: 16px 26px;
    background: color-mix(in srgb, var(--secondary-color), #ffffff);
    color: var(--content-font-color);
    font-family: var(--content-font-family);
    display: flex;
    flex-direction: column;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
    box-shadow: 0 2px 7px rgba(0,0,0,0.07);
    -webkit-mask:
        radial-gradient(circle var(--punch-r) at left  center, transparent var(--punch-r), #000 calc(var(--punch-r) + 0.5px)),
        radial-gradient(circle var(--punch-r) at right center, transparent var(--punch-r), #000 calc(var(--punch-r) + 0.5px));
    -webkit-mask-size: 100% var(--punch-period);
    -webkit-mask-repeat: repeat-y;
    -webkit-mask-composite: source-in;
            mask:
        radial-gradient(circle var(--punch-r) at left  center, transparent var(--punch-r), #000 calc(var(--punch-r) + 0.5px)),
        radial-gradient(circle var(--punch-r) at right center, transparent var(--punch-r), #000 calc(var(--punch-r) + 0.5px));
            mask-size: 100% var(--punch-period);
            mask-repeat: repeat-y;
            mask-composite: intersect;
}
.list-item:hover .ticket-face { box-shadow: 0 6px 16px rgba(0,0,0,0.16); }

.ticket-back { transform: rotateY(180deg); }

/* ── 앞면 내용 ── */
.tk-head { flex-shrink: 0; }
.tk-title {
    font-weight: bold;
    font-size: 20px;
    line-height: 1.25;
    color: var(--primary-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tk-coll {
    margin-top: 3px;
    font-size: 14px;
    color: var(--content-font-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tk-divider {
    border-top: 1.5px dashed var(--primary-color);
    margin: 14px 0;
    flex-shrink: 0;
}
.tk-meta { display: flex; flex-direction: column; gap: 8px; }
.tk-row { display: flex; gap: 12px; }
.tk-field {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tk-label { font-weight: bold; color: var(--primary-color); }

.tk-flip-hint {
    position: absolute;
    right: 12px;
    bottom: 10px;
    color: var(--primary-color);
    opacity: 0.3;
    font-size: 12px;
    transition: opacity 0.2s;
}
.list-item:hover .tk-flip-hint { opacity: 0.6; }

/* '다녀왔어요' 도장 — 우측 하단 모서리에 작게 겹쳐 찍힘 (전역 img 규칙을 이기도록 강제) */
.tk-stamp {
    position: absolute;
    right: -5px;
    bottom: -10px;
    width: 70px !important;
    height: auto !important;
    max-width: none !important;
    z-index: 4;
    pointer-events: none;
    opacity: 0.85;
    mix-blend-mode: multiply;
    transform-origin: center;
    user-select: none;
}

/* ── 뒷면 내용 ── */
.tk-back-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.55;
    color: var(--content-font-color);
    word-break: break-word;
    padding-top: 10px;
}
.tk-back-body img,
.tk-back-body iframe { max-width: 100%; height: auto; }
.tk-back-body p { margin: 0 0 6px; }

/* 뒷면 우측 상단 수정/삭제 */
.tk-admin {
    position: absolute;
    top: 8px;
    right: 22px;
    z-index: 3;
    display: flex;
    gap: 4px;
    background-color: transparent !important;
}
.tk-admin a {
    color: var(--primary-color);
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
    padding: 2px;
}
.tk-admin .tk-edit:hover { color: var(--secondary-color); }
.tk-admin .tk-del:hover  { color: #d9534f; }

.tk-link {
    flex-shrink: 0;
    margin-top: 8px;
    align-self: flex-start;
    font-size: 13px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}
.tk-link:hover { text-decoration: underline; }

.empty_list {
    width: 100%;
    text-align: center;
    color: var(--primary-color);
    padding: 40px 0;
    font-family: var(--content-font-family);
}

/* ============================================================
   list.skin — 팝업
   ============================================================ */

/* ── 팝업 오버레이 ── */
#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;
}
