/* simple_community Board Skin - Read Styles */

/* Read Style */
.board_read { padding: 0; }
.read_header { padding: 40px; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); background: #fcfdfe; }
.read_title { font-size: 26px; font-weight: 800; color: var(--text-main); margin-bottom: 15px; letter-spacing: -0.5px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; line-height: 1.3; }
.read_notice_badge { 
    display: inline-flex; align-items: center; justify-content: center; 
    width: 24px; height: 24px; background: #f59e0b; color: #fff; 
    border-radius: 6px; flex-shrink: 0; 
}
.read_notice_badge svg { width: 16px; height: 16px; }
.read_meta { color: var(--text-mute); font-size: 13px; display: flex; gap: 25px; align-items: center; }
.signature img[src*="modules/point/icons"] { display:none !important; }
.read_meta .author { color: var(--text-main); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; margin-right: 15px; }
.read_meta .author .profile_img { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; background: #f1f5f9; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.read_meta .author .profile_img img { width: 100%; height: 100%; object-fit: cover; }
.read_meta .author .profile_img .no_img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #cbd5e1; }
.read_meta .author .profile_img .no_img svg { width: 14px; height: 14px; }
.read_content { padding: 40px; min-height: 300px; font-size: 16px; line-height: 1.8; color: #334155; }
.read_content img { max-width: 100%; height: auto !important; border-radius: 12px; margin: 15px 0; }

/* PhotoSwipe Overrides */
.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; }
.pswp--open { overflow: hidden !important; }

/* Read Footer (Tags & Actions) */
.read_footer_wrap { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 0 40px 40px 40px; background: #fff; gap: 20px;
}
.read_tags { padding: 0; background: transparent; flex: 1; min-width: 0; }
.tags_list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }

