@charset "utf-8";
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
@import url('color.css');

* { font-family: 'Pretendard', sans-serif; }

.form-input, input[type="text"], input[type="pass"], input[type="file"], input[type="url"], textarea {
	font-family: 'Pretendard', sans-serif !important; box-sizing: border-box !important; padding: 5px !important; width: 100%; font-size: 10px !important;
}
textarea { min-height: 40px !important; }
.load-list-option { display: flex; gap: 15px; }
.upload-btn {
	font-family: 'Pretendard', sans-serif; font-size: 15px; width: 100px; height: 30px; text-shadow: 0 0 BLACK; border: 2px inset var(--color-3); border-radius: 10px; background: var(--color-4); color: white; line-height: 28px; margin: 5px 0px;
}
.dropzone.dragover { border-color: #00aaff; background-color: #f0faff; }
.dropzone { display: flex; height: 150px; border-radius: 15px; border: 2px dashed var(--color-9); margin-bottom: 10px; flex-direction: column; align-items: center; }

.link_hash_tag { display: inline-block; margin: 3px 0px; padding: 1px 6px; font-size: 0.9em; color: var(--color-e); background: var(--color-p); border: 1px solid var(--color-pd); border-radius: 9px; text-decoration: none; box-shadow: 0 2px 2px rgba(0, 0, 0, 1); transition: background 0.3s ease, box-shadow 0.3s ease; }
.link_hash_tag:hover { background: var(--color-pl); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3); }

strong.pg_current.pg_page { background: var(--color-bg); border: 1px solid var(--color-d); border-radius: 8px; font-family: 'Pretendard', sans-serif; color: var(--color-e); }
strong.pg_current.pg_page:hover { background: var(--color-4); border-color: var(--color-d); color: var(--color-d); }

/* 리스트 컨테이너 */
.item { background-color: var(--color-3) !important; color: var(--color-e) !important; border-radius: 20px; }
#log_list { height: auto !important; overflow: visible !important; margin-top: 30px; }
.log-images { text-align: center; }

.secret-container { text-align: center; border: 1px solid var(--color-d); border-radius: 10px; padding: 30px; background-color: var(--color-bg); font-family: 'Pretendard', sans-serif; width: 100%; max-width: 1200px; margin: 0 auto; margin-bottom: 10px; display: flex; flex-direction: column; gap: 10px; color: var(--color-e); box-sizing: border-box; }
.secret-container input, .secret-comment-form input { padding: 8px; margin-right: 5px; border: 1px solid var(--color-c); cursor: text; }
.secret-comment-form { text-align: center; border-radius: 10px; border: 1px solid var(--color-4); padding: 30px; background-color: var(--color-3); font-family: 'Pretendard', sans-serif; margin-bottom: 10px; display: flex; flex-direction: column; gap: 10px; color: var(--color-e); margin: 15px 10px 18px; }
.secret-container button, .secret-comment-form button { cursor: pointer; margin-top: 10px; background: var(--color-4); color: var(--color-e); border-radius: 10px; border: none !important; padding: 6px 15px; margin-left: 3px; }
.secret-container button:hover, .secret-comment-form button:hover { background: var(--color-5); }

.secret-container, .main-container { transition: opacity 0.1s ease-in-out; }
.secret-comment-form, .comment-item { transition: opacity 0.1s ease-in-out; }

.main-container { font-family: 'Pretendard', sans-serif; display: flex; flex-direction: row; justify-content: space-between; width: 100%; max-width: 1200px; margin: 0 auto; border: 1px solid var(--color-d); border-radius: 10px; padding: 30px; background-color: var(--color-bg); box-shadow: 0 2px 10px rgba(0,0,0,0.2); margin-bottom: 10px; box-sizing: border-box; }
.content-wrapper { width: 65%; display: flex; flex-direction: column; padding-right: 20px; }
.comment-wrapper { width: 35%; flex: 1; }

.user-info-container { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 20px; }
.user-info { display: flex; align-items: center; gap: 8px; flex: 1; }
.user-details { display: flex; flex-direction: row; gap: 3px; }
.nick { font-weight: bold; font-size: 12px; color: var(--color-e); }
.id { font-size: 10px; color: var(--color-9); }

