@charset "utf-8";

/**
 * @project ZZAN NeonLime Board Skin - Read Style
 * @author ZZAN Studio
 * @copyright (c) ZZAN Studio. All rights reserved.
 */

/* 1. Read Container & Header */
.vibe-style-container { background: transparent !important; padding: 0 !important; margin-top: 20px; max-width: 900px; margin-left: auto; margin-right: auto; }
.vibe-header { padding-top: 50px; padding-bottom: 40px; border: none !important; display: flex; flex-direction: column; align-items: center; text-align: center; }
.vibe-top-nav { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-bottom: 50px; }
.vibe-back-btn { display: flex; align-items: center; gap: 8px; color: var(--zzan-text); text-decoration: none; font-weight: 800; font-size: 14px; transition: 0.2s; }
.vibe-back-btn:hover { opacity: 0.7; }
.vibe-top-date { font-size: 13px; color: #999; font-weight: 500; }

.vibe-title-wrap { margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
.vibe-title { font-size: 36px; line-height: 1.3; font-weight: 900; letter-spacing: -0.03em; margin: 15px 0 0; }

.vibe-meta-bar { width: 100%; display: flex !important; justify-content: center !important; align-items: center !important; text-align: center; position: static !important; }
.vibe-author-box { display: flex !important; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center !important; width: auto !important; margin: 0 auto !important; position: static !important; }
.vibe-profile-img { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--zzan-menu-hover-bg); border: 1px solid var(--zzan-border); }
.vibe-profile-img img { width: 100%; height: 100%; object-fit: cover; }
.vibe-profile-img.no-img-svg { display: flex !important; align-items: center !important; justify-content: center !important; background: var(--zzan-menu-hover-bg) !important; color: var(--zzan-gray-text) !important; }
.vibe-profile-img.no-img-svg svg { width: 60% !important; height: 60% !important; opacity: 0.6 !important; }
.vibe-author-box .nick { font-weight: 800; font-size: 14px; }
.vibe-author-box .stats { display: flex; align-items: center; gap: 4px; font-size: 14px; color: #666; font-weight: 600; margin-left: 5px; }
.vibe-author-box .stats svg { opacity: 0.6; }

.vibe-action-box { display: flex; align-items: center; gap: 10px; margin-left: 15px; height: 32px; }
.btn-vibe-action { 
    width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--zzan-border); 
    background: var(--zzan-bg); color: var(--zzan-gray-text); 
    display: flex; align-items: center; justify-content: center; 
    cursor: pointer; transition: 0.2s; padding: 0;
}
.btn-vibe-action:hover { border-color: var(--zzan-neon); color: var(--zzan-neon); background: var(--zzan-menu-hover-bg); }
.btn-vibe-action svg { width: 18px; height: 18px; }

.zzan-cmt-more-wrap .btn-more-trigger.btn-vibe-action { background: var(--zzan-bg); }

.vibe-header .badge-wrap { display: flex; gap: 8px; margin-bottom: 15px; align-items: center; justify-content: center; }
.vibe-header .notice-badge { display: inline-flex; align-items: center; justify-content: center; padding: 5px 12px 4px !important; background: var(--zzan-text) !important; color: var(--zzan-bg) !important; font-size: 12px; font-weight: 800; border-radius: 50px; line-height: 1; height: 24px; box-sizing: border-box; }
.vibe-header .cat-badge { display: inline-flex; align-items: center; justify-content: center; padding: 5px 12px 4px !important; background: var(--zzan-neon); color: #000 !important; border: none !important; font-size: 11px !important; font-weight: 900 !important; border-radius: 50px !important; line-height: 1 !important; height: 22px !important; box-sizing: border-box; text-transform: uppercase; }

.vibe-header-divider { width: 100%; height: 1px; background: var(--zzan-border); margin-top: 30px; opacity: 0.6; }

/* 2. Body Content */
.vibe-body-content { padding: 40px 0 80px; font-size: 18px; line-height: 1.8; color: var(--zzan-text); letter-spacing: -0.3px; word-break: keep-all; }
.vibe-body-content p { margin-bottom: 24px; }
.vibe-body-content img { max-width: 100%; border-radius: 12px; margin: 20px 0; }

.pswp img { max-width: none !important; border-radius: 0 !important; margin: 0 !important; }
.pswp__img { max-width: none !important; border-radius: 0 !important; margin: 0 !important; }

.zzan-read-tags { margin-top: 40px; padding-top: 20px; border-top: 1px dashed var(--zzan-border); }
.zzan-read-tags .tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.zzan-read-tags .tag-item { 
    display: inline-flex; align-items: center; padding: 6px 14px; 
    background: var(--zzan-menu-hover-bg); color: var(--zzan-gray-text); 
    border-radius: 50px; font-size: 13px; font-weight: 700; 
    text-decoration: none; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--zzan-border);
}
.zzan-read-tags .tag-item:hover { 
    background: var(--zzan-neon); color: #000; 
    border-color: var(--zzan-neon); transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 255, 0, 0.3);
}

