
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;700&display=swap');

body {
    font-family: 'Noto Sans KR', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    color: #333;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 960px;
    margin: auto;
    padding: 0 20px;
}

header {
    background: #fff;
    padding: 2rem 0;
    border-bottom: 1px solid #e7e7e7;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 300;
}

header h1 a {
    color: #333;
}

.main-content {
    display: flex;
    margin-top: 30px;
    gap: 30px;
}

.posts {
    flex: 3;
}

.post {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    transition: transform 0.2s ease-in-out;
}

.post:hover {
    transform: translateY(-5px);
    cursor: pointer;
}

.post h2 a {
    color: #333;
}

.post .meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.sidebar {
    flex: 1;
}

.sidebar .widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.sidebar .widget h3 {
    margin-top: 0;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .widget ul li {
    margin-bottom: 10px;
}

.sidebar .widget ul li a.active {
    font-weight: bold;
    color: #007bff;
}

footer {
    text-align: center;
    padding: 30px;
    margin-top: 30px;
    color: #aaa;
    background: #fff;
    border-top: 1px solid #e7e7e7;
}

.write-post-button {
            background-color: transparent; /* 투명 */
            color: #555; /* 흑백 톤 */
            padding: 0; /* 패딩 제거 */
            border-radius: 0; /* 테두리 반경 제거 */
            text-decoration: none;
            display: block;
            text-align: left; /* 좌측 정렬 */
            margin-top: 15px; /* Categories와의 간격 */
        }

        .write-post-button:hover {
            background-color: transparent;
            text-decoration: underline; /* 호버 시 밑줄 */
        }

/* Post Detail Page */
.post-full .post-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.post-full .post-content {
    margin-top: 30px;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-indicator {
    padding: 40px 20px;
}

#scroll-sentinel {
    height: 20px;
}

#end-message {
    text-align: center;
    padding: 20px 0;
}

#end-message p {
    color: #888;
    margin: 20px 0;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        gap: 20px;
    }

    .posts {
        flex: none;
        width: 100%;
    }

    .sidebar {
        flex: none;
        width: 100%;
    }

    header h1 {
        font-size: 2rem;
    }

    .post {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }

    .post {
        padding: 15px;
        margin-bottom: 20px;
    }

    .post h2 {
        font-size: 1.3rem;
    }

    .sidebar .widget {
        padding: 15px;
    }

    .post-full .post-title {
        font-size: 1.8rem;
    }
}
