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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

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

header {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 20px;
}

header h1 {
    font-size: 2rem;
}

.write-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: none;
}

.write-form.active {
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

button {
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
}

button:hover {
    background: #2980b9;
}

.write-btn {
    background: #27ae60;
}

.write-btn:hover {
    background: #229954;
}

.back-btn {
    background: #95a5a6;
    margin-bottom: 20px;
}

.back-btn:hover {
    background: #7f8c8d;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.post-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.post-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s;
}

.post-item:hover {
    background-color: #f8f9fa;
}

.post-item:last-child {
    border-bottom: none;
}

.post-title {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.post-meta {
    font-size: 12px;
    color: #7f8c8d;
    display: flex;
    gap: 15px;
}

.post-detail {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.post-detail h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.post-detail .meta {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 14px;
}

.post-detail .content {
    line-height: 1.8;
    font-size: 15px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.error {
    background: #e74c3c;
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.success {
    background: #27ae60;
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}