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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

header {
    background: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: #333;
    text-decoration: none;
}

nav a:hover {
    color: #0066cc;
}

nav form {
    display: inline;
}

nav button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1rem;
}

nav button:hover {
    color: #0066cc;
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1, h2 {
    margin-bottom: 1rem;
}

.posts article {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.post-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.post-image-large {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a, .pagination .current {
    padding: 0.5rem 1rem;
    background: #fff;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination a:hover {
    background: #0066cc;
    color: #fff;
}

.auth-form, .post-form {
    max-width: 400px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.auth-form h2, .post-form h2 {
    text-align: center;
}

.auth-form form, .post-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="text"], input[type="password"], textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

button[type="submit"] {
    background: #0066cc;
    color: #fff;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button[type="submit"]:hover {
    background: #0052a3;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
}

.post-content {
    margin: 1.5rem 0;
    line-height: 1.8;
}

.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: #0066cc;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 2rem;
    color: #666;
    margin-top: 2rem;
}
