/* GeneratePress 스타일 기본 CSS */
:root {
    --primary-color: #0073aa;
    --secondary-color: #005a87;
    --accent-color: #00a0d2;
    --text-color: #333333;
    --light-text: #666666;
    --border-color: #e1e1e1;
    --background-color: #ffffff;
    --light-background: #f8f9fa;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 6px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--light-text);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

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

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
}

/* Header */
.site-header {
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: var(--text-color);
}

.site-description {
    font-size: 0.9rem;
    color: var(--light-text);
    margin: 0;
    font-weight: 400;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    margin-left: 2rem;
}

.menu-item a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

.menu-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.menu-item a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle-icon {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-color);
    position: relative;
    transition: var(--transition);
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

.menu-toggle-icon::before {
    top: -6px;
}

.menu-toggle-icon::after {
    bottom: -6px;
}

.menu-toggle.toggled .menu-toggle-icon {
    background: transparent;
}

.menu-toggle.toggled .menu-toggle-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.toggled .menu-toggle-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Main Content */
.site-main {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    padding: 4rem 0;
    background: var(--light-background);
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
}

.welcome-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.welcome-description {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.post-card-inner {
    padding: 1.5rem;
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.entry-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.entry-title a {
    color: var(--text-color);
}

.entry-title a:hover {
    color: var(--primary-color);
}

.entry-summary {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.entry-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--light-text);
    flex-wrap: wrap;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Content Blocks */
.additional-content {
    margin-top: 4rem;
}

.content-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.content-block {
    text-align: center;
    padding: 2rem;
    background: var(--light-background);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.content-block h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.content-block p {
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary {
    background: var(--light-text);
    color: white;
}

.btn-secondary:hover {
    background: var(--text-color);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Footer */
.site-footer {
    background: var(--text-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-widget p {
    color: #ccc;
    margin-bottom: 1rem;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    color: #ccc;
}

.footer-menu a:hover {
    color: white;
}

.site-info {
    border-top: 1px solid #444;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    color: #ccc;
}

.powered-by a {
    color: var(--accent-color);
}

/* Utility Classes */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: var(--border-radius);
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .site-header .container {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
    }
    
    .site-branding {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .main-navigation {
        width: 100%;
    }
    
    .menu-toggle {
        display: block;
        margin-left: auto;
    }
    
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--background-color);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--box-shadow);
    }
    
    .menu.toggled {
        display: flex;
    }
    
    .menu-item {
        margin: 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .menu-item a {
        display: block;
        padding: 1rem;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .content-blocks {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .welcome-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .welcome-title {
        font-size: 1.8rem;
    }
    
    .post-card-inner {
        padding: 1rem;
    }
    
    .entry-title {
        font-size: 1.1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --light-text: #000000;
        --background-color: #ffffff;
        --light-background: #f0f0f0;
    }
}