.like_area { display: flex; align-items: center; gap: 5px; justify-content: flex-end; flex: 1; }
.like_number { border: ridge; border-color: rgb(86 86 86); border-radius: 6px; padding: 3px 13px; color: var(--color-e); background: linear-gradient(40deg, rgba(110, 110, 110, 1) 8%, rgba(90, 90, 90, 1) 100%); }
.like_btn { display: flex; align-items: center; font-size: 20px; color: var(--color-p); cursor: pointer; transition: transform 0.2s ease; }
.like_btn:active, .like_btn.active { transform: scale(1.2); color: var(--color-pd); }
@keyframes pop { 0% { transform: scale(1); } 20% { transform: scale(1.3); } 70% { transform: scale(1); } }
.like_btn.active { animation: pop 0.3s; }

.c-btn { display: flex; }
.toggle-comment-plip { flex: 1; background: var(--color-2); color: var(--color-e); border-radius: 5px; border: none; padding: 3px 5px; margin-top: 10px; }

/* 본문 덮어버리던 OPEN/CLOSE 제한 완전히 해제 */
.post-content { max-height: none !important; display: block !important; -webkit-line-clamp: unset !important; }
.post-toggle-btn { display: none !important; }

.post-edit, .post-delete { color: var(--color-acc); font-weight: bold; cursor: pointer; text-decoration: none; }
.post-edit:hover, .post-delete:hover { text-decoration: underline; }
.post-number { position: relative; font-size: 15px; font-family: 'Pretendard', sans-serif; font-weight: bold; font-style: italic; line-height: 14px; width: 25px; height: 15px; text-align: center; border-radius: 5px; padding: 6px 4px 2px 2px; background: rgba(210 210 210); top: 0px; margin-left: 10px; color: var(--color-bg); }
.post-number::before { border-right-color: rgb(210 210 210) !important; content: ''; position: absolute; left: 47px; bottom: 10px; width: 0; height: 0; border: 10px solid transparent; border-left: 0; border-bottom: 0; margin-top: -7.5px; margin-left: -53px; transform: rotate(31deg); }

/* 본문 반응형 및 전체 화살표 접기 스타일 */
.loadboard_content { text-align: center; line-height: 1.7; letter-spacing: -0.3px; color: var(--color-d); font-size: 11px; min-height: 50px; padding-bottom: 30px; margin: 0 auto; }

/* 본문 컨텐츠(이미지 포함) 1.5배 접기 로직 (600px 적용) */
.folded-post-custom { max-height: 600px; overflow: hidden; position: relative; }
.folded-post-custom::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(to bottom, transparent, var(--color-bg)); pointer-events: none; }
.post-expand-btn { font-size: 16px; color: var(--color-9); cursor: pointer; text-align: center; padding: 10px 0; transition: color 0.2s ease; margin-top:-10px; z-index: 11; position:relative;}
.post-expand-btn:hover { color: var(--color-acc); }

.comment-toggle { display: block; text-align: right; padding-right: 10px; cursor: pointer; color: var(--color-acc); font-weight: bold; }
.item-comment-box { display: flex; flex-direction: column; }

/* 전체 댓글 영역 2.2배 통째로 묶어서 접기 전용 스타일 (770px 적용) */
.folded-comment-box { max-height: 770px; overflow: hidden; position: relative; }
.folded-comment-box::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px; background: linear-gradient(to bottom, transparent, var(--color-bg)); pointer-events: none; }
.comment-expand-btn { font-size: 16px; color: var(--color-9); cursor: pointer; text-align: center; margin-top: 10px; transition: color 0.2s ease; z-index: 11; position:relative; }
.comment-expand-btn:hover { color: var(--color-acc); }

