/* 
Theme: Warm-Trust High Readability Tistory Skin
Author: HTML Premium Skin Generator
*/

:root {
    --primary-color: #f97316;
    --primary-hover: #ea580c;
    --secondary-color: #0f766e;
    --bg-light: #f8fafc;
    --text-main: #334155;
    --text-title: #0f172a;
}

body.tistory-skin-body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7;
}

/* 레이아웃 폭 정의 (구글 SEO 기준 가속도 레이아웃) */
.inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0;
}

.logo a {
    color: var(--text-title);
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    border-left: 5px solid var(--primary-color);
    padding-left: 12px;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Grid 본문 정밀 배치 */
.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
}

@media (min-width: 1024px) {
    .grid-container {
        grid-template-columns: 8fr 4fr;
    }
    .grid-container.sidebar-left {
        grid-template-columns: 4fr 8fr;
    }
    .grid-container.sidebar-left #main {
        order: 2;
    }
    .grid-container.sidebar-left #sidebar {
        order: 1;
    }
}

/* 본문 가독성 최대화 설계 */
.entry-content {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 40px;
}

.entry-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.entry-header .category {
    font-size: 13px;
    font-weight: bold;
    color: var(--primary-color);
}

.entry-header .title a {
    color: var(--text-title);
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
}

/* 실제 포스팅 내 텍스트 정밀 포매팅 */
.article-body {
    font-size: 18px;
    color: #334155;
    line-height: 1.8;
}

.article-body h2, .article-body h3, .article-body h4 {
    color: var(--text-title);
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-body p {
    margin-bottom: 24px;
}

/* 광고 연동 영역 */
.adsense-top-wrap, .adsense-bottom-wrap, .adsense-sidebar {
    background-color: #fffbeb;
    border: 1px dashed #fcd34d;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

/* 사이드바 위젯 데코레이션 */
#sidebar .widget {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    margin-bottom: 24px;
}

.profile-card {
    text-align: center;
}

.profile-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 12px;
}

.profile-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-title);
}

.profile-desc {
    font-size: 13px;
    color: #64748b;
}

#footer {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 40px 0;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}