/*
 Theme Name:   GeneratePress Child - Infozipp
 Template:     generatepress
 Description:  세금 전문 블로그 커스텀 테마
 Version:      1.0.0
*/

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
    --contrast: #1a202c;
    --contrast-2: #4a5568;
    --contrast-3: #a0aec0;
    --base: #e2e8f0;
    --base-2: #f7fafc;
    --base-3: #ffffff;
    --accent: #2b6cb0;
}

body {
    font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: var(--contrast);
    background-color: #f7fafc;
}

/* ===== 헤더 ===== */
.site-header {
    background-color: #1a365d;
    border-bottom: 3px solid #2b6cb0;
}

.main-title a, .main-title a:hover {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.4em;
}

.site-description {
    color: #bee3f8 !important;
    font-size: 0.85em;
}

/* ===== 네비게이션 ===== */
.main-navigation, .main-navigation ul ul {
    background-color: #1a365d;
}

.main-navigation .main-nav ul li a {
    color: #e2e8f0 !important;
    font-weight: 500;
    font-size: 0.95em;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: #90cdf4 !important;
}

/* ===== 글 컨테이너 ===== */
.separate-containers .inside-article {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 48px;
}

/* ===== 타이포그래피 ===== */
h1.entry-title, h1.entry-title a {
    font-weight: 800;
    font-size: 2em;
    color: #1a202c;
    line-height: 1.3;
}

h2 {
    font-weight: 700;
    font-size: 1.5em;
    color: #1a365d;
    margin-top: 2.5em;
    margin-bottom: 0.8em;
    padding-bottom: 0.4em;
    border-bottom: 2px solid #e2e8f0;
}

h3 {
    font-weight: 600;
    font-size: 1.2em;
    color: #2d3748;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
}

/* ===== 본문 ===== */
.entry-content p {
    margin-bottom: 1.5em;
    color: #2d3748;
}

.entry-content strong {
    color: #1a202c;
    font-weight: 600;
}

.entry-content ul, .entry-content ol {
    margin-bottom: 1.5em;
}

.entry-content li {
    margin-bottom: 0.5em;
    line-height: 1.7;
}

/* ===== 테이블 ===== */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95em;
    border-radius: 8px;
    overflow: hidden;
}

.entry-content th {
    background-color: #1a365d;
    color: #ffffff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.entry-content td {
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.entry-content tr:nth-child(even) {
    background-color: #f7fafc;
}

.entry-content tr:hover {
    background-color: #ebf8ff;
}

/* ===== 링크 ===== */
.entry-content a {
    color: #2b6cb0;
    text-decoration: none;
    border-bottom: 1px solid #bee3f8;
    transition: all 0.2s;
}

.entry-content a:hover {
    color: #1a365d;
    border-bottom-color: #2b6cb0;
}

/* ===== 인용 ===== */
.entry-content blockquote {
    border-left: 4px solid #2b6cb0;
    background-color: #ebf8ff;
    padding: 20px 24px;
    margin: 1.5em 0;
    border-radius: 0 8px 8px 0;
    font-style: normal;
}

/* ===== 푸터 ===== */
.site-info {
    background-color: #1a365d;
    color: #e2e8f0;
    font-size: 0.85em;
}

.site-info a {
    color: #90cdf4;
}

/* ===== Back to top ===== */
a.generate-back-to-top {
    background-color: #1a365d;
    border-radius: 50%;
}

a.generate-back-to-top:hover {
    background-color: #2b6cb0;
}

/* ===== 사이드바 제거 (깔끔한 단일 컬럼) ===== */
.sidebar {
    display: none;
}

#right-sidebar {
    display: none;
}

body:not(.no-sidebar) .site-content {
    max-width: 800px;
    margin: 0 auto;
}

/* ===== 반응형 ===== */
@media (max-width: 768px) {
    .separate-containers .inside-article {
        padding: 24px;
        border-radius: 0;
    }
    h1.entry-title, h1.entry-title a {
        font-size: 1.5em;
    }
    h2 {
        font-size: 1.3em;
    }
    body {
        font-size: 16px;
    }
}
