/* Basic styles - will be improved when working on design */

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

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

header {
    background-color: #f8f8f8;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

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

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

nav a:hover {
    text-decoration: underline;
}

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

.container {
    width: 100%;
}

h1 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-preview {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 2rem;
}

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

.post-preview a {
    color: inherit;
    text-decoration: none;
}

.post-preview a:hover h2 {
    text-decoration: underline;
}

.photo-preview {
    margin-bottom: 1rem;
}

.photo-preview img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 4px;
}

time {
    color: #666;
    font-size: 0.9rem;
}

.post {
    max-width: 100%;
}

.post header {
    margin-bottom: 2rem;
    background: none;
    border: none;
    padding: 0;
}

.post header h1 {
    margin-bottom: 0.5rem;
}

.photo-post {
    margin-bottom: 2rem;
}

.photo-post img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.post-content {
    line-height: 1.8;
}

.post-content h1,
.post-content h2,
.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content code {
    background-color: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background-color: #f4f4f4;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.post footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.post footer a {
    color: #333;
    text-decoration: none;
}

.post footer a:hover {
    text-decoration: underline;
}

.error {
    text-align: center;
    padding: 3rem 1rem;
}

.error h1 {
    color: #d32f2f;
    margin-bottom: 1rem;
}

.error p {
    margin-bottom: 2rem;
    color: #666;
}

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

.error a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #e0e0e0;
    margin-top: 3rem;
}

