/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    line-height: 1.6;
    color: #e0e0e0 !important;
    background-color: #2a2a2a !important;
}

a {
    text-decoration: none;
    color: #a5c7e9;
}

a:hover {
    color: #c9d9f0;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

/* 헤더 스타일 */
.site-header {
    background-color: #333333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    padding: 20px 0 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h1 {
    font-size: 1.8rem;
}

.logo a {
    color: #e0e0e0;
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    color: #c0c0c0;
    font-weight: 500;
}

.main-nav a:hover {
    color: #a5c7e9;
}

.search-icon {
    font-style: normal;
    cursor: pointer;
    color: #c0c0c0;
}

.search-container {
    background-color: #3a3a3a;
    padding: 15px 0;
    margin-top: 20px;
    display: none;
}

.search-container.active {
    display: block;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
}

.search-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #555;
    border-radius: 3px 0 0 3px;
    font-size: 1rem;
    background-color: #444;
    color: #e0e0e0;
}

.search-form button {
    padding: 10px 20px;
    background-color: #7c98b3;
    color: #fff;
    border: none;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-form button:hover {
    background-color: #a5c7e9;
}

/* 사이드바 스타일 */
.sidebar {
    width: 100%;
}

.sidebar-widget {
    background-color: #333333;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sidebar-widget h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
    font-size: 1.2rem;
    color: #d0d0d0;
}

.profile-image {
    text-align: center;
    margin-bottom: 15px;
}

.profile-image img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid #444;
}

/* 미니 포스트 스타일 */
.mini-post {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.mini-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mini-post-thumbnail {
    flex: 0 0 80px;
    margin-right: 15px;
}

.mini-post-thumbnail img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
}

.mini-post-content h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.mini-post-date {
    font-size: 0.8rem;
    color: #999;
}

/* 카테고리 리스트 스타일 */
.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #444;
    color: #c0c0c0;
    transition: color 0.2s ease;
}

.category-list a:hover {
    color: #a5c7e9;
}

.category-count {
    background-color: #444;
    color: #c0c0c0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* 뉴스레터 폼 스타일 */
.newsletter-form {
    margin-top: 15px;
}

.newsletter-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #555;
    border-radius: 3px;
    background-color: #444;
    color: #e0e0e0;
}

.newsletter-form button {
    width: 100%;
    padding: 10px;
    background-color: #7c98b3;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.newsletter-form button:hover {
    background-color: #a5c7e9;
}

/* 메인 컨텐츠 스타일 */
main {
    flex: 1;
}

.blog-posts {
    background-color: #333333;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 20px;
}

.post {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
}

.post:last-child {
    margin-bottom: 15px;
    padding-bottom: 0;
    border-bottom: none;
}

.post-header {
    margin-bottom: 15px;
}

.post-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.post-title a {
    color: #d0d0d0;
}

.post-title a:hover {
    color: #a5c7e9;
}

.post-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 15px;
}

.post-meta span {
    margin-right: 15px;
}

.post-content p {
    margin-bottom: 15px;
}

.post-footer {
    margin-top: 20px;
}

.read-more {
    display: inline-block;
    background-color: #7c98b3;
    color: #fff;
    padding: 8px 15px;
    border-radius: 3px;
    font-size: 0.9rem;
}

.read-more:hover {
    background-color: #a5c7e9;
    color: #fff;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 3px;
}

.pagination a {
    background-color: #444;
    color: #c0c0c0;
}

.pagination a:hover {
    background-color: #555;
}

.pagination .current-page {
    background-color: #7c98b3;
    color: #fff;
}

/* 푸터 스타일 */
.site-footer {
    background-color: #222;
    color: #e0e0e0;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    margin-right: 30px;
    margin-bottom: 30px;
}

.footer-section:last-child {
    margin-right: 0;
}

.footer-section h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.footer-section a {
    color: #a5c7e9;
}

.footer-section a:hover {
    color: #c9d9f0;
}

.social-links {
    margin-top: 15px;
}

.social-link {
    display: inline-block;
    margin-right: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid #444;
    font-size: 0.85rem;
    color: #999;
}

/* 웹진 레이아웃 스타일 */
.webzine-layout {
    max-width: 100%;
    margin-bottom: 30px;
}

/* 피처드 포스트 스타일 */
.featured-post {
    margin-bottom: 30px;
}

.featured-post .post {
    display: flex;
    background-color: #333333;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.featured-post .post-thumbnail {
    flex: 0 0 50%;
    overflow: hidden;
}

.featured-post .post-thumbnail img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post .post-thumbnail img:hover {
    transform: scale(1.05);
}

.featured-post .post-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.featured-post .post-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

.featured-post .post-excerpt {
    flex-grow: 1;
    margin-bottom: 20px;
}

/* 웹진 그리드 스타일 */
.webzine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.post-card {
    background-color: #333333;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.post-card .post-thumbnail {
    height: 200px;
    overflow: hidden;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card .post-thumbnail img:hover {
    transform: scale(1.05);
}

.post-card .post-content {
    padding: 20px;
}

.post-card .post-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-card .post-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 15px;
}

.post-card .post-meta span {
    margin-right: 15px;
}

.post-card .post-excerpt {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.post-card .read-more {
    display: inline-block;
    background-color: #7c98b3;
    color: #fff;
    padding: 8px 15px;
    border-radius: 3px;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.post-card .read-more:hover {
    background-color: #a5c7e9;
    color: #fff;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 3px;
}

.pagination a {
    background-color: #444;
    color: #c0c0c0;
}

.pagination a:hover {
    background-color: #555;
}

.pagination .current-page {
    background-color: #7c98b3;
    color: #fff;
}

/* 반응형 디자인 */
@media (max-width: 992px) {
    .webzine-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .featured-post .post {
        flex-direction: column;
    }
    
    .featured-post .post-thumbnail {
        flex: 0 0 100%;
    }
    
    .featured-post .post-thumbnail img {
        height: 250px;
    }
    
    .webzine-grid {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 5px 10px;
    }
    
    .footer-container {
        flex-direction: column;
    }
    
    .footer-section {
        margin-right: 0;
    }
} 