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

.series_view_container {
    max-width: 1000px;
    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(3px);
    -webkit-backdrop-filter: blur(3px);
}

.series_header {
    display: flex;
    background-color: rgb(from var(--bg-color) r g b / 100%);
}

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

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

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

.series_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;
    margin-left: 20px;
}

.series_title {
    font-size: 2.5em;
    font-weight: bold;
    color: rgb(from var(--txt-color) r g b / 100%);
    font-family: 'GmarketSansMedium';
    line-height: 1;
}

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

.series_genre {
    background: rgb(from var(--btn-acc-color) r g b / 90%);
    color: var(--btn-axt-color);
    padding: 0px 6px;
    border-radius: 4px;
    margin-bottom: 2px;
    font-size: 0.9em;
    width: fit-content;
}

.series_description {
    font-size: 1.0em;
    line-height: 1.5;
    color: rgb(from var(--txt-color) r g b / 40%);
    font-family: 'Pretendard';
    padding: 5px;
    flex: 1;
    text-overflow: ellipsis;
    display: flex;
    align-items: flex-start;
    overflow: scroll;
}

.series_keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.series_keyword {
    background: rgb(from var(--txt-color) r g b / 50%);
    color: var(--bg-color);
    font-size: 0.9em;
    padding: 0px 6px;
    border-radius: 4px;
    font-family: 'Pretendard';
    font-weight: 100;
}

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

.action_btn {
    display: flex;
    gap: 3px;
}

.series_actions a,
.btn_back,
.btn_write_post,
.btn_edit,
.btn_delete,
.btn_post_edit,
.btn_post_delete,
.btn_bulk_upload,
.modal_footer button
 {
    -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;
}

.btn_bulk_edit,
.btn_bulk_save,
.btn_bulk_cancel {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
    box-sizing: border-box;
    font: inherit;
    height: auto;
    line-height: 1;
    overflow: visible;
    text-align: center;
    text-transform: none;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9em;
    transition: all 0.2s;
    font-family: 'Pretendard';
    padding: 3px 7px;
    background: rgb(from var(--btn-bg-color) r g b / 20%);
    color: rgb(from var(--btn-txt-color) r g b / 70%);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    align-content: center;
    justify-content: center;
}

.btn_bulk_edit:hover,
.btn_bulk_save:hover,
.btn_bulk_cancel:hover {
    background: rgb(from var(--txt-color) r g b / 50%);
    color: rgb(from var(--bg-color) r g b / 100%);
}

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

.series_posts {
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.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.7em;
    font-family: 'Pretendard';
    color: rgb(from var(--txt-color) r g b / 100%);
}

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

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

.btn_sort {
    color: rgb(from var(--txt-color) r g b / 30%);
    font-size: 0.9em;
    font-family: 'Pretendard';
}

.btn_sort.active {
    color: rgb(from var(--txt-color) r g b / 100%);
}

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

.posts_count {
    color: rgb(from var(--txt-color) r g b / 60%);
    font-size: 0.9em;
    font-family: 'Pretendard';
}

.posts_list {
    padding: 0;
}

.post_item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
    border-bottom: 1px solid rgb(from var(--bd-color) r g b / 100%);
    background: linear-gradient(90deg, rgb(from var(--bg-color) r g b / 100%) 10%, rgb(from var(--bg-color) r g b / 90%) 60%, rgb(from var(--bg-color) r g b / 70%) 100%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: background-color 0.3s;
}

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

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

.post_content {
    flex: 1;
}

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

.post_meta span {
    font-family: 'Pretendard';
}

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

.post_tags {
    color: rgb(from var(--acc-color) r g b / 90%);
    font-weight: 500;
}

.post_actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.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(--bg-color) r g b / 60%);
}

.no_posts p {
    font-family: 'Pretendard';
    color: rgb(from var(--txt-color) r g b / 90%);
    font-size: 14px;
    margin-bottom: 5px;
}

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

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

.post_img {
    width: 200px;
    height: 110px;
    position: relative;
    overflow: hidden;
}

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

.no_thumbnail {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgb(from var(--bg-color) r g b / 100%) 0%, rgb(from var(--bg-color) r g b / 0%) 100%);
}

.no_number {
    font-size: 80px;
    color: rgb(from var(--txt-color) r g b / 10%);
    font-family: HakgyoansimByeolbichhaneulTTF-B;
    font-style: italic;
    position: absolute;
    left: 0;
    line-height: 0.6;
}

