/*
Theme Name: Meta Know Theme
Theme URI: https://allmetaknow.com
Author: AllMetaKnow Team
Author URI: https://allmetaknow.com
Description: 세상의 모든 지식을 제공하는 커스텀 워드프레스 테마. 위키피디아, 블로그, 지식베이스가 결합된 혼합형 지식 플랫폼을 위한 테마입니다.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: meta-know
Tags: blog, knowledge-base, education, responsive, custom-colors, featured-images, threaded-comments

Meta Know Theme, Copyright 2025 AllMetaKnow Team
Meta Know Theme is distributed under the terms of the GNU GPL
*/

/* ==========================================================================
   기본 리셋 및 베이스 스타일
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 색상 변수 */
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    
    /* 타이포그래피 */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* 간격 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* 전환 효과 */
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* ==========================================================================
   타이포그래피
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   레이아웃
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.site-header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-md) 0;
}

.site-main {
    padding: var(--spacing-xl) 0;
    min-height: calc(100vh - 200px);
}

.site-footer {
    background-color: var(--text-color);
    color: #ffffff;
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xl);
}

/* ==========================================================================
   유틸리티 클래스
   ========================================================================== */

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: var(--spacing-sm); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.py-2 { padding: var(--spacing-md) 0; }

/* 반응형 설정 */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
}

