@font-face {
    font-family: KoPubWorld Batang Pro;
    src: url(font/KoPubWorld\ Batang_Pro\ Medium.otf);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: KoPubWorld Dotum Pro;
    src: url(font/KoPubWorld\ Dotum_Pro\ Medium.otf);
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background-color: #f1f1f1;
}

body {
    font-family: "KoPubWorld Batang Pro", serif;
    font-size: 15px;
    line-height: 28px;
    font-weight: normal;
    word-break: keep-all;
    width: 100%;
    display: flex;
    justify-content: center;
    background: #fff;
    color: #111;
}

.container {
    width: 100%;
    max-width: 1368px;
    margin: 0 24px;
}

header {
    width: 100%;
    padding: 24px;
    border-bottom: 1px dashed #666;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

header h1 {
    font-size: inherit;
    font-weight: inherit;
    line-height: 100%;
}

.header-buttons {
    height: 17px;
    display: flex;
    gap: 20px;
}

button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    padding: 0;
    margin: 0;
    background-color: transparent;
    border: none;
}

a {
    font-size: inherit;
    color: inherit;
    text-decoration: none;
}

a.btn {
    font-family: "KoPubWorld Dotum Pro";
    font-size: inherit;
    line-height: 100%;
    color: inherit;
    text-decoration: none;
    border: 1px solid transparent;
}

button.btn {
    line-height: 100%;
}

main {
    width: 100%;
}


/* 게시글 목록 섹션 */
.post-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 24px 0;
}

/* 개별 게시글 카드 */
.post-card {
    align-self: end;
    padding: 0 24px 20px 24px;
    border-left: 1px dashed #666;
    border-bottom: 1px dashed #666;
    /* transition: all 0.3s; */
}

.post-content {
    white-space: pre-wrap;
}

.post-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    padding: 12px 0 0 0;
}

.btn-edit, .btn-delete {
    color: blue;
}

/* 글쓰기 섹션 */
.post-form {
    width: 100%;
    border: 1px solid blue;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

textarea {
    width: 100%;
    max-width: 640px;
    height: 50vh;
    min-height: 400px;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    border: 1px dashed #666;
    padding: 24px;
}

.form-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    padding: 24px 0 0 0;
}

.input-field {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: #667eea;
}

textarea.input-field {
    resize: vertical;
    min-height: 150px;
}

/* 버튼 스타일 */
.button-group {
    display: flex;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e0e0e0;
    color: #666;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

@media (max-width: 1024px) {
    .post-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 24px 0;
    }
}

@media (max-width: 640px) {
    body {
        height: 100svh;
    }

    .post-list {
        display: flex;
        gap: 48px;
        flex-direction: column;
    }

    .post-card {
        align-self: stretch;
    }
}
