/* ===== POST INDEX (pi-) ===== */
#v-post-index { overflow: hidden; position: relative; }
#v-post-index .pi-bc{ font-size:13px; color:#94a3b8; margin:14px 0 0; line-height:2; }
#v-post-index .pi-page-h1{ font-size:13px; font-weight:700; color:#64748b; letter-spacing:-.01em; margin:0 0 10px; line-height:1.4; }

/* Search */
.pi-search-wrap { padding: 14px 0 0; }
.pi-search-form { width: 100%; max-width: 440px; margin: 0 auto; }
.pi-search-row { display: flex; align-items: center; gap: 8px; }
.pi-search-input {
    flex: 1;
    padding: 9px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #334155;
    outline: none;
    background: #f8fafc;
    transition: border-color .15s;
    width: 100%;
}
.pi-search-input:focus { border-color: #1d4ed8; background: #fff; }
.pi-clear-btn {
    width: 36px; height: 36px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #f1f5f9; color: #64748b;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0; text-decoration: none; transition: all .15s;
}
.pi-clear-btn:hover { background: #e2e8f0; color: #334155; }
.pi-search-btn {
    width: 36px; height: 36px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #0f2744, #1d4ed8);
    color: #fff;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0; text-decoration: none; transition: opacity .15s;
}
.pi-search-btn:hover { opacity: .88; }

/* Filter tabs */
.pi-tabs { margin: 12px 0 0; }
.pi-tab-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.pi-tab-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px; font-weight: 600;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    cursor: pointer; text-decoration: none; transition: all .15s;
    display: inline-flex; align-items: center; gap: 5px;
}
.pi-tab-btn:hover { border-color: #0f2744; color: #0f2744; }
.pi-tab-btn.active { background: #0f2744; border-color: #0f2744; color: #fff; }

/* Tab panels */
.pi-tab-panel {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 8px;
}
.pi-select {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px; color: #334155;
    background: #fff;
    outline: none; margin-right: 6px; margin-bottom: 6px;
}
.pi-select:focus { border-color: #1d4ed8; }

/* Sort pills */
.pi-sort-group { display: flex; gap: 6px; flex-wrap: wrap; }
.pi-sort-group input[type="radio"] { display: none; }
.pi-sort-group input[type="radio"] + label {
    display: inline-block;
    padding: 6px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    font-size: 13px; font-weight: 600;
    color: #64748b; cursor: pointer; transition: all .15s;
}
.pi-sort-group input[type="radio"]:checked + label { background: #0f2744; border-color: #0f2744; color: #fff; }

/* Tag pills */
.pi-tag-group { display: flex; flex-wrap: wrap; gap: 6px; }
.pi-tag-group input[type="checkbox"] { display: none; }
.pi-tag-group input[type="checkbox"] + label {
    display: inline-block;
    padding: 5px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    font-size: 12px; font-weight: 600;
    color: #64748b; cursor: pointer; transition: all .15s;
}
.pi-tag-group input[type="checkbox"]:checked + label { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }

/* Write button */
.pi-write-wrap { text-align: right; margin: 10px 0; }
.pi-write-btn {
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, #0f2744, #1d4ed8);
    color: #fff; font-size: 13px; font-weight: 700;
    padding: 8px 14px; border-radius: 8px;
    text-decoration: none; transition: opacity .15s;
}
.pi-write-btn:hover { opacity: .9; color: #fff; }

/* Post cards */
.pi-list { margin: 10px 0; }
.pi-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15,39,68,.06);
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
    border: 1.5px solid #f1f5f9;
    transition: box-shadow .15s, border-color .15s;
}
.pi-card:hover { box-shadow: 0 4px 18px rgba(15,39,68,.1); border-color: #dbeafe; }
.pi-card.this-secret { opacity: .75; }
.pi-card-body { padding: 14px 16px; }
.pi-breadcrumb { margin-bottom: 6px; }
.pi-breadcrumb ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; gap: 0; }
.pi-breadcrumb .breadcrumb-item { font-size: 11px; color: #94a3b8; font-weight: 600; }
.pi-breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: " ›"; padding: 0 4px; color: #cbd5e1; }
.pi-card-title {
    font-size: 15px; font-weight: 800; color: #0f2744;
    margin: 0 0 6px; line-height: 1.4;
}
.pi-card-title .status-icon { font-size: 11px; color: #94a3b8; margin-right: 3px; }
.pi-card-desc {
    font-size: 13px; color: #64748b;
    margin: 0 0 10px; line-height: 1.6;
    text-overflow: ellipsis; overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    word-wrap: break-word;
}
.pi-card-meta { display: flex; align-items: center; gap: 12px; font-size: 11px; color: #94a3b8; font-weight: 600; }
.pi-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.pi-card-admin { position: relative; z-index: 101; margin-top: 8px; }

/* ad */
.pi-ad { margin-bottom: 12px; }

/* Empty */
.pi-empty { text-align: center; padding: 50px 20px; color: #94a3b8; }
.pi-empty i { font-size: 52px; display: block; margin-bottom: 12px; }
.pi-empty-msg { font-size: 14px; font-weight: 600; }


/* ===== POST VIEW (pv-) ===== */
#v-post-view { overflow: hidden; }

.pv-tag-group { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.pv-tag-item {
    display: inline-block;
    padding: 5px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    font-size: 12px; font-weight: 600;
    color: #64748b; text-decoration: none; transition: all .15s;
}
.pv-tag-item:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }

.pv-title { padding: 18px 0 14px; border-bottom: 2px solid #f1f5f9; }
.pv-title h1 { font-size: 22px; font-weight: 900; color: #0f2744; line-height: 1.4; margin: 0; }
.pv-meta {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 12px; color: #94a3b8; font-weight: 600;
    position: relative;
}
.pv-meta-left { display: flex; gap: 12px; align-items: center; }
.pv-meta-left strong { color: #334155; }
.pv-meta .dropdown { position: absolute; right: 0; top: 6px; }

/* 브레드크럼 */
.pv-breadcrumb { padding: 14px 0 0; font-size: 12px; color: #94a3b8; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pv-breadcrumb a { color: #94a3b8; text-decoration: none; }
.pv-breadcrumb a:hover { color: #1d4ed8; text-decoration: underline; }
.pv-breadcrumb-sep { color: #cbd5e1; }


/* Like */
.pv-like {
    text-align: center; padding: 20px;
    margin: 20px 0;
    background: #f8fafc;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
}
.pv-like-label { font-size: 12px; color: #94a3b8; font-weight: 700; margin-bottom: 10px; }
.pv-like-btn { font-size: 34px; color: #cbd5e1; text-decoration: none; display: inline-block; transition: color .15s, transform .15s; }
.pv-like-btn:hover { transform: scale(1.1); }
.pv-like-btn.on { color: #1d4ed8; }
.pv-like-count { font-size: 14px; color: #64748b; font-weight: 800; margin-left: 8px; vertical-align: middle; }

/* List button */
.pv-list-btn-wrap { text-align: center; margin: 16px 0; }
.pv-list-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 20px;
    border: 1.5px solid #0f2744;
    border-radius: 8px; color: #0f2744;
    font-size: 13px; font-weight: 700;
    text-decoration: none; transition: all .15s;
}
.pv-list-btn:hover { background: #0f2744; color: #fff; }

/* Post group */
.pv-group { margin: 28px 0; }
.pv-section-title { font-size: 15px; font-weight: 800; color: #0f2744; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.pv-group-list { background: #fff; border-radius: 14px; border: 1.5px solid #e2e8f0; overflow: hidden; }
.pv-group-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    text-decoration: none; color: #334155;
    font-size: 13px; transition: all .15s;
    border-bottom: 1px solid #f1f5f9;
}
.pv-group-item:last-child { border-bottom: none; }
.pv-group-item:hover { background: #f8fafc; color: #0f2744; }
.pv-group-item.active, .pv-group-item.disabled { background: #0f2744; color: #fff; pointer-events: none; }
.pv-group-item.active .pv-group-num { background: rgba(255,255,255,.18); color: #fff; }
.pv-group-num {
    min-width: 22px; height: 22px;
    border-radius: 6px;
    background: #f1f5f9; color: #64748b;
    font-size: 11px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.pv-group-info { flex: 1; min-width: 0; }
.pv-group-item-title { font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-group-item-desc { font-size: 11px; color: #94a3b8; text-overflow: ellipsis; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.pv-group-item.active .pv-group-item-desc { color: rgba(255,255,255,.6); }

/* Post more */
.pv-more { margin: 28px 0; }
.pv-more-list { background: #fff; border-radius: 14px; border: 1.5px solid #e2e8f0; overflow: hidden; }
.pv-more-item {
    display: block; padding: 10px 14px;
    text-decoration: none; color: #334155;
    font-size: 13px; transition: all .15s;
    border-bottom: 1px solid #f1f5f9;
}
.pv-more-item:last-child { border-bottom: none; }
.pv-more-item:hover { background: #f8fafc; color: #0f2744; }
.pv-more-item-title { font-weight: 700; margin-bottom: 2px; }
.pv-more-item-desc { font-size: 11px; color: #94a3b8; text-overflow: ellipsis; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.pv-cate-more { text-align: right; margin-top: 8px; }
.pv-cate-more a { font-size: 12px; color: #64748b; text-decoration: none; }
.pv-cate-more a:hover { color: #0f2744; }

/* Comment */
.pv-comment { margin: 30px 0; }
.pv-comment-title { font-size: 16px; font-weight: 800; color: #0f2744; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.pv-comment-guest { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pv-comment-input {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px; padding: 10px 12px;
    font-size: 13px; color: #334155;
    width: 100%; outline: none;
    background: #f8fafc; transition: border-color .15s;
    box-sizing: border-box;
}
.pv-comment-input:focus { border-color: #1d4ed8; background: #fff; }
.pv-textarea-wrap {
    display: flex;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    transition: border-color .15s;
}
.pv-textarea-wrap:focus-within { border-color: #1d4ed8; background: #fff; }
.pv-comment-textarea {
    border: none; background: transparent;
    padding: 12px; font-size: 13px; color: #334155;
    resize: none; flex: 1; outline: none; min-height: 80px;
}
.pv-comment-submit {
    padding: 12px 16px;
    background: linear-gradient(135deg, #0f2744, #1d4ed8);
    color: #fff; font-size: 13px; font-weight: 700;
    cursor: pointer; text-decoration: none;
    display: flex; align-items: flex-end;
    white-space: nowrap; transition: opacity .15s;
}
.pv-comment-submit:hover { opacity: .9; color: #fff; }

/* Comment list - preserve existing */
#v-post-view .post-comment textarea { min-height: 80px; }
#v-post-view .post-comment .comment-submit { cursor: pointer; text-decoration: none; background-color: #fff; font-weight: 900; }
#v-post-view .post-comment .comment-list .comment-content { }
#v-post-view .post-comment .comment-list .reply-item { border: solid 1px #eee; border-radius: 8px; }
#v-post-view .post-comment .comment-list .reply-item .card-header { border-color: #eee; border-radius: 8px 8px 0 0; }
#v-post-view .post-comment .comment-list .link-ttn { text-decoration: none !important; }
#v-post-view .post-comment .comment-list .link-ttn[aria-expanded="true"] { color: #f00 !important; }
#v-post-view .post-comment .comment-list .icon-delete { float: right; font-size: 16px; }
#v-post-view .post-comment .comment-list .delete-comment-form { max-width: 300px; margin: 0 auto; margin-bottom: 20px; }
#v-post-view .ellipsis {
    text-overflow: ellipsis; overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    word-wrap: break-word;
}
