/*
Theme Name: LUCEMERO Original Design
Author: LUCEMERO
Version: 2.0
*/

:root {
    --bg-color: #fdfbf7;
    --sidebar-color: #111111;
    --accent-color: #d4ff3f; 
    --sidebar-width: 240px;
    --transition-speed: 0.5s;
    --dark-brown: #4A3B31;
}

/* 기본 설정 */
html { font-size: 18px; }

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: #1a1a1a;
    margin: 0;
    overflow: hidden;
    line-height: 1.6;
}

h1, h2, h3, .serif { font-family: 'Noto Serif KR', serif; }

/* [Layout Framework] */
.app-wrapper { display: flex; height: 100vh; width: 100vw; overflow: hidden; position: relative; }

/* Sidebar */
aside#main-sidebar {
    width: var(--sidebar-width); height: 100vh; background-color: var(--sidebar-color); color: white;
    display: flex; flex-direction: column; justify-content: space-between; padding: 100px 0 50px;
    flex-shrink: 0; z-index: 100; position: relative;
    transition: margin-left var(--transition-speed) cubic-bezier(0.19, 1, 0.22, 1), opacity var(--transition-speed);
}
.sidebar-collapsed aside#main-sidebar { margin-left: calc(var(--sidebar-width) * -1); opacity: 0; }
.aside-inner { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 0 15px; overflow: hidden; }

/* Toggle Button */
.sidebar-toggle {
    position: fixed; left: 20px; top: 20px; width: 44px; height: 44px;
    background: var(--sidebar-color); color: white; display: flex;
    align-items: center; justify-content: center; cursor: pointer;
    border-radius: 8px; font-size: 20px; z-index: 200; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: all 0.3s ease;
}
.sidebar-toggle:hover { background: #222; transform: scale(1.05); }

/* Logo Area */
.logo-area { cursor: pointer; margin-bottom: 40px; }
.logo-text { font-size: 2rem; font-weight: 900; letter-spacing: -1.5px; line-height: 1; }

/* Main Navigation */
#sidebar-nav ul { list-style: none; padding: 0; margin: 0; }
#sidebar-nav ul li { border-top: 1px solid #222; position: relative; }
#sidebar-nav ul li a {
    display: block; padding: 18px 0; font-size: 1.25rem;
    font-family: 'Noto Serif KR', serif; font-weight: 700;
    cursor: pointer; color: #666; text-decoration: none; transition: 0.3s;
}
#sidebar-nav ul li a.active, #sidebar-nav ul li:hover > a { color: white; }

