@charset "UTF-8";

/* ==========================================================================
   ZZAN POST Brand Design Variables & Reset
   ========================================================================== */
:root {
    --zp-electric-blue: #0066FF;
    --zp-deep-blue: #0a1931;
    --zp-black: #050505;
    --zp-white: #ffffff;
    --zp-gray-50: #fafafa;
    --zp-gray-100: #F9F9F9;
    --zp-gray-200: #EEEEEE;
    --zp-gray-500: #A1A1AA;
    --zp-gray-800: #333333;
    --zp-font-primary: 'Pretendard', -apple-system, system-ui, sans-serif;
    --zp-font-en: 'Lexend', sans-serif;
    --zp-container-width: 1240px;
    --zp-radius-lg: 24px;
    --zp-radius-md: 12px;
}

.zzan-post-wrapper {
    font-family: var(--zp-font-primary);
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ==========================================================================
   Common Components
   ========================================================================== */
.topic-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: #FFF;
    color: #555;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #DDD;
    transition: 0.2s;
    /* overflow: hidden; */ /* 팝오버를 위해 hidden 해제 😊 */
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.topic-badge.is-editing {
    background: #FFF !important;
    color: var(--zp-black) !important;
    border-color: var(--zp-electric-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    cursor: text;
    user-select: auto;
}

.topic-badge .text {
    outline: none;
    min-width: 10px;
}

.topic-badge.is-primary {
    background: var(--zp-electric-blue);
    color: #fff;
    border-color: var(--zp-electric-blue);
    box-shadow: 0 4px 10px rgba(0, 102, 255, 0.2);
    animation: primaryPulse 2s infinite;
}

.icon-star-primary {
    animation: starRotate 4s infinite linear;
}

@keyframes primaryPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 102, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0);
    }
}

@keyframes starRotate {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.topic-badge .badge-popover {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--zp-deep-blue);
    padding: 6px;
    border-radius: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 200;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    pointer-events: none;
}

.topic-badge .badge-popover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--zp-deep-blue);
}

.topic-badge.show-menu .badge-popover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.topic-badge .badge-popover button {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #FFF;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.topic-badge .badge-popover button:hover {
    background: var(--zp-electric-blue);
    transform: scale(1.1);
}

