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

.post_view_container {
    max-width: 900px;
    margin: 0 auto;
    background-color: rgb(from var(--bg-color) r g b / 10%);
    border: 1px solid rgb(from var(--bd-color) r g b / 70%);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 상단 액션 버튼 */
.post_actions_top {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: rgb(from var(--bg-color) r g b / 90%);
    border-bottom: 1px solid rgb(from var(--bd-color) r g b / 100%);
}

.post_actions_top a,
.btn_back,
.btn_edit,
.btn_delete {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
    box-sizing: border-box;
    font: inherit;
    height: auto;
    line-height: 1.5;
    overflow: visible;
    text-align: center;
    text-transform: none;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
    transition: all 0.2s;
    font-family: 'Pretendard';
    padding: 5px 10px;
    background: rgb(from var(--btn-bg-color) r g b / 85%);
    color: rgb(from var(--btn-txt-color) r g b / 85%);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    align-content: center;
    justify-content: center;
}

.post_actions_top a:hover,
.action_btn a:hover {
    background: rgb(from var(--txt-color) r g b / 80%);
    color: rgb(from var(--bg-color) r g b / 100%);
}

/* 시리즈 네비게이션 */
.series_nav {
    width: 100%;
    min-width: 250px;
    border-radius: 8px;
    background-color: rgb(from var(--bg-color) r g b / 80%);
    border-top: 1px solid rgb(from var(--txt-color) r g b / 10%);
    padding: 8px 20px;
    position: fixed;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
}

.series_nav_content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.series_info_mini {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgb(from var(--txt-color) r g b / 80%);
}

.series_info_mini i {
    color: rgb(from var(--acc-color) r g b / 80%);
    font-size: 12px;
}

.series_title_mini {
    flex: 1;
    margin-top: 2px;
}

.series_title_mini a {
    text-decoration: none;
    color: rgb(from var(--txt-color) r g b / 90%);
    font-family: 'GmarketSansMedium';
    font-size: 14px;
}

.series_title_mini a:hover {
    color: rgb(from var(--acc-color) r g b / 90%);
}

.post_navigation {
    display: flex;
    gap: 8px;
}

.post_navigation span {
    font-family: 'Pretendard';
    font-size: 11px;
}

.nav_btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: rgb(from var(--btn-bg-color) r g b / 85%);
    color: rgb(from var(--btn-txt-color) r g b / 85%);
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.2s;
}

.nav_btn:hover {
    background: rgb(from var(--txt-color) r g b / 80%);
    color: rgb(from var(--bg-color) r g b / 100%);
}

/* 포스트 헤더 */
.post_header {
    display: flex;
    gap: 20px;
    background-color: rgb(from var(--bg-color) r g b / 100%);
}

.post_cover_large {
    width: 400px;
    height: 220px;
    position: relative;
}

.post_cover_large .cover-filter {
    background: linear-gradient(270deg, rgb(from var(--bg-color) r g b / 100%) 0%, rgb(from var(--bg-color) r g b / 0%) 40%);
    right: 0;
    width: 100%;
    height: 220px;
    position: absolute;
}

.post_cover_large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post_info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    justify-content: space-between;
    padding: 25px 20px 10px 0px;
    height: 220px;
    box-sizing: border-box;
}

.post_title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 1.5em;
    color: rgb(from var(--txt-color) r g b / 100%);
    font-family: 'Pretendard';
    font-weight: 600;
}

.post_meta {
    display: flex;
    gap: 10px;
    color: rgb(from var(--txt-color) r g b / 60%);
    font-family: 'Pretendard';
    padding-left: 5px;
    flex-wrap: wrap;
}