.display_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;
    margin-bottom: 2px;
    font-size: 0.9em;
    width: fit-content;
}
.post_title {
    font-size: 2.0em;
    font-weight: bold;
    color: rgb(from var(--txt-color) r g b / 90%);
    font-family: 'GmarketSansMedium';
    line-height: 1.5;
}

/* 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.secret_lock img {
    filter: brightness(0.3);
}

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

.posts_header_right {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 일괄 수정 모드 스타일 */
.bulk_edit_thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
}

.edit_thumbnail {
    width: 100%;
    padding: 8px;
    border: 1px solid rgb(from var(--txt-color) r g b / 50%);
    border-radius: 4px;
    font-size: 12px;
}

.thumbnail_upload {
    position: relative;
}

.thumbnail_file {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.thumbnail_upload label, .bulk_edit_thumbnail button, .btn_add_more {
    background: rgb(from var(--acc-color) r g b / 90%);
    color: rgb(from var(--bg-color) r g b / 100%);
    padding: 6px 8px;
    border-radius: 4px;
    border: none;
    font-size: 11px;
    font-family: 'Pretendard';
    cursor: pointer;
    transition: background 0.3s ease;
}

.thumbnail_upload label:hover, .bulk_edit_thumbnail button:hover, .btn_add_more:hover {
    background: rgb(from var(--acc-color) r g b / 50%);
}

.edit_number {
    width: 50px;
    padding: 4px;
    border-radius: 4px;
}

.edit_title {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    font-size: 14px;
}

/* 일괄 수정 모드에서 포스트 아이템 스타일 */
.bulk-edit-mode .post_item {
    border: 1px dashed rgb(from var(--txt-color) r g b / 50%);
}

.bulk-edit-mode .post_img {
    position: relative;
}

/* 일괄 업로드 모달 */
.bulk_upload_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal_content {
    background-color: rgb(from var(--bg-color) r g b / 90%);
    border: 1px solid rgb(from var(--bd-color) r g b / 70%);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    z-index: 1001;
}

.modal_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgb(from var(--bd-color) r g b / 70%);
}

.modal_header h3 {
    font-family: 'Pretendard';
}

.modal_body {
    padding: 1rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal_footer {
    padding: 1rem;
    border-top: 1px solid rgb(from var(--bd-color) r g b / 70%);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* 드롭존 */
.dropzone {
    border: 2px dashed rgb(from var(--acc-color) r g b / 70%);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: rgb(from var(--acc-color) r g b / 100%);
    background-color: rgb(from var(--bg-color) r g b / 70%);
}

.dropzone_message i {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.dropzone_note {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 선택된 파일 목록 */
.selected_files {
    text-align: left;
}

.selected_files h4 {
    font-family: 'Pretendard';
}

.files_list {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 5px;
}

.file_item {
    display: flex;
    align-items: center;
    padding: 6px;
    border-bottom: 1px solid rgb(from var(--txt-color) r g b / 8%);
}

.file_preview {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.file_preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.file_info {
    font-family: 'Pretendard';
    flex: 1;
}

.file_name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.file_size {
    color: #6c757d;
    font-size: 0.9rem;
}

.btn_remove {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.btn_add_more {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

/* 업로드 진행률 */
.upload_progress {
    text-align: center;
}

.progress_bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress_fill {
    height: 100%;
    background-color: #007bff;
    width: 0%;
    transition: width 0.3s ease;
}

/* 업로드 결과 */
.results_summary {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.success_count {
    color: #28a745;
    font-weight: 500;
}

.error_count {
    color: #dc3545;
    font-weight: 500;
}

.result_item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.result_item.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.result_item.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.result_icon {
    margin-right: 0.5rem;
}

.result_item.success .result_icon {
    color: #28a745;
}

.result_item.error .result_icon {
    color: #dc3545;
}

.results_actions {
    margin-top: 1rem;
    text-align: center;
}

.btn_refresh {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.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;
    }
    .series_actions .btn_back i,
    .series_actions .btn_write_post i,
    .series_actions .btn_edit i,
    .series_actions .btn_delete i,
    .series_actions .btn_bulk_upload i,
    .series_actions .upshare_btn i {
        font-size: 14px;
    }
    .series_actions a,
    .series_actions .btn_back,
    .series_actions .btn_write_post,
    .series_actions .btn_edit,
    .series_actions .btn_delete,
    .series_actions .btn_bulk_upload {
         font-size: 0;
     }
    .post_actions .btn_post_edit,
    .post_actions .btn_post_delete {
        font-size: 10px;
        padding: 5px;
    }
    .series_cover_large {
        width: 40%;
    }
    .post_item {
        padding: 10px 20px;
    }
    .post_img {
        width: 150px;
    }
}