.btn-post {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.btn-post.primary { background: var(--zp-black); color: #fff; }
.btn-post.secondary { background: var(--zp-gray-100); color: var(--zp-black); border: 1px solid #eee; }
.btn-post.danger { background: #ff4d4d; color: #fff; }
.btn-post:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* ==========================================================================
   List Page Styles
   ========================================================================== */
.zzan-post-list {
    max-width: var(--zp-container-width);
    margin: 80px auto;
    padding: 0 40px;
}

/* 통합 검색 바 😊🔍 */
.zzan-search-bar {
    max-width: 700px;
    margin: 60px auto 40px auto;
    position: relative;
}

.zzan-search-bar input {
    width: 100%;
    padding: 22px 35px;
    padding-right: 70px;
    border-radius: 100px;
    border: 1px solid rgba(0,0,0,0.08);
    font-size: 20px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    background: #FFF;
    outline: none;
    color: var(--zp-black);
}

.zzan-search-bar input:focus {
    border-color: var(--zp-electric-blue);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.08);
    transform: translateY(-2px);
}

.zzan-search-bar input::placeholder {
    color: var(--zp-gray-500);
    font-weight: 400;
}

.zzan-search-bar .search-icon {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--zp-electric-blue);
}

/* Portfolio Grid (Card Style) */
.portfolio-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    margin-bottom: 80px;
}

.portfolio-item { 
    position: relative;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-card {
    background: #fff;
    border-radius: var(--zp-radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-item:hover { 
    transform: translateY(-10px);
}

.portfolio-item:hover .portfolio-card {
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    border-color: rgba(0, 102, 255, 0.1);
}

.portfolio-card .thumb-link {
    display: block;
    width: 100%;
    overflow: hidden;
}

.portfolio-card .thumb-wrap { 
    width: 100%; 
    aspect-ratio: 16/10; 
    background: var(--zp-gray-100); 
    overflow: hidden; 
    position: relative; 
}

.portfolio-card .thumb { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.8s cubic-bezier(0.2, 1, 0.2, 1); 
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.portfolio-item:hover .thumb { 
    transform: scale(1.08); 
}

.portfolio-card .no-thumb { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    height: 100%; 
    color: var(--zp-gray-500);
}

.no-thumb-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.no-thumb-inner span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.portfolio-card .item-info { 
    padding: 30px; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}

.info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.portfolio-card .category { 
    font-size: 13px; 
    font-weight: 800; 
    color: var(--zp-electric-blue); 
    background: rgba(0, 102, 255, 0.05);
    padding: 4px 12px;
    border-radius: 50px;
}

.portfolio-card .date {
    font-size: 13px;
    color: var(--zp-gray-500);
}

.portfolio-card .title { 
    font-size: 22px; 
    font-weight: 800; 
    color: var(--zp-black); 
    margin-bottom: 20px; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.portfolio-card .title a { 
    color: inherit; 
    text-decoration: none; 
    transition: 0.2s;
}

.portfolio-card .title a:hover {
    color: var(--zp-electric-blue);
}

.portfolio-card .item-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: auto; 
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    transition: 0.4s;
}

.portfolio-item:hover .item-footer {
    border-top-color: rgba(255,255,255,0.15);
}

.portfolio-item:hover .author-info .author,
.portfolio-item:hover .stats {
    color: rgba(255,255,255,0.8) !important;
}

.portfolio-item:hover .title a {
    color: #FFF;
}
>>>>+++ REPLACE


.portfolio-item:hover .item-footer {
    border-top-color: rgba(255,255,255,0.15);
}

.portfolio-item:hover .author-info .author,
.portfolio-item:hover .stats {
    color: rgba(255,255,255,0.8) !important;
}

.portfolio-item:hover .title a {
    color: #FFF;
}
>>>>+++ REPLACE


.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-img {
    width: 24px;
    height: 24px;
    background: var(--zp-deep-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.author-info .author {
    font-size: 14px;
    font-weight: 600;
    color: var(--zp-gray-800);
}

.stats {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--zp-gray-500);
    font-size: 13px;
}

.stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Blog List (Webzine Style) */
.blog-list { display: flex; flex-direction: column; gap: 40px; max-width: 900px; margin: 0 auto; }
.blog-card { display: flex; gap: 30px; align-items: flex-start; padding-bottom: 40px; border-bottom: 1px solid #f0f0f0; }
.blog-card:last-child { border-bottom: none; }
.card-thumb-wrap { width: 280px; flex-shrink: 0; border-radius: var(--zp-radius-md); overflow: hidden; background: #fafafa; }
.card-thumb-wrap img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: 0.4s; }
.blog-card:hover .card-thumb-wrap img { transform: scale(1.03); }
.card-content { flex: 1; display: flex; flex-direction: column; }
.card-meta { margin-bottom: 10px; font-size: 13px; font-weight: 600; display: flex; align-items: center; }
.card-meta .category { color: var(--zp-electric-blue); margin-right: 12px; }
.card-meta .date { color: #888; font-weight: 400; }
.card-title { font-size: 24px; font-weight: 700; margin-bottom: 12px; color: var(--zp-black); line-height: 1.4; }
.card-title a { color: inherit; text-decoration: none; transition: 0.2s; }
.card-title a:hover { color: var(--zp-electric-blue); }
.card-desc { font-size: 15px; color: #555; margin-bottom: 16px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; color: var(--zp-gray-500); font-size: 13px; }
.card-tags span { background: #f5f5f5; padding: 4px 10px; border-radius: 4px; }

/* Pagination */
.zzan-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 60px 0;
}

.zzan-pagination a, .zzan-pagination strong {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 5px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--zp-gray-500);
    text-decoration: none;
    transition: 0.3s;
}

.zzan-pagination a:hover {
    background: var(--zp-gray-100);
    color: var(--zp-black);
}

.zzan-pagination strong {
    background: var(--zp-electric-blue);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

.zzan-pagination .btn-page {
    font-size: 20px;
    color: var(--zp-black);
}

/* ==========================================================================
   Write Page - Refined UI 😊✨
   ========================================================================== */
.zzan-post-write {
    max-width: 100%; /* 기획 의도: 시원하게 넓게 사용 🚀 */
    margin: 60px auto;
    padding: 0;
}

/* 내부 콘텐츠 중앙 정렬 및 폭 제한 (에디터 텍스트 블록 가독성 유지) */
.title-row, 
.editor-row .ce-block__content, 
.editor-row .ce-toolbar__content,
.topic-manage-row,
.write-footer {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* 스트레치 블록은 부모 너비(100%)를 그대로 활용하도록 설정 */
.editor-row .ce-block--stretched {
    max-width: 100%;
}

.title-row { margin-bottom: 40px; }
.title-input {
    width: 100%;
    font-size: 42px;
    font-weight: 800;
    color: var(--zp-black);
    border: none;
    border-bottom: 2px solid #F0F0F0;
    padding: 20px 0;
    outline: none;
    transition: 0.3s;
}
.title-input:focus { border-color: var(--zp-electric-blue); }
.title-input::placeholder { color: #DDD; }

.topic-manage-row {
    margin-top: 60px;
    border-top: 1px solid #F0F0F0;
    padding-top: 40px;
}
.topic-header { margin-bottom: 15px; display: flex; flex-direction: column; gap: 5px; }
.topic-header .label { font-weight: 800; font-size: 18px; color: var(--zp-black); }

.topic-guide-wrapper { display: flex; align-items: center; gap: 6px; }
.topic-header .guide-text { font-size: 13px; color: var(--zp-gray-500); font-weight: 400; }
.topic-header .guide-text b { color: var(--zp-electric-blue); font-weight: 600; }

/* Topic Help Tooltip 😊ℹ️ */
.topic-help-tooltip { position: relative; display: inline-flex; align-items: center; }
.btn-help-icon { 
    background: none; border: none; padding: 0; color: var(--zp-gray-500); cursor: pointer; 
    display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.btn-help-icon:hover { color: var(--zp-electric-blue); }

.topic-help-tooltip .tooltip-content {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 280px;
    background: var(--zp-deep-blue);
    color: #FFF;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.6;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.topic-help-tooltip .tooltip-content::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 12px;
    border: 6px solid transparent;
    border-bottom-color: var(--zp-deep-blue);
}

.topic-help-tooltip:hover .tooltip-content,
.topic-help-tooltip:focus-within .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.topic-help-tooltip .tooltip-content b { color: #FFD700; font-weight: 600; }

@media (max-width: 767px) {
    .topic-help-tooltip .tooltip-content { left: -100px; }
    .topic-help-tooltip .tooltip-content::before { left: 112px; }
}

.topic-input-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    background: var(--zp-gray-50);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #EEE;
    min-height: 64px;
    transition: 0.3s;
}
.topic-input-container:focus-within {
    background: #FFF;
    border-color: var(--zp-electric-blue);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.05);
}

.write-footer {
    margin-top: 80px;
    display: flex;
    justify-content: flex-end;
    padding-bottom: 100px;
}

.btn-submit {
    background: var(--zp-black);
    color: #FFF;
    padding: 18px 48px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-submit:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.topic-list { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-input-wrapper { flex: 1; min-width: 150px; position: relative; }
#topic-input { width: 100%; border: none; outline: none; font-size: 14px; padding: 5px 0; background: transparent; }

/* Autocomplete Layer */
.autocomplete-layer {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 300px;
    background: #FFF;
    border-radius: 12px;
    box-shadow: 0 -10px 25px rgba(0,0,0,0.1);
    border: 1px solid #EEE;
    margin-bottom: 10px;
    z-index: 100;
    overflow: hidden;
}
.autocomplete-layer ul { list-style: none; margin: 0; padding: 5px 0; }
.autocomplete-layer li { 
    padding: 12px 18px; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    transition: 0.2s; font-size: 14px;
}
.autocomplete-layer li:hover { background: #F5F8FF; }
.autocomplete-layer .t-name { font-weight: 600; color: var(--zp-black); }
.autocomplete-layer .t-count { font-size: 12px; color: #999; }

/* ==========================================================================
   Read Page Styles
   ========================================================================== */
.zzan-post-read { max-width: 100%; margin: 80px auto; padding: 0; }
.read-header, .read-footer, .zzan-comment-area { max-width: 720px; margin-left: auto !important; margin-right: auto !important; padding-left: 20px; padding-right: 20px; }
.read-body > * { max-width: 720px; margin-left: auto !important; margin-right: auto !important; padding-left: 20px; padding-right: 20px; }
.read-body .ce-block--stretched, .read-body .zzan-image--stretched { max-width: 1000px !important; width: 1000px !important; margin-left: calc(50% - 500px) !important; margin-right: calc(50% - 500px) !important; padding: 0 !important; display: flex !important; flex-direction: column !important; align-items: center !important; overflow: hidden; }

/* 뱃지 내 SVG 아이콘 정렬 */
.topic-badge .badge-overlay button svg {
    display: block;
    margin: 0 auto;
}

/* ==========================================================================
   Read Page - Refined UI 😊📖
   ========================================================================== */
.read-header {
    padding-bottom: 40px;
    border-bottom: 1px solid #F0F0F0;
    margin-bottom: 60px;
}

.read-header .category-area {
    margin-bottom: 15px;
}

.read-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--zp-black);
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
}

.read-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--zp-gray-500);
    font-size: 14px;
}

.read-meta .author {
    color: var(--zp-black);
    font-weight: 600;
}

.read-meta .dot {
    width: 3px;
    height: 3px;
    background: #DDD;
    border-radius: 50%;
}

/* 본문 이미지 라운드 처리 🖼️✨ */
.read-body img,
.read-body .zzan-image-wrapper img,
.read-body .ce-block__content img,
.read-body .zzan-uploaded-image {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* 본문 텍스트 스타일 가독성 강화 */
.read-body {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.read-body .ce-header { color: var(--zp-black); line-height: 1.3; margin-top: 2em; margin-bottom: 0.5em; }

/* ==========================================================================
   Comment System - Refined UI 😊💬
   ========================================================================== */
.zzan-comment-area {
    margin-top: 100px;
    padding-top: 60px;
    border-top: 1px solid #EEE;
}

.comment-header { margin-bottom: 40px; }
.comment-title { font-size: 22px; font-weight: 800; color: var(--zp-black); }
.comment-title span { color: var(--zp-electric-blue); margin-left: 6px; }

.comment-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 60px; }

/* 댓글 카드 기본 스타일 (들여쓰기 계층 구조 중심) */
.comment-card {
    position: relative;
    background: #FFF;
    border: 1px solid #F0F0F0;
    border-radius: 20px;
    padding: 24px;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.comment-card:hover { border-color: #DDD; box-shadow: 0 8px 24px rgba(0,0,0,0.05); }

.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.comment-meta .author { font-weight: 700; color: var(--zp-black); font-size: 15px; }
.comment-meta .date { color: #AAA; font-size: 13px; }

.comment-content { font-size: 16px; line-height: 1.6; color: #444; margin-bottom: 15px; }

.comment-footer { display: flex; gap: 15px; }
.comment-footer button { 
    background: none; border: none; padding: 0; color: #888; font-size: 13px; cursor: pointer; 
    transition: 0.2s; font-weight: 500;
}
.comment-footer button:hover { color: var(--zp-electric-blue); text-decoration: underline; }
.btn-comment-delete:hover { color: #ff4d4d !important; }

/* 답글(Reply) 시스템 🧩 - 유연한 연결 라인 시스템 (Modular Line System) */
.comment-item {
    position: relative;
    display: flex;
    flex-direction: column;
}

.comment-item.comment-reply {
    padding-left: 48px; /* 답글 들여쓰기 🚀 */
}

/* 
   답글 계층 구조 가이드 (Line System 제거)
   - 시각적인 연결 선(|, ㄴ) 요소를 모두 제거하고 들여쓰기(Padding)만 유지합니다.
*/

/* 동적 보조 폼 (답글 작성/수정 시 등장) 🧩 */
.secondary-comment-form {
    position: relative;
    margin: 20px 0;
    padding-left: 48px; /* 답글과 동일한 들여쓰기 */
    display: none;
    background: transparent;
}

/* 3. 답글 토글 버튼 전용 스타일 */
.reply-toggle-wrapper {
    position: relative;
    padding-left: 48px; /* 댓글 들여쓰기 높이와 맞춤 */
    margin: 15px 0;
}

.reply-icon {
    position: absolute;
    left: 14px;
    top: 24px;
    color: var(--zp-gray-500);
    opacity: 0.6;
}

/* 토글 버튼 영역의 아이콘 위치 조정 */
.reply-toggle-wrapper .reply-icon {
    top: 10px; /* 버튼 높이에 맞춰 상단 위치 조정 */
}

.btn-reply-toggle {
    position: relative;
    z-index: 10;
    background: #FFF;
}

.btn-reply-toggle {
    background: #FFF;
    border: 1px solid #EEE;
    color: var(--zp-electric-blue);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px; /* 알약 형태의 카드 */
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.btn-reply-toggle:hover {
    background: var(--zp-gray-50);
    border-color: var(--zp-electric-blue);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
}

.btn-reply-toggle svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-reply-toggle.is-active svg {
    transform: rotate(180deg);
}

.comment-item.comment-reply .comment-card {
    background: var(--zp-gray-50);
    flex: 1;
    border-radius: 16px;
    border: 1px solid #F0F0F0;
    border-left: 4px solid var(--zp-electric-blue); /* 포인트 컬러 바 유지 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

/* 답글 작성자 옆 아이콘 색상 */
.comment-meta .author svg {
    color: var(--zp-electric-blue);
    opacity: 0.7;
}

/* 댓글 작성 폼 커스터마이징 */
.comment-form-area {
    background: var(--zp-gray-50);
    padding: 30px;
    border-radius: 24px;
}

.comment-form .form-header { display: flex; gap: 10px; margin-bottom: 15px; }
.input-comment {
    background: #FFF;
    border: 1px solid #DDD;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 14px;
    width: 150px;
}

.textarea-comment {
    width: 100%;
    height: 120px;
    background: #FFF;
    border: 1px solid #DDD;
    border-radius: 12px;
    padding: 15px;
    font-size: 15px;
    resize: none;
    outline: none;
    transition: 0.3s;
}
.textarea-comment:focus { border-color: var(--zp-electric-blue); }

.form-footer { display: flex; justify-content: flex-end; margin-top: 15px; }
.btn-comment-submit {
    background: var(--zp-black);
    color: #FFF;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}
.btn-comment-submit:hover { transform: scale(1.05); }

.btn-comment-cancel {
    background: #eee;
    color: #666;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 10px;
    transition: 0.3s;
}
.btn-comment-cancel:hover { background: #ddd; }

/* 동적 보조 폼 스타일 */
.secondary-comment-form {
    margin: 20px 0;
    display: none;
}
.read-body h1.ce-header { font-size: 2em; font-weight: 800; }
.read-body h2.ce-header { font-size: 1.6em; font-weight: 700; }
.read-body h3.ce-header { font-size: 1.3em; font-weight: 700; }

.zzan-progress-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 9999;
}
.zzan-progress-wrap .progress-bar {
    width: 0%;
    height: 100%;
    background: var(--zp-electric-blue);
    transition: width 0.1s ease-out;
}

/* Reveal Animation - 부드러운 CSS 방식으로 복구 😊 */
.reveal-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PhotoSwipe(이미지 확대) 레이어 z-index 최상위 고정 🚀 */
.pswp {
    z-index: 100000 !important;
}

/* PhotoSwipe가 열릴 때 사이트의 다른 요소(GNB 등) 제어 */
body.pswp-open .reveal-fade-up {
    transform: none !important;
    transition: none !important;
}

/* 이미지 확대 시 GNB가 위로 올라오는 현상 방지 */
body.pswp-open #dynamic-gnb, 
body.pswp-open .gnb,
body.pswp-open header {
    z-index: 1 !important;
    display: none !important; /* 확대 시에는 GNB를 아예 숨김 처리하여 버그 방지 */
}

/* 하단 태그 리스트 스타일 Labeling 😊🏷️ */
.tag-area {
    margin: 80px 0 40px 0;
    padding-top: 40px;
    border-top: 1px solid #F0F0F0;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.tag-list li a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--zp-gray-50);
    color: #666;
    border-radius: 50px;
    font-size: 13px;
    text-decoration: none;
    transition: 0.2s;
}

.tag-list li a:hover {
    background: var(--zp-electric-blue);
    color: #FFF;
    transform: translateY(-2px);
}

.tag-list li a::before {
    content: '# ';
    opacity: 0.5;
}

.list-footer {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--zp-gray-100);
}

.btn-post.primary {
    background: var(--zp-black);
    color: #fff;
    padding: 16px 40px;
    font-size: 15px;
    letter-spacing: -0.01em;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.btn-post.primary:hover {
    background: var(--zp-electric-blue);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 102, 255, 0.2);
}

.btn-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .zzan-post-list { padding: 0 30px; }
}

@media (max-width: 767px) {
    .read-title { font-size: 32px; }
    .zzan-post-read { margin: 40px auto; }
    .read-body .ce-block--stretched, .read-body .zzan-image--stretched { max-width: 100% !important; width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
    
    .zzan-post-list { padding: 0 20px; margin: 40px auto; }
    .zzan-search-bar { margin: 20px auto 40px auto; }
    .zzan-search-bar input { padding: 16px 25px; font-size: 16px; }
    
    .portfolio-grid { grid-template-columns: 1fr; gap: 30px; }
    .portfolio-card .item-info { padding: 20px; }
    .portfolio-card .title { font-size: 18px; margin-bottom: 20px; }
    
    .blog-card { flex-direction: column; gap: 20px; }
    .card-thumb-wrap { width: 100%; }
    .card-title { font-size: 20px; }
    
    .list-footer { margin-top: 40px; }
    .btn-post.primary { width: 100%; text-align: center; justify-content: center; }
}