.post_tags {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.tag_adult {
    background: #ff4757;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

.tag_secret {
    background: #747d8c;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.tag_spoiler {
    background: #ffa502;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

/* 포스트 내용 */
.post_content_wrapper {
    padding: 60px;
    /*background-color: rgb(from var(--bg-color) r g b / 100%);*/
    background-color: rgba(250, 250, 250, .6);
    min-height: 200px;
}

.post_content {
    line-height: 1.8;
    color: rgb(from var(--txt-color) r g b / 90%);
    font-family: 'Pretendard';
}

/* 관련 포스트 */
.related_posts {
    overflow: hidden;
}

.posts_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: rgb(from var(--bg-color) r g b / 90%);
    border-bottom: 1px solid rgb(from var(--bd-color) r g b / 100%);
}

.posts_header h3 {
    margin: 0;
    font-size: 1.5em;
    color: rgb(from var(--txt-color) r g b / 90%);
    font-family: 'GmarketSansMedium';
}

.posts_list {
    padding: 0;
    background-color: rgb(from var(--bg-color) r g b / 50%);
}

.post_item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 30px;
    border-bottom: 1px solid rgb(from var(--bd-color) r g b / 100%);
    transition: background-color 0.3s;
}

.post_item:hover {
    background-color: rgb(from var(--bg-color) r g b / 60%);
}

.post_item:last-child {
    border-bottom: none;
}

.post_img {
    width: 200px;
    height: 110px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.post_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no_thumbnail {
    width: 100%;
    height: 100%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 32px;
}

.post_content {
    flex: 1;
}

.post_content a {
    text-decoration: none;
    color: inherit;
}

.item-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post_number, .episode_number {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background: rgb(from var(--txt-color) r g b / 100%);
    color: var(--bg-color);
    padding: 0px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    width: fit-content;
}

.post_item .post_title {
    font-size: 1.3em;
    font-weight: bold;
    color: rgb(from var(--txt-color) r g b / 90%);
    font-family: 'GmarketSansMedium';
    line-height: 1.3;
}

.post_item .post_meta {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: rgb(from var(--txt-color) r g b / 60%);
}

/* 19금, 비밀글, 스포일러 처리 */
.post_img.adult_blur img {
    filter: blur(10px);
}

.adult_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(from var(--adult-bg-color) r g b / 50%);
    color: rgb(from var(--adult-txt-color) r g b / 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.adult_text {
    text-align: center;
    font-size: 16px;
}

.adult_text i {
    display: block;
    font-size: 24px;
    margin-bottom: 5px;
}

.post_img.spoiler_blur img {
    filter: blur(8px);
}

/* 멤버글 처리 - 포스트 내부 다른포스트 썸네일 */
.post_img.member_lock img {
    filter: blur(3px);
    
}

.member_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(from var(--member-bg-color) r g b / 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* 비밀글 처리 */
.post_img.secret_lock img {
    filter: brightness(0.5) blur(3px);
}

.secret_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.secret_icon {
    color: white;
    font-size: 32px;
    opacity: 0.9;
}

.no_posts {
    text-align: center;
    padding: 60px 30px;
    color: rgb(from var(--txt-color) r g b / 60%);
}

.no_posts_icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: rgb(from var(--txt-color) r g b / 40%);
}

/* 스크롤 형식 스타일 */
.scroll_content {
    max-width: 100%;
}

.scroll_images {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.scroll_image_item {
    width: 100%;
    text-align: center;
}

.scroll_image_item img {
    max-width: 100%;
    height: auto;
}

.post_text_content {
    margin-top: 20px;
    padding: 20px 80px;
    white-space: pre-wrap;
}

.image_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    display: none;
}

.image_overlay.show {
    display: block;
}

/* 만화 슬라이더 스타일 */
.comic_slider_container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

/* 최대화 상태 - body에 직접 추가될 때 */
body>.comic_slider_container.maximized {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
    z-index: 9999;
    margin: 0;
    background: #000;
}

.comic_slider_wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

body>.comic_slider_container.maximized .comic_slider_wrapper {
    height: 100vh;
}

.comic_slider {
    display: flex;
    transition: transform 0.3s ease;
    width: 100%;
}

body>.comic_slider_container.maximized .comic_slider {
    height: 100vh;
}

.comic_slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgb(from var(--bg-color) r g b / 90%);
}

body>.comic_slider_container.maximized .comic_slide {
    background: #000;
    height: 100vh;
}

.comic_slide img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

body>.comic_slider_container.maximized .comic_slide img {
    max-height: 100vh;
    max-width: 100vw;
}

.comic_slide img.fit {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.comic_slide img.width {
    width: 100%;
    height: auto;
}

.comic_controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    box-sizing: border-box;
    z-index: 10;
}

.comic_nav_btn {
    color: rgb(from var(--txt-color) r g b / 90%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 25px;
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 11;
}

body>.comic_slider_container.maximized .comic_nav_btn {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
    border-radius: 50%;
}

.comic_nav_btn:hover {
    transform: scale(1.1);
}

body>.comic_slider_container.maximized .comic_nav_btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.comic_nav_btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.comic_page_indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: rgb(from var(--txt-color) r g b / 90%);
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
}

body>.comic_slider_container.maximized .comic_page_indicator {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    bottom: 20px;
}

.comic_maximize_btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.maximize_toggle {
    color: rgb(from var(--txt-color) r g b / 90%);
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 11;
}

.maximize_toggle:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

body>.comic_slider_container.maximized .maximize_toggle {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.7);
    padding: 12px;
}

body>.comic_slider_container.maximized .maximize_toggle:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* 최대화 상태에서 body 스크롤 방지 */
body.comic-maximized {
    overflow: hidden;
}

@media (max-width: 1000px) {
    .post_text_content {
        padding: 0;
    }
}

.post_text_content a:link,
.post_text_content a:visited {
    color: var(--acc-color);
}

.scroll-buttons {
    position: fixed;
    right: 20%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scroll-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgb(from var(--bg-color) r g b / 80%);
    color: rgb(from var(--txt-color) r g b / 90%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-btn:hover {
    background: rgb(from var(--bg-color) r g b / 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-btn:active {
    transform: scale(0.95);
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .scroll-buttons {
        right: 20px;
    }

    .scroll-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}