.item-comment-form-box { display: none; padding: 10px; background: var(--color-3); border-radius: 5px; margin-top: 10px; }
.comment_input_area { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.comment_textarea { width: 100%; max-width: 500px; min-height: 40px; padding: 8px; border-radius: 5px; border: 1px solid var(--color-d); background: var(--color-bg); color: var(--color-e); font-size: 14px; resize: none; }
.comment_submit { min-width: 80px; padding: 8px 12px; border: none; border-radius: 5px; background: var(--color-acc); color: white; cursor: pointer; font-weight: bold; }

.modify_textarea { width: 100%; max-width: 500px; min-height: 40px; resize: none; overflow-y: hidden; padding: 8px; border-radius: 5px; border: 1px solid var(--color-d); background: var(--color-bg); color: var(--color-e); font-size: 14px; line-height: 1.5; }
.modify_textarea:focus { outline: none; }
.mod_comment { min-width: 80px; padding: 8px 12px; border: none; border-radius: 5px; background: var(--color-acc); color: white; cursor: pointer; font-weight: bold; text-align: center; flex-shrink: 0; }
.mod_comment:hover { background: rgb(200, 170, 100); }

.post-actions { display: flex; font-size: 10px; align-items: center; justify-content: space-between; border: dotted; border-color: rgba(112, 112, 112, 1); border-width: 0px 0px 2px 0px; padding: 0px 0px 10px 0px; }
.post-actions a { background: var(--color-4); color: var(--color-e); border-radius: 10px; border: none !important; padding: 6px 10px; margin-left: 3px; height: 100%; }
.post-actions a:hover { font-weight: bold; }
.main-container a.ui-btn { line-height: 13px; }

/* 댓글 스타일 지정 */
.comment-item { position: relative; padding: 10px 10px 12px 7px; margin-bottom: 8px; align-self: flex-start; border-radius: 20px; min-width: 200px; box-sizing: border-box;}
.comment-item.owner:not(.guest) { position: relative; background-color: var(--color-3) !important; color: var(--color-e) !important; }
.comment-item.owner::before { border-right-color: var(--color-3) !important; content: ''; position: absolute; left: 0; bottom: 20px; width: 0; height: 0; border: 15px solid transparent; border-left: 0; border-bottom: 0; margin-top: -7.5px; margin-left: -12px; }
.comment-item.guest { background: var(--color-e) !important; align-self: flex-end !important; color: var(--color-3) !important; }
.comment-item.guest::before { border-left-color: var(--color-e) !important; content: ''; position: absolute; right: -10px; bottom: 20px; width: 0; height: 0; border: 15px solid transparent; border-right: 0; border-bottom: 0; margin-top: -7.5px; margin-left: -12px; }

/* 댓글 헤더, 닉네임, 날짜 원래 간격 */
.comment-header { display: flex; justify-content: space-between; align-items: center; padding: 5px; }
.profile-pic, .comment-profile { display: flex; align-items: center; gap: 8px; }
.profile-pic-img, .comment-profile-img { width: 25px; height: 25px; border-radius: 50%; object-fit: cover; border: 1px solid var(--color-d); color: var(--color-d); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.fa-user { font-size: 15px; }
.comment-username { font-weight: bold; font-size: 14px; }
.comment-date { font-size: 12px; color: var(--color-a); }

.comment-body { font-size: 12px; line-height: 1.5; margin-bottom: 8px; padding: 10px; word-break: break-word; }
.comment-con { display: flex; flex-direction: column; gap: 5px; }
.dice img { margin-bottom: 3px; }
.comment-footer { display: flex; justify-content: flex-end; gap: 10px; font-size: 12px; padding: 0px 8px 0px; }
.comment-footer a { color: var(--color-acc); text-decoration: none; cursor: pointer; }
.comment-footer a:hover { text-decoration: underline; }

.blind-wrapper { position: relative; width: 100%; background: black; color: transparent; overflow: hidden; }
.blind-content { position: relative; width: 100%; height: 100%; text-align: center; padding: 20px; }
.blind-content .content-hidden { display: none; }
.blind-toggle-btn { font-family: 'Pretendard', sans-serif; background: rgba(255, 0, 0, 0.8); color: white; padding: 2px 50px; border-radius: 5px; font-size: 11px; font-weight: bold; cursor: pointer; z-index: 10; transition: background 0.3s; }
.blind-toggle-btn:hover { background: rgba(255, 0, 0, 1); }
.blind-wrapper.blind-clear { background: none; color: inherit; }
.blind-wrapper.blind-clear .blind-toggle-btn { display: none; }
.blind-wrapper.blind-clear .blind-content .content-hidden { display: block; }
.spoiler-content { position: relative; filter: blur(5px); transition: filter 0.3s ease; cursor: pointer; }
.spoiler-content::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; background: rgba(0, 0, 0, 0.3); }
.spoiler-content.clear { filter: none; }
.spoiler-content.clear::after { display: none; }

.input-comment { margin-bottom: 10px; }
.form-group { margin-bottom: 10px; }
.form-group label { font-weight: normal !important; }
.item-comment-form-box { color: var(--color-e); }
.media-options { cursor: pointer; }
.input-group { display: flex; flex-direction: column; gap: 10px; }
.input-group-v { display: flex; gap: 3px !important; align-items: center; }
.input-group-v label { background: black; color: var(--color-e); padding: 3px 8px; border-radius: 10px; }
button#upload-btn { font-family: 'Pretendard', sans-serif; font-size: 10px; margin: 5px; padding: 3px 6px; }
.file-input-row, .link-input-row { display: flex; align-items: center; gap: 10px; }
.file-input-row input, .link-input-row input { flex: 1; }
.reply-form { display: none; }
.reply-form.active { display: block; }

.type_select { display: flex; gap: 10px; justify-content: flex-start; flex-direction: row; align-items: flex-start; }
.theme-box { display: block; position: relative; padding: 10px; box-sizing: border-box; font-family: 'Pretendard', sans-serif; }
.theme-box .form-group { display: flex; margin-bottom: 10px; height: 20px; align-items: center; }
.theme-box .form-group label.option-label { margin-right: 10px; font-size: 15px; font-weight: bold !important; }

.preview-container { flex: 1; }
.preview-img { object-fit: cover; height: 70px; width: 100%; }
.preview-item .file-remove-btn { color: var(--color-p); font-weight: 600; font-size: 12px; position: relative; z-index: 10; background: rgba(0, 0, 0, 0.9); width: 20px; height: 20px; border: 0; }
.write-form-container { display: flex; padding: 15px; flex-direction: column; gap: 10px; }
.write-form-container .comments { height: 50vh; }	
#custom_textarea { height: 100% !important; }

.modal { display: none; position: fixed; z-index: 100000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); align-items: center; justify-content: center; }
.modal-content { max-width: 80%; max-height: 80%; border-radius: 10px; }
.close { position: absolute; top: 15px; right: 25px; color: white; font-size: 30px; font-weight: bold; cursor: pointer; }
.prev, .next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 30px; color: white; cursor: pointer; padding: 10px; background: rgba(0, 0, 0, 0.5); border-radius: 5px; user-select: none; }
.prev { left: 20px; }
.next { right: 20px; }
.prev:hover, .next:hover { background: rgba(0, 0, 0, 0.8); }

