/* style.css */
body {
    font-family: 'Segoe UI', '맑은 고딕', sans-serif;
    background-color: #f9fbfd;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

h1 {
    margin-bottom: 30px;
    font-size: 28px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

li {
    padding: 15px 10px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

li:hover {
    background-color: #f0f7ff;
}

li a {
    text-decoration: none;
    color: #2d4a79;
    font-weight: 500;
    flex-grow: 1;
}

li span.date {
    font-size: 14px;
    color: #888;
    margin-left: 10px;
    white-space: nowrap;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #2d86c5;
}

a.button-link {
    text-decoration: none;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    li {
        flex-direction: column;
        align-items: flex-start;
    }

    li span.date {
        margin-top: 5px;
        margin-left: 0;
    }
}
form label {
    font-weight: bold;
    display: block;
    margin-top: 20px;
}

form input[type="text"],
form textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

form input[type="submit"] {
    margin-top: 20px;
}

.detail-content {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 20px;
    white-space: pre-line;
    color: #444;
}
.new-badge {
    background-color: #e74c3c;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}
.pagination {
    text-align: center;
    margin-top: 30px;
}

.pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 12px;
    border-radius: 4px;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.pagination a:hover {
    background-color: #f0f7ff;
}

.pagination a.active {
    font-weight: bold;
    color: #fff;
    background-color: #3498db;
}
.view-title {
    font-size: 28px;
    margin-bottom: 10px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    background-color: #fdfdfd;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    white-space: pre-line;
    margin-bottom: 30px;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}
.form-title {
    font-size: 26px;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.form-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-box label {
    font-weight: 600;
    margin-bottom: 5px;
}

.form-box input[type="text"],
.form-box textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-box textarea {
    resize: vertical;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