/* LNB & Contact */
.lnb-area { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.19, 1, 0.22, 1); margin-left: 15px; pointer-events: none; }
#sidebar-nav ul li:hover .lnb-area { max-height: 250px; padding-bottom: 15px; transition-delay: 0.2s; pointer-events: auto; }
.lnb-link { display: block; padding: 6px 0; font-size: 0.95rem; color: #444; cursor: pointer; transition: 0.2s; font-weight: 500; }
.lnb-link:hover { color: #aaa; } .lnb-link.active { color: var(--accent-color); font-weight: 700; padding-left: 10px; }

.contact-wrapper { position: relative; width: calc(100% + 60px); margin-left: -30px; }
.contact-options { position: absolute; bottom: 100%; left: 0; width: 100%; background: #1a1a1a; max-height: 0; overflow: hidden; transition: max-height 0.4s; display: flex; flex-direction: column; }
.contact-wrapper:hover .contact-options { max-height: 200px; border-top: 1px solid #333; transition-delay: 0.15s; }
.contact-opt-link { padding: 15px 30px; font-size: 0.8rem; font-weight: 700; color: #888; text-transform: uppercase; cursor: pointer; transition: all 0.3s; display: flex; justify-content: space-between; }
.contact-opt-link:hover { color: white; background: #222; }
.contact-btn { background-color: var(--accent-color); color: black; padding: 24px 30px; width: 100%; display: flex; justify-content: space-between; font-weight: 900; cursor: pointer; text-transform: uppercase; font-size: 1rem; border: none; }

/* [Main Views] */
.main-viewport { flex: 1; height: 100vh; position: relative; overflow: hidden; }

/* View: About (Horizontal) */
#view-about { display: flex; flex-direction: row; height: 100%; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; background: white; }
#view-about::-webkit-scrollbar { display: none; }

.section-horizontal { min-width: 100%; height: 100%; flex-shrink: 0; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; padding: 0 5vw; box-sizing: border-box; }

/* View: Chero, Column, Auth (Vertical) */
.view-vertical { display: none; width: 100%; height: 100%; overflow-y: auto; background: white; padding: 100px 8vw; scroll-behavior: smooth; }

/* Content Container */
.content-container { width: 100%; max-width: 960px; text-align: left; position: relative; }

/* Journey Section */
.journey-sequence { margin-top: 50px; display: flex; flex-direction: column; position: relative; }
.journey-sequence::before { content: ''; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 1px; background: #eee; }
.journey-step { position: relative; padding-left: 60px; padding-bottom: 40px; }
.journey-step h4 { font-size: 1.5rem; margin: 0 0 8px 0; font-family: 'Noto Serif KR', serif; font-weight: 800; }
.journey-step p { font-size: 1.1rem; color: #666; margin: 0; }
.step-dot { position: absolute; left: 0; top: 4px; width: 40px; height: 40px; background: white; border: 2px solid #1a1a1a; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 900; }

/* Footer Section */
#section-footer { background-color: var(--dark-brown); color: white; text-align: center; }
#section-footer .footer-text { font-size: 2.5rem; line-height: 1.5; font-weight: 700; letter-spacing: -1px; margin-bottom: 40px; }
.footer-page-num { position: absolute; bottom: 40px; right: 40px; font-size: 1rem; color: rgba(255,255,255,0.3); font-weight: 700; }
.cta-btn-footer { padding: 14px 42px; font-size: 1rem; font-weight: 900; border: 1px solid rgba(255,255,255,0.4); border-radius: 99px; color: white; text-transform: uppercase; transition: all 0.3s; background: transparent; cursor: pointer; letter-spacing: 1px; }
.cta-btn-footer:hover { background: white; color: var(--dark-brown); transform: translateY(-3px) scale(1.05); }

/* Components & Helpers */
.tag { font-size: 11px; font-weight: 900; color: #8b9d6a; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; display: block; }
.text-accent { color: #8b9d6a; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.shortcut-btn { padding: 12px 32px; font-size: 0.95rem; font-weight: 800; border: 2px solid #1a1a1a; border-radius: 99px; transition: 0.3s; text-transform: uppercase; margin-top: 25px; display: inline-block; cursor: pointer; }
.shortcut-btn:hover { background: #1a1a1a; color: white; }

/* Scrollbar & Inputs */
.posts-scroll-area { max-height: 60vh; overflow-y: auto; padding-right: 10px; }
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #f1f1f1; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chero-input-box { background: #fafafa; padding: 25px; border-radius: 20px; border: 1px solid #eee; margin-bottom: 40px; }
.chero-input-box input { width: 100%; background: white; border: 1px solid #eee; padding: 15px 20px; border-radius: 12px; font-size: 0.95rem; outline: none; }
.community-feed { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 800px; }

/* [Auth: Login & Join Styles] */
.auth-area { display: flex; gap: 12px; margin-bottom: 40px; font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; opacity: 0.4; transition: opacity 0.3s; }
.auth-area:hover { opacity: 1; }
.auth-link { cursor: pointer; transition: color 0.3s; }
.auth-link:hover { color: var(--accent-color); }
.auth-divider { color: #444; }

.auth-container { max-width: 400px; margin: 0 auto; text-align: center; width: 100%; }
.auth-input { width: 100%; padding: 16px; margin-bottom: 12px; border: 1px solid #eee; border-radius: 12px; outline: none; transition: border-color 0.3s; font-size: 0.95rem; box-sizing: border-box; }
.auth-input:focus { border-color: #111; }
.auth-submit-btn { width: 100%; padding: 16px; background: #111; color: white; border-radius: 12px; font-weight: 700; margin-top: 10px; transition: opacity 0.3s; border: none; cursor: pointer; font-size: 1rem; }
.auth-submit-btn:hover { opacity: 0.9; }
.social-login-btn { width: 100%; padding: 14px; border: 1px solid #eee; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; margin-top: 20px; cursor: pointer; transition: background 0.3s; font-size: 0.9rem; }
.social-login-btn:hover { background: #fafafa; }


/* [My Page Dashboard Styling] */
.dashboard-container { width: 100%; max-width: 900px; margin: 0 auto; text-align: left; }

.my-profile-header { display: flex; align-items: center; gap: 24px; margin-bottom: 50px; padding-bottom: 30px; border-bottom: 2px solid #f0f0f0; }
.my-avatar { width: 80px; height: 80px; border-radius: 50%; background: #111; color: var(--accent-color); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 900; flex-shrink: 0; }

.my-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 60px; }
.stat-card { background: #fafafa; padding: 24px; border-radius: 20px; border: 1px solid #eee; text-align: center; transition: 0.3s; }
.stat-card:hover { border-color: var(--accent-color); transform: translateY(-5px); }
.stat-card .val { display: block; font-size: 2.2rem; font-weight: 900; color: #111; margin-bottom: 8px; line-height: 1; }
.stat-card .label { font-size: 0.75rem; font-weight: 800; color: #aaa; text-transform: uppercase; letter-spacing: 1px; }

.activity-section h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 20px; font-family: 'Noto Serif KR', serif; }

.activity-item { padding: 20px 0; border-bottom: 1px solid #f0f0f0; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.activity-meta { font-size: 10px; font-weight: 900; color: #8b9d6a; text-transform: uppercase; letter-spacing: 1px; }
.activity-title { font-size: 1rem; font-weight: 700; color: #222; }
.activity-preview { font-size: 0.9rem; color: #888; line-height: 1.5; font-weight: 300; }

.history-card { display: flex; gap: 20px; background: white; padding: 20px; border-radius: 16px; border: 1px solid #eee; margin-bottom: 12px; align-items: center; transition: 0.3s; cursor: pointer; text-align: left; }
.history-card:hover { border-color: var(--accent-color); transform: translateX(5px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.history-date { font-size: 0.75rem; font-weight: 900; color: #ccc; min-width: 80px; }
.history-title { font-size: 0.95rem; font-weight: 700; color: #333; }

/* [Filter Tabs] */
.editorial-filter { display: flex; gap: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.filter-tab { font-size: 14px; font-weight: 700; color: #aaa; cursor: pointer; transition: 0.2s; white-space: nowrap; }
.filter-tab:hover { color: #666; }
.filter-tab.active { color: #111; border-bottom: 2px solid #111; padding-bottom: 8px; }

/* [Mobile Media Queries] */
@media (max-width: 768px) {
    .my-profile-header { flex-direction: column; text-align: center; gap: 15px; }
    .my-stats-grid { grid-template-columns: 1fr; }
    .dashboard-container .grid { grid-template-columns: 1fr; }
    .club-modal-content { width: 95vw; max-height: 90vh; padding: 32px 24px; }
}

/* [Club Modal Overlay] */
.club-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.club-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.club-modal-content {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    width: 560px;
    max-width: 95vw;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}
.club-modal-overlay.active .club-modal-content {
    transform: translateY(0) scale(1);
}
.club-modal-close {
    position: absolute;
    top: 20px; right: 24px;
    font-size: 1.25rem;
    font-weight: 900;
    cursor: pointer;
    background: none;
    border: none;
    color: #999;
    transition: color 0.2s, transform 0.2s;
    padding: 4px 8px;
}
.club-modal-close:hover {
    color: #000;
    transform: rotate(90deg);
}

/* [Naver Search Style - Article List] */
.nv-article-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #ebebeb;
    cursor: pointer;
    line-height: 1.4;
}
.nv-article-item:hover { background-color: #fafafa; margin: 0 -12px; padding: 14px 12px; border-radius: 8px; border-color: transparent; }

/* 공지 고정 */
.nv-article-item.nv-notice {
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 4px;
}
.nv-article-item.nv-notice:hover { background: #f2f2f2; margin: 0 0 4px 0; padding: 12px 14px; }

/* 번호 */
.nv-article-num {
    font-size: 15px;
    font-weight: 800;
    color: #bbb;
    min-width: 20px;
    text-align: center;
    line-height: 1;
    padding-top: 2px;
    flex-shrink: 0;
}

/* 텍스트 영역 */
.nv-article-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* 메타 */
.nv-article-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #999;
    font-weight: 400;
    line-height: 1;
}
.nv-badge-cat { color: #555; font-weight: 600; }
.nv-badge-notice {
    background: #ff4444; color: white;
    font-size: 9px; font-weight: 800;
    padding: 2px 5px; border-radius: 3px;
}

/* 제목 */
.nv-article-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nv-article-item:hover .nv-article-title { text-decoration: underline; text-underline-offset: 2px; }

/* 요약 */
.nv-article-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 1px 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 썸네일 (네이버 검색 비율: 가로형) */
.nv-article-thumb {
    width: 118px;
    height: 78px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
    margin-top: 2px;
}
.nv-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.nv-article-item:hover .nv-article-thumb img { transform: scale(1.05); }

/* 모바일 */
@media (max-width: 768px) {
    .nv-article-item { gap: 10px; padding: 12px 0; }
    .nv-article-num { font-size: 13px; min-width: 16px; padding-top: 1px; }
    .nv-article-body { gap: 2px; }
    .nv-article-meta { font-size: 10px; }
    .nv-article-title { font-size: 14px; }
    .nv-article-desc { font-size: 12px; -webkit-line-clamp: 2; color: #777; }
    .nv-article-thumb { width: 90px; height: 60px; border-radius: 5px; }
    .nv-article-item.nv-notice { padding: 10px 12px; }
    .nv-article-item:hover { margin: 0 -8px; padding: 12px 8px; }
    .nv-article-item.nv-notice:hover { margin: 0 0 4px 0; padding: 10px 12px; }
}

/* ============================================
   본문 가독성 개선 (2026.02.13)
   ============================================ */

/* 아티클 리스트 영역 — line-height 리셋 */
#column-feed-container { line-height: 1.4; }

/* ============================================
   Single Post 본문 - 편집기 스타일 그대로
   ============================================ */

/* 제목들 강제 스타일 복원 */
.single-body h1 {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    font-family: 'Noto Serif KR', serif !important;
    margin: 1.5em 0 0.8em !important;
    line-height: 1.2 !important;
    color: #111 !important;
}

.single-body h2 {
    font-size: 2rem !important;
    font-weight: 800 !important;
    font-family: 'Noto Serif KR', serif !important;
    margin: 2.5em 0 1em !important;
    line-height: 1.3 !important;
    color: #111 !important;
    padding-bottom: 0.5em !important;
    border-bottom: 2px solid #f0f0f0 !important;
}

.single-body h3 {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    font-family: 'Noto Serif KR', serif !important;
    margin: 2em 0 0.8em !important;
    line-height: 1.4 !important;
    color: #222 !important;
}

.single-body h4 {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin: 1.5em 0 0.6em !important;
    color: #333 !important;
}

/* 문단 */
.single-body p {
    font-size: 1.05rem !important;
    line-height: 1.9 !important;
    margin-bottom: 1.8em !important;
    color: #2a2a2a !important;
}

/* 구분선 */
.single-body hr {
    margin: 3em 0 !important;
    border: none !important;
    border-top: 1px solid #e8e8e8 !important;
}

/* 리스트 */
.single-body ul,
.single-body ol {
    font-size: 1.05rem !important;
    line-height: 1.9 !important;
    margin: 1.5em 0 !important;
    padding-left: 1.8em !important;
}

.single-body li {
    margin-bottom: 0.8em !important;
}

/* 강조 */
.single-body strong,
.single-body b {
    font-weight: 800 !important;
    color: #111 !important;
}

/* 인용구 */
.single-body blockquote {
    border-left: 4px solid var(--accent-color) !important;
    padding: 1.5em !important;
    margin: 2em 0 !important;
    background: #fafafa !important;
    border-radius: 8px !important;
    font-style: italic !important;
    color: #555 !important;
}

/* 이미지 */
.single-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    margin: 2em 0 !important;
    display: block !important;
}

/* 링크 */
.single-body a {
    color: #111 !important;
    text-decoration: underline !important;
    text-decoration-color: var(--accent-color) !important;
    text-underline-offset: 3px !important;
}

.single-body a:hover {
    color: var(--accent-color) !important;
}