.load-guide { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-direction: row; flex-wrap: wrap; }
.load-guide-button { display: flex; align-items: center; gap: 3px; }
.load-button.ui { font-family: 'Pretendard', sans-serif; font-size: 13px; width: 20px; height: 20px; border: 1px inset var(--color-d); border-radius: 15px; background: var(--color-3); color: var(--color-d); line-height: 22px; padding: 2px 5px; text-align: center; }
.load-button.ui:hover { background: var(--color-d); color: var(--color-bg); }
.load-button.ui.sch { height: 25px; width: 40px; background: var(--color-bg); }
.load-button.ui.sch:hover { background: var(--color-d); color: var(--color-bg); }
.searc-sub-box { padding: 0 !important; margin: 0 !important; }
.ui-search-box select, .ui-search-box input[type="text"] { border-radius: 15px; background: var(--color-bg); color: var(--color-d); }

@media (max-width: 800px) {
	.load_log_board.mobile { max-width: 550px; }
    .main-container { flex-direction: column; }
    .content-wrapper { width: 100%; padding-right: 0; }
    .comment-wrapper { width: 100%; margin-top: 20px; }
}

/* ==============================================================
   ★ 1. 카테고리(Pills) 및 뷰 전환 탭 상단 헤더 스타일
============================================================== */
.board-header-wrap { display: flex; justify-content: space-between; align-items: center; margin: 15px 0 25px 0; position: relative; flex-wrap: wrap; gap: 15px; border-bottom: 2px dashed var(--color-c); padding-bottom: 10px; }
.category-pills { display: flex; gap: 8px; justify-content: center; flex: 1; flex-wrap: wrap; }
.category-pills a { display: inline-block; padding: 6px 16px; border-radius: 20px; background-color: #000; color: #fff; text-decoration: none; font-size: 13px; transition: all 0.2s ease; }
.category-pills a:hover { background-color: var(--color-5); }
.category-pills a.active { background-color: var(--color-bg); color: var(--color-9); border: 1px solid var(--color-c); padding: 5px 15px; }

.board-view-tabs { display: flex; justify-content: flex-end; gap: 10px; margin: 0 !important; padding: 0 !important; border: none !important; }
.board-view-tabs a { text-decoration: none; color: var(--color-9); width: 36px; height: 36px; border-radius: 50%; background-color: var(--color-bg); border: 1px solid var(--color-c); font-size: 16px; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.board-view-tabs a:hover { color: var(--color-3); border-color: var(--color-9); background-color: rgba(0,0,0,0.03); }
.board-view-tabs a.active { color: var(--color-bg); background-color: var(--color-d); border-color: var(--color-d); }

/* ==============================================================
   ★ 2. 갤러리 뷰 그리드 스타일 (배경 이미지 1:1 강제 크롭 방식으로 업그레이드)
============================================================== */
.mmb-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; padding: 0; margin: 30px 0; list-style: none; }
.mmb-gallery-grid .grid-item { background-color: var(--color-3); border: 1px solid var(--color-d); border-radius: 15px; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.mmb-gallery-grid .grid-item:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.mmb-gallery-grid a { display: block; width: 100%; height: 100%; }

/* ★ <img> 태그와 CSS 충돌을 완벽히 방지하기 위해 background-size: cover 방식 적용 */
.mmb-gallery-grid .thumb-wrap { 
    width: 100%; 
    aspect-ratio: 1 / 1; 
    background-color: var(--color-bg); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    transition: transform 0.3s ease; 
}
.mmb-gallery-grid .grid-item:hover .thumb-wrap { transform: scale(1.05); }

@media (max-width: 800px) { .mmb-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; } }

/* ==============================================================
   ★ 3. 갤러리 클릭 시 모달 (Popup Overlay) 스타일
============================================================== */
#gallery-modals { position: relative; }
.gallery-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 99999; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.gallery-modal-overlay.active { display: flex; }
.gallery-modal-wrap { position: relative; width: 95%; max-width: 1100px; max-height: 90vh; overflow-y: auto; background: transparent; }
.gallery-modal-wrap .main-container { margin: 0 auto; max-width: 100%; }
.gallery-modal-close { position: absolute; top: -35px; right: 0; font-size: 30px; color: white; cursor: pointer; z-index: 999999; width: 30px; height: 30px; text-align: center; }

@media (max-width: 1200px) { .gallery-modal-close { top: 10px; right: 10px; color: var(--color-d); } }

/* ==============================================================
   ★ 4. Swiper 이미지 슬라이더 전용 스타일 (본문 이미지 확장)
============================================================== */
.swiper { width: 100%; border-radius: 10px; overflow: hidden; margin-bottom: 10px; position: relative; }
.swiper-wrapper { display: flex; }
.swiper-slide { width: 100% !important; flex-shrink: 0; display: block; background: transparent; }

/* 본문 이미지 세로 자름 해제(height:auto), 가로 100% 확장 */
.swiper-slide img { 
    width: 100%; 
    height: auto; 
    max-height: none; 
    object-fit: contain; 
    border-radius: 8px; 
    cursor: zoom-in; 
    background-color: transparent;
    display: block;
}

.swiper-pagination-bullet-active { background: var(--color-acc) !important; }

.swiper-button-next, .swiper-button-prev { 
    width: 30% !important; 
    height: 100% !important; 
    top: 0 !important; 
    margin-top: 0 !important; 
    background: transparent !important; 
    border-radius: 0; 
    z-index: 99 !important; 
    cursor: pointer !important; 
}
.swiper-button-next { right: 0 !important; }
.swiper-button-prev { left: 0 !important; }

.swiper-button-next::after, .swiper-button-prev::after { 
    position: absolute;
    color: var(--color-acc) !important; 
    background: rgba(0,0,0,0.5); 
    width: 35px !important; 
    height: 35px !important; 
    border-radius: 50%; 
    font-size: 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.swiper-button-next::after { right: 10px; }
.swiper-button-prev::after { left: 10px; }

/* ==============================================================
   ★ 5. 페이징 (페이지 네비게이션) 전체 디자인 통일
============================================================== */
.ui-paging { text-align: center; margin: 40px 0; }
.ui-paging .pg_wrap { display: inline-block; }
.ui-paging .pg { display: flex; gap: 6px; justify-content: center; align-items: center; }

.ui-paging .pg_page, 
.ui-paging .pg_start, 
.ui-paging .pg_prev, 
.ui-paging .pg_next, 
.ui-paging .pg_end {
    display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--color-c); border-radius: 8px; background-color: var(--color-bg); color: var(--color-9); font-size: 13px; text-decoration: none; transition: all 0.2s ease;
}

.ui-paging .pg_page:hover, 
.ui-paging .pg_start:hover, 
.ui-paging .pg_prev:hover, 
.ui-paging .pg_next:hover, 
.ui-paging .pg_end:hover {
    background-color: rgba(0,0,0,0.05); color: var(--color-3); border-color: var(--color-9);
}

.ui-paging strong.pg_current.pg_page {
    background-color: var(--color-d) !important; border-color: var(--color-d) !important; color: #ffffff !important; font-weight: bold;
}