/* Daufo Master Template - Central Command CSS 
    Logic: Variables -> Base -> Header -> List/Section -> Single Article -> Components -> Footer -> Responsive
*/

/* -------------------------------------------------------------------------- */
/* 1. 글로벌 변수 & 폰트 설정 (Central Variables)                             */
/* -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    /* 브랜드 컬러 및 기본 색상 */
    --brand-color: #1a1c2c;       /* Daufo Navy */
    --brand-accent: #e74c3c;      /* 포인트 레드 */
    --bg: #ffffff;
    --bg-secondary: #f8f9fa;
    --text: #1a1a2e;
    --text-main: #2c3e50;
    --text-muted: #6c757d;
    --border: #e9ecef;
    --border-dark: #2d2f3f;
    
    /* 레이아웃 규격 */
    --max-width: 1050px;
    --article-width: 800px;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.04);
    
    /* 폰트 스택 */
    --font-global: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* -------------------------------------------------------------------------- */
/* 2. 베이스 레이아웃 (Base Layout)                                           */
/* -------------------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-global);
    line-height: 1.8;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

main { padding: 40px 0 60px; min-height: 70vh; background-color: var(--bg-secondary); }

/* -------------------------------------------------------------------------- */
/* 3. 헤더 & 네비게이션 (Header & Navigation)                                 */
/* -------------------------------------------------------------------------- */

