@charset "utf-8";
@import url('style.css');


/* 요소 */
input[type="text"] {
    width: 200px;
}

.pg_wrap .pg_end:before {
    font-family: 'NanumSquare';
    font-size: 12px !important;
}

.cha-ui-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3px;
}

.cha-ui-btn .ui-btn {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 카테고리 */
nav.cha-board-category {
    display: flex;
    gap: 3px;
    margin-bottom: 3px;
}

.cate-btn {
    display: block;
    border-radius: 10px;
    background: var(--gray-700);
    color: var(--content-font-color);
    border: 1px inset var(--gray-700);
    min-width: 30px;
    max-width: 80px;
    padding: 5px;
    text-align: center;
    font-size: 12px;
    font-family: 'NanumSquare';
}

.cate-btn:hover {
    background: var(--gray-500);
    color: var(--content-font-color);
    border: 1px inset var(--gray-700);
    min-width: 30px;
    max-width: 80px;
    padding: 5px;
    text-align: center;
    font-size: 12px;
    font-family: 'NanumSquare';
}

/* 리스트 시작 */
.cha-guide {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.cha-board-skin {
    padding: 30px 0px;
}

/* 기존 flex 코드를 주석처리하고 grid로 변경 */
.list_row {
    display: grid;
    grid-template-columns: repeat(var(--desktop-cols), 1fr);
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cha_card {
    position: relative;
    overflow: hidden;
    border: 2px groove var(--black);
    border-radius: 15px;
    padding: 5px;
    filter: brightness(0.7) drop-shadow(1px 3px 2px rgb(from var(--black) r g b / 30%));
}

.cha_card:hover {
	filter: brightness(1) drop-shadow(1px 3px 3px rgb(from var(--black) r g b / 50%));
}
	
/* 편집 모드일 때 카드에 점선 테두리와 배경색 변경 */
.cha_list.editing li.cha_card {
    border: 2px dotted var(--warning-color);
    filter: contrast(0.7) drop-shadow(1px 3px 0px rgb(from var(--black) r g b / 70%));
    transition: background-color 0.3s, border 0.3s;
}

.cha_list_controls {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    gap: 3px;
}

#edit-order-btn, .thumbnails-btn {
    border-radius: 5px;
    background: var(--error-color);
    color: var(--content-font-color);
    font-size: 12px;
    font-family: 'NanumSquare';
    border: 2px groove var(--error-color);
    padding: 0px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#edit-order-btn:hover, .thumbnails-btn:hover {
    transform: scale(1.02);
}

/* 편집 모드일 때 편집 버튼 강조 */
#edit-order-btn.editing {
    background-color: var(--warning-color);
    color: var(--white);
}

a.card_link {
    position: fixed;
    left: 0;
    bottom: 0;
    cursor: pointer;
}

.list_box img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: relative;
    bottom: 0;
}

.ov-one-liner {
    position: absolute;
    white-space: nowrap;
    text-overflow: ellipsis;
    top: 15%;
    left: 70%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 70px;
    font-weight: bold;
    color: var(--gray-800);
    z-index: -10;
    pointer-events: none;
    font-family: 'HakgyoansimByeolbichhaneulTTF-B';
}

.info_overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    background: linear-gradient(0deg, var(--black) 25%, rgb(from var(--white) r g b / 0%) 100%);
    color: var(--white);
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.ov-cname {
    font-family: "Playfair Display", serif;
    font-size: 25px;
    text-align: center;
    line-height: 80%;
	text-shadow: 0 0 5px var(--black), 0 0 15px var(--gray-700), 0 0 35px var(--gray-500), 0 0 40px var(--gray-500);
}

/* 한자, 일본어 */
.ov-cname.cjk-ja {
    font-family: "Zen Antique", serif;
}

/* 중국어 */
.ov-cname.cjk-zh {
    font-family: "Noto Serif SC", serif;
}

.ov-kname {
    margin: 5px 0px;
    font-weight: 400;
    letter-spacing: 2px;
    text-align: center;
    font-size: 11px;
    font-family: 'NanumSquare';
}

#thumbnail-progress-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gray-700);
    color: var(--content-font-color);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgb(from var(--black) r g b / 20%);
    z-index: 9999;
    width: 300px;
    text-align: center;
        font-family: 'NanumSquare';
}

#thumbnail-progress-bar {
    height: 20px;
    background: var(--gray-800);
    border-radius: 10px;
    margin: 10px 0;
}

#thumbnail-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--success-color);
    border-radius: 10px;
    transition: width 0.3s;
}

#thumbnail-status-text {
    margin-top: 10px;
    font-size: 14px;
    font-family: 'NanumSquare';
}

@media (max-width: 768px) {
    .list_row {
        grid-template-columns: repeat(var(--mobile-cols), 1fr);
        gap: 6px;
    }
    
    .cha_list_controls {
        display: none;
    }
}