.read_footer_actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn_action { 
    width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; 
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; color: #64748b; 
    cursor: pointer; transition: 0.2s; padding: 0;
}
.btn_action svg { width: 18px; height: 18px; }
.btn_action:hover { background: #f1f5f9; color: var(--point-color); border-color: var(--point-color); transform: translateY(-1px); }

.more_menu_wrap { position: relative; }
.read_more_dropdown { 
    position: absolute; right: 0; bottom: calc(100% + 10px); min-width: 160px; 
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); padding: 8px; z-index: 100; 
    list-style: none; margin: 0; display: none;
}
.read_more_dropdown.active { display: block; animation: dropdownFadeIn 0.2s ease; }
.read_more_dropdown li { margin: 0; }
.read_more_dropdown li a { 
    display: block; padding: 10px 15px; font-size: 13px; font-weight: 600; 
    color: var(--text-sub); text-decoration: none; border-radius: 6px; transition: 0.2s;
}
.read_more_dropdown li a:hover { background: #f1f5f9; color: var(--point-color); }
.read_more_dropdown li.divider { height: 1px; background: #f1f5f9; margin: 6px 8px; }

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tablet Responsive */
@media screen and (max-width: 1024px) {
    .author_activity_lists { flex-direction: column; }
    .author_activity_lists > div:first-child { border-right: none !important; border-bottom: 1px solid #f1f5f9; }
    .author_activity_lists .recent_list li:nth-child(n+3) { display: none; }
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .read_footer_wrap { flex-direction: column; align-items: flex-start; padding: 0 20px 30px 20px; }
    .read_footer_actions { align-self: flex-end; }
    .author_activity_lists { flex-direction: column !important; }
    .author_activity_lists > div:first-child { border-right: none !important; border-bottom: 1px solid #f1f5f9; }
}

.tag_item { 
    display: inline-flex; align-items: center; padding: 6px 12px; 
    background: #f1f5f9; color: var(--text-sub); border-radius: 8px; 
    font-size: 13px; font-weight: 700; text-decoration: none; transition: 0.2s;
}
.tag_item:hover { background: var(--point-color); color: #fff; transform: translateY(-1px); }

.read_vote { padding: 40px; display: flex; justify-content: center; gap: 15px; background: #fff; border-top: 1px solid var(--border-color); }
.btn_vote { 
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 25px; 
    border-radius: 50px; border: 1px solid var(--border-color); background: #fff; 
    font-size: 14px; font-weight: 800; cursor: pointer; transition: 0.2s; color: var(--text-sub);
}
.btn_vote svg { width: 18px; height: 18px; fill: currentColor; }
.btn_vote .count { font-size: 16px; min-width: 20px; text-align: center; }
.btn_vote:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.08); border-color: #cbd5e1; color: var(--text-main); }
.btn_vote.up:hover { background: #fff1f2; border-color: #fda4af; color: #e11d48; }
.btn_vote.down:hover { background: #f8fafc; border-color: #cbd5e1; color: #475569; }

.read_files { padding: 20px 40px; background: #f8fafc; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.read_files h3 { margin-bottom: 10px; font-size: 14px; color: var(--point-color); }
.read_files ul { list-style: none; padding: 0; }
.read_files li a { color: var(--text-sub); text-decoration: none; font-size: 13px; }
.read_files li a:hover { color: var(--point-color); }

/* Category in Read Page */
.read_title .read_category { flex-shrink: 0; display: inline-flex; }
.read_title .read_category a { 
    display: inline-flex; align-items: center; justify-content: center;
    padding: 4px 12px; background-color: var(--point-color); color: #fff; 
    border-radius: 6px; font-size: 13px; font-weight: 800; text-decoration: none;
    line-height: 1; border: 1px solid rgba(0,0,0,0.05); transition: 0.2s;
}
.read_title .read_category a:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }

/* Author Activity Style (Read Page Footer) */
.author_activity_area { padding: 25px 40px; border-top: 1px solid var(--border-color); background: #fff; display: flex; flex-direction: column; gap: 25px; }

.author_profile { display: flex; align-items: center; gap: 20px; }
.author_profile .profile_img { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: #f1f5f9; flex-shrink: 0; }
.author_profile .profile_img img { width: 100%; height: 100%; object-fit: cover; }
.author_profile .profile_img .no_img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #cbd5e1; }
.author_profile .profile_img .no_img svg { width: 32px; height: 32px; }
.author_profile .nick { font-size: 16px; font-weight: 800; color: var(--text-main); text-decoration: none; }

.author_profile .nick_area { display: flex; align-items: center; gap: 10px; }
.author_profile .user_level { font-size: 10px; font-weight: 800; color: #fff; background: var(--point-color); padding: 2px 6px; border-radius: 4px; line-height: 1; text-transform: uppercase; }

.author_profile .exp_gauge_wrap { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.author_profile .exp_bar { width: 120px; height: 6px; background: #e2e8f0; border-radius: 10px; overflow: hidden; position: relative; }
.author_profile .exp_fill { position: absolute; left: 0; top: 0; height: 100%; background: linear-gradient(to right, var(--point-color), #818cf8); border-radius: 10px; transition: width 0.5s ease; }
.author_profile .exp_text { font-size: 11px; font-weight: 700; color: var(--text-mute); font-family: 'Lexend', sans-serif; }

.author_profile .signature { font-size: 13px; color: var(--text-sub); margin-top: 8px; line-height: 1.5; }

.author_activity_lists { display: flex; gap: 0; border: 1px solid #f1f5f9; border-radius: 12px; overflow: hidden; background: #fafcfe; margin-top: 10px; box-sizing: border-box; width: 100%; max-width: 100%; }
.author_activity_lists > div { flex: 1; min-width: 0; padding: 20px; box-sizing: border-box; }
.author_activity_lists > div:first-child { border-right: 1px solid #f1f5f9; }

.author_activity_lists .recent_title { font-size: 11px; font-weight: 800; color: var(--point-color); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 6px; }
.author_activity_lists .recent_title::before { content: ''; width: 3px; height: 12px; background: var(--point-color); border-radius: 2px; }
.author_activity_lists .recent_list { list-style: none; padding: 0; margin: 0; }
.author_activity_lists .recent_list li { padding: 6px 8px; border-bottom: 1px solid #edf2f7; border-radius: 6px; transition: 0.2s; }
.author_activity_lists .recent_list li:last-child { border-bottom: none; }
.author_activity_lists .recent_list li:hover { background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.03); }
.author_activity_lists .recent_list li a { display: flex; justify-content: space-between; align-items: center; text-decoration: none; font-size: 13px; color: var(--text-sub); transition: 0.2s; gap: 15px; }
.author_activity_lists .recent_list li a:hover { color: var(--point-color); }
.author_activity_lists .recent_list li .title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.author_activity_lists .recent_list li .date { color: var(--text-mute); font-size: 11px; flex-shrink: 0; }
.author_activity_lists .recent_list li.no_data { font-size: 12px; color: var(--text-mute); padding: 40px 0; text-align: center; width: 100%; }