.site-header {
    background-color: var(--brand-color) !important; 
    border-bottom: 2px solid var(--border-dark); 
    padding: 20px 0;  /* 이렇게 'px'만 남겨야 정상적으로 적용됩니다 */
    width: 100%; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.header-container {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.site-logo {
    display: flex; 
    align-items: center; 
    text-decoration: none !important; 
    gap: 10px;
}

.logo-text {
    color: #ffffff !important; 
    font-size: 1.6rem !important; 
    font-weight: 900 !important; 
    letter-spacing: -0.05em !important; 
    text-transform: uppercase;
}

.site-nav {
    display: flex; 
    gap: 25px;
}

.nav-link {
    color: #ffffff; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 1rem; 
    transition: all 0.3s ease; 
    position: relative;
}

.nav-link:hover {
    color: #adb5bd;
}

.active-menu {
    border-bottom: 2px solid #ffffff !important;
    padding-bottom: 5px;
}

/* -------------------------------------------------------------------------- */
/* 4. 리스트 & 섹션 헤더 (List & Section Pages)                                */
/* -------------------------------------------------------------------------- */
.section-header { 
    border-bottom: 2px solid var(--border); 
    padding-bottom: 15px; 
    margin-bottom: 30px; 
}

.section-title { 
    margin: 0 0 5px 0; 
    font-size: 1.4rem; 
    font-weight: 700; 
    color: var(--text-main); 
}

.section-desc { 
    margin: 0; 
    color: var(--text-muted); 
    font-size: 0.95rem; 
}

.page-header { border-bottom: 2px solid var(--border); padding-bottom: 20px; margin-bottom: 40px; }
.page-title { margin: 0 0 8px 0; font-size: 1.6rem; font-weight: 900; color: #1a1a1a; letter-spacing: -0.03em; }
.page-desc { margin: 0; color: var(--text-muted); font-size: 1rem; font-weight: 500; }

/* -------------------------------------------------------------------------- */
/* 5. 포스트 아이템 카드 (Post List Cards)                                    */
/* -------------------------------------------------------------------------- */
.post-list { list-style: none; display: flex; flex-direction: column; gap: 25px; }

.post-item { 
    background: #ffffff; border-radius: 12px; padding: 30px; 
    box-shadow: var(--card-shadow); border: 1px solid var(--border); 
    transition: transform 0.2s, box-shadow 0.2s; 
}
.post-item:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }

.post-item-header { margin-bottom: 12px; }

.post-item-title { 
    text-decoration: none; color: #1a1a1a; font-size: 1.4rem; 
    font-weight: 800; line-height: 1.4; transition: color 0.2s; 
}
.post-item-title:hover { color: var(--brand-accent); }

.post-item-meta { 
    font-size: 0.9rem; color: #adb5bd; margin-bottom: 18px; 
    display: flex; align-items: center; gap: 15px; 
}

.post-item-category { 
    background: #fff0f0; color: var(--brand-accent); 
    padding: 3px 12px; border-radius: 6px; 
    font-weight: 700; font-size: 0.8rem; 
}

.post-item-desc { 
    color: #495057; font-size: 1rem; line-height: 1.8; 
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; 
    overflow: hidden; overflow-wrap: break-word; 
}

/* -------------------------------------------------------------------------- */
/* 6. 본문 페이지 상세 (Single Post Detail)                                    */
/* -------------------------------------------------------------------------- */
article { max-width: var(--article-width); margin: 0 auto; }
.article-wrapper { max-width: 800px; margin: 0 auto; padding: 20px; }

article h1, .article-title { 
    font-size: 2.2rem; font-weight: 800; line-height: 1.3; 
    margin-bottom: 20px; letter-spacing: -0.02em; color: #1a1a1a; 
}

.article-meta { 
    margin-bottom: 30px; color: #888; font-size: 0.95rem; 
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px; 
}
.meta-divider { color: #eee; }

.article-content { 
    line-height: 2.0; color: #333; font-size: 1.125rem; 
    overflow-wrap: break-word; 
}

.featured-image-wrapper { margin-bottom: 40px; }
article .featured-image, .featured-image { 
    width: 100%; height: auto; max-height: 450px; object-fit: cover; 
    border-radius: 16px; margin-bottom: 30px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

article h3 { 
    margin-top: 35px; margin-bottom: 15px; font-size: 1.2rem; 
    color: var(--text); padding-bottom: 8px; border-bottom: 2px solid var(--border); 
}

article blockquote { 
    border-left: 4px solid var(--brand-accent); padding: 15px 20px; 
    margin: 20px 0; background: var(--bg-secondary); border-radius: 0 8px 8px 0; 
}

article img { max-width: 100%; border-radius: 8px; margin: 20px 0; height: auto; }

/* -------------------------------------------------------------------------- */
/* 7. 컴포넌트 & 제어 클래스 (Components)                                      */
/* -------------------------------------------------------------------------- */
.brand-text-highlight { color: var(--brand-accent); }

.pagination-wrapper, .list-pagination-wrapper { margin-top: 50px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 30px; }
.tag-list span { 
    background: var(--bg-secondary); color: var(--text-muted); 
    padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; 
}

.tag-badge { 
    color: var(--brand-accent); font-weight: 600; background: #fff5f5; 
    padding: 2px 8px; border-radius: 4px; font-size: 0.85rem;
}

.empty-warning, .empty-state-container { 
    text-align: center; padding: 100px 0; color: #adb5bd; 
    border: 2px dashed var(--border); border-radius: 15px; background: #fafafa;
}
.warning-text, .empty-text-main { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.warning-subtext, .empty-text-sub { font-size: 0.9rem; }
.empty-icon { font-size: 3rem; margin-bottom: 20px; }

/* ⚠️ 면책 조항 상세 */
.disclaimer-box { 
    background-color: var(--bg-secondary); border-left: 5px solid var(--brand-accent); 
    padding: 30px; margin-top: 80px; border-radius: 8px; 
    font-size: 0.9rem; line-height: 1.8; color: #555; 
}
.disclaimer-header { font-weight: 800; color: #222; margin-bottom: 15px; font-size: 1.1rem; display: flex; align-items: center; }
.disclaimer-icon { margin-right: 10px; font-size: 1.2rem; }
.disclaimer-text { margin-bottom: 12px; }
.disclaimer-notice { margin-top: 15px; padding-top: 15px; border-top: 1px solid #ddd; font-style: italic; color: #777; }

/* -------------------------------------------------------------------------- */
/* 8. 푸터 (Footer)                                                            */
/* -------------------------------------------------------------------------- */
.site-footer { background: var(--bg-secondary); padding: 60px 0; text-align: center; color: var(--text-muted); font-size: 0.85rem; border-top: 1px solid var(--border); }
.footer-nav { margin-bottom: 30px; display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.footer-link { color: #495057; text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: color 0.2s; }
.footer-link:hover { color: var(--brand-color); text-decoration: underline; }

.footer-info { color: #868e96; font-size: 0.85rem; line-height: 1.6; }