/* 3. Interaction Components (Vote & Feedback) */
.zzan-vote-package { margin: 50px auto; max-width: 450px; text-align: center; position: relative; }
.vote-btns { display: inline-flex; gap: 12px; position: relative; z-index: 2; }

.vibe-vote-package .btn-zzan-interactive { 
    min-width: 130px; height: 52px; border-radius: 26px; border: 2px solid var(--zzan-neon); 
    background: transparent; color: var(--zzan-neon); font-weight: 800; 
    display: flex; align-items: center; justify-content: center; gap: 8px; 
    cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.vibe-vote-package .btn-zzan-interactive svg { width: 24px; height: 24px; fill: currentColor; transition: transform 0.3s; }
.vibe-vote-package .btn-zzan-interactive:hover { background: var(--zzan-neon); color: #000; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(230, 255, 0, 0.2); }
.vibe-vote-package .btn-zzan-interactive:hover svg { transform: scale(1.2); }

.vibe-vote-package .btn-blame-interactive { 
    min-width: 130px; height: 52px; border-radius: 26px; border: 2px solid #ff4b4b; 
    background: transparent; color: #ff4b4b; font-weight: 800; 
    display: flex; align-items: center; justify-content: center; gap: 8px; 
    cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.vibe-vote-package .btn-blame-interactive svg { width: 24px; height: 24px; fill: currentColor; transition: transform 0.3s; }
.vibe-vote-package .btn-blame-interactive:hover { background: #ff4b4b; color: #fff; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(255, 75, 75, 0.15); }
.vibe-vote-package .btn-blame-interactive:hover svg { transform: rotate(15deg); }

.zzan-voted-members-wrap { 
    margin-top: 15px; position: relative; z-index: 1; 
    border-radius: 22px; padding: 2px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); display: inline-block; min-width: 280px; 
    background: linear-gradient(45deg, var(--zzan-neon), #ff007f, #00d2ff, var(--zzan-neon));
    background-size: 300% 300%;
    animation: borderRotate 4s ease infinite;
}

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.voted-inner-box {
    background: var(--zzan-bg); border-radius: 20px; padding: 16px 20px 14px;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    position: relative; z-index: 2;
}

.zzan-voted-members-wrap::before { 
    content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%) rotate(45deg); 
    width: 16px; height: 16px; 
    background: inherit; 
    z-index: 0;
}

.zzan-voted-members-wrap::after {
    content: ''; position: absolute; top: -5px; left: 50%; transform: translateX(-50%) rotate(45deg);
    width: 16px; height: 16px; background: var(--zzan-bg);
    z-index: 1;
}

.zzan-voted-members-wrap.has-blame::before,
.zzan-voted-members-wrap.has-blame::after { 
    left: calc(50% - 71px);
}

.voted-summary { display: flex; align-items: center; justify-content: center; gap: 12px; }
.voted-user-item { display: flex; align-items: center; gap: 6px; cursor: pointer; transition: transform 0.2s; }
.voted-user-item:hover { transform: scale(1.05); }
.voted-user-item .voted-pimg { 
    width: 24px; height: 24px; border-radius: 50%; overflow: hidden; 
    background: var(--zzan-border); border: 1px solid rgba(0,0,0,0.05); flex-shrink: 0; 
}
.voted-user-item .voted-pimg img { width: 100%; height: 100%; object-fit: cover; }
.voted-user-item .voted-nick { font-weight: 700; font-size: 12px; color: var(--zzan-text); }

.voted-more-btn { 
    cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 3px 10px; 
    background: var(--zzan-menu-hover-bg); border: 1px solid var(--zzan-border); border-radius: 12px; 
    font-size: 10px; font-weight: 800; color: var(--zzan-gray-text); transition: all 0.2s; 
}
.voted-more-btn:hover { background: var(--zzan-border); color: var(--zzan-text); }

/* 4. Author Signature Card */
.author-signature-card { 
    display: flex; gap: 25px; padding: 30px; background: var(--zzan-menu-hover-bg); border-radius: 20px; 
    margin: 60px 0 30px; border: 1px solid var(--zzan-border); align-items: center;
}
.sig-pimg-wrap, .sig-pimg-wrap img, .sig-pimg-wrap.no-img-svg { width: 70px; height: 70px; border-radius: 50%; overflow: hidden; }
.sig-pimg-wrap.no-img-svg { background: var(--zzan-menu-hover-bg) !important; border: 1px solid var(--zzan-border) !important; display: flex !important; align-items: center !important; justify-content: center !important; color: var(--zzan-gray-text) !important; }
.sig-pimg-wrap.no-img-svg svg { width: 60% !important; height: 60% !important; opacity: 0.6 !important; }
.author-signature-card .info h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: var(--zzan-text); }
.author-signature-card .signature { font-size: 14px; color: var(--zzan-gray-text); line-height: 1.6; }

/* 5. Recent Posts */
.zzan-author-recent { margin-top: 40px; margin-bottom: 40px; padding: 20px; border: 1px solid var(--zzan-border); border-radius: 16px; background: var(--zzan-menu-hover-bg); }
.recent-header { margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; }
.recent-header h4 { font-size: 14px; font-weight: 800; margin: 0; color: var(--zzan-text); display: flex; align-items: center; gap: 8px; }
.recent-header h4::before { content: ''; width: 4px; height: 14px; background: var(--zzan-neon); border-radius: 2px; }

.recent-list { display: flex; flex-direction: column; gap: 8px; }
.recent-list li { border: none; padding: 0; }
.recent-list a { 
    display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; 
    background: transparent; border: 1px solid var(--zzan-border); border-radius: 10px; 
    font-size: 14px; color: var(--zzan-gray-text); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.recent-list a .title { 
    flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; 
    padding-right: 20px; position: relative; padding-left: 15px;
}
.recent-list a .title::before { 
    content: '•'; position: absolute; left: 0; color: var(--zzan-border); font-weight: bold; 
}
.recent-list a .date { font-size: 11px; color: var(--zzan-gray-text); font-family: 'Montserrat'; flex-shrink: 0; }

.recent-list a:hover { 
    border-color: var(--zzan-neon); background: var(--zzan-menu-hover-bg); color: var(--zzan-text); 
    transform: translateX(5px); box-shadow: 0 4px 10px rgba(0,0,0,0.03); 
}
.recent-list a:hover .title::before { color: var(--zzan-neon); }

.recent-list li.no-data { padding: 20px; text-align: center; color: var(--zzan-gray-text); font-size: 13px; background: transparent; border-radius: 10px; border: 1px dashed var(--zzan-border); }

/* 6. Read Bottom Controls (List, Edit, Delete) */
.read-bottom-ctrl { display: flex; justify-content: flex-end; gap: 8px; margin: 30px 0; align-items: center; }
.read-bottom-ctrl .btn-ctrl-item { 
    display: inline-flex; align-items: center; justify-content: center; 
    padding: 10px 20px; border-radius: 8px; font-size: 13px; font-weight: 800; 
    color: var(--zzan-gray-text); background: var(--zzan-menu-hover-bg); 
    border: 1px solid var(--zzan-border); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
    cursor: pointer; text-decoration: none;
}
.read-bottom-ctrl .btn-ctrl-item:hover { 
    background: var(--zzan-border); color: var(--zzan-text); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
}
.read-bottom-ctrl .btn-ctrl-item.del:hover { 
    color: #ff4b4b; border-color: #ff4b4b; background: rgba(255, 75, 75, 0.05); 
}

/* 7. Layer Popups & Modals */
.zzan-voted-layer { 
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.6); z-index: 9999; backdrop-filter: blur(3px); 
}
.zzan-modal { 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); 
    width: 90%; max-width: 380px; background: var(--zzan-bg); border-radius: 15px; 
    overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
}
.zzan-modal .modal-header { padding: 15px; border-bottom: 1px solid var(--zzan-border); display: flex; align-items: center; justify-content: space-between; color: var(--zzan-text); }
.zzan-modal .modal-header h4 { margin: 0; font-size: 15px; font-weight: 800; }
.zzan-modal .btn-close-modal { background: none; border: none; cursor: pointer; color: var(--zzan-gray-text); padding: 5px; }
.zzan-modal .modal-body { max-height: 400px; overflow-y: auto; padding: 10px 0; color: var(--zzan-text); }

.voted-item-list { padding: 10px 20px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: background 0.1s; }
.voted-item-list:hover { background: #f9f9f9; }
.voted-item-list .item-pimg { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: #eee; flex-shrink: 0; }
.voted-item-list .item-pimg img { width: 100%; height: 100%; object-fit: cover; }
.voted-item-list .item-info .nick { font-weight: 700; font-size: 14px; color: #222; }
.voted-item-list .item-info .userid { font-size: 12px; color: #999; }

/* 8. Dark Mode & Responsive Overrides */
[data-theme='dark'] .author-signature-card,
[data-theme='dark'] .zzan-author-recent,
[data-theme='dark'] .vibe-profile-img,
[data-theme='dark'] .sig-pimg-wrap.no-img-svg,
[data-theme='dark'] .cmt-item { border-color: rgba(255, 255, 255, 0.1) !important; }

[data-theme='dark'] .vibe-profile-img,
[data-theme='dark'] .sig-pimg-wrap.no-img-svg { background: rgba(255, 255, 255, 0.05); }

@media screen and (max-width: 768px) {
    .vibe-style-container { padding: 0 15px !important; margin-top: 15px; }
    .vibe-title { font-size: 26px; }
    
    .vibe-meta-bar { flex-direction: column; align-items: flex-start; gap: 15px; position: static !important; }
    .vibe-action-box { width: 100%; justify-content: flex-end; }
    .vibe-action-box .stats { margin-right: auto; } 
    
    .vibe-body-content { padding: 30px 0 60px; font-size: 16px; line-height: 1.7; }
    .vibe-body-content img { border-radius: 8px; margin: 15px 0; }
    
    .pswp img, .pswp__img { border-radius: 0 !important; margin: 0 !important; }

    .read-title-area { flex-direction: column; align-items: flex-start; gap: 8px; }
    .read-title-area h1 { font-size: 20px !important; }
    
    .author-signature-card { flex-direction: column !important; text-align: center !important; padding: 30px 20px 20px !important; margin: 50px 0 30px !important; border: 1px solid var(--zzan-border) !important; background: var(--zzan-menu-hover-bg) !important; border-radius: 16px !important; position: relative !important; }
    [data-theme='dark'] .author-signature-card { border-color: rgba(255, 255, 255, 0.1) !important; }
    .sig-pimg-wrap { position: absolute !important; top: -35px !important; left: 50% !important; transform: translateX(-50%) !important; margin-bottom: 0 !important; border: 4px solid var(--zzan-bg) !important; box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important; border-radius: 50% !important; width: 78px !important; height: 78px !important; }
    [data-theme='dark'] .sig-pimg-wrap { border-color: #1a1a1a !important; }
    .author-signature-card .info { margin-top: 40px !important; }
    
    .zzan-author-recent { border: none !important; background: transparent !important; padding: 15px 0 !important; margin-top: 20px; }
    .zzan-author-recent .recent-header h4 { font-size: 13px; }
    .recent-list a { padding: 12px; border-radius: 12px; }

    .vote-btns { width: 100%; }
    .btn-zzan-interactive, .btn-blame-interactive { flex: 1; min-width: 0; height: 48px; font-size: 15px; }

    .vibe-meta-bar { flex-direction: row !important; align-items: center !important; gap: 10px !important; padding: 0 !important; position: static !important; justify-content: center !important; }
    .vibe-author-box { display: flex !important; flex-wrap: nowrap !important; align-items: center !important; justify-content: center !important; width: 100% !important; gap: 8px !important; margin: 0 auto !important; position: static !important; }
    
    .vibe-author-box .vibe-profile-img { order: 1 !important; margin: 0 !important; width: 28px !important; height: 28px !important; flex-shrink: 0 !important; }
    .vibe-author-box .nick { order: 2 !important; flex: 0 1 auto !important; margin: 0 !important; font-size: 14px !important; font-weight: 800 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 80px; }
    
    .vibe-author-box .stats.view { order: 3 !important; margin: 0 !important; display: inline-flex !important; align-items: center !important; gap: 3px !important; font-size: 12px !important; flex-shrink: 0 !important; }
    .vibe-author-box .stats.vote { order: 4 !important; margin: 0 !important; display: inline-flex !important; align-items: center !important; gap: 3px !important; font-size: 12px !important; flex-shrink: 0 !important; }
    .vibe-author-box .stats svg { width: 14px !important; height: 14px !important; }
    
    .vibe-author-box .vibe-action-box { 
        order: 5 !important; 
        display: inline-flex !important; 
        align-items: center !important; 
        margin: 0 !important; 
        width: auto !important; 
        position: static !important; 
        height: auto !important;
        flex-shrink: 0 !important;
    }
    
    .btn-vibe-action { background: transparent !important; border: none !important; padding: 0 !important; width: 24px !important; height: 24px !important; display: flex !important; align-items: center !important; justify-content: center !important; box-shadow: none !important; border-radius: 0 !important; }
    .btn-more-trigger.btn-vibe-action { background: transparent !important; border: none !important; color: #999 !important; }

    .vibe-action-box .zzan-pc-only { display: none !important; visibility: hidden; pointer-events: none; }
    .vibe-action-box .zzan-cmt-more-wrap { position: static !important; }
}
