@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #ddd;
    background: #1f232a;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: #282c34;
    border-radius: 8px;
    min-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
}

header {
    background: #151525;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    margin: -2rem -2rem 2rem -2rem;
    border-radius: 8px 8px 0 0;
}

header h1 a {
    color: #e06c75;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 600;
}

header h1 a:hover {
    color: #4ea8de;
    transition: color 0.3s ease;
}

main {
    flex: 1;
}

.post-teaser, .post-full {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #3a3f4a;
}

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

.post-teaser h2 a, .post-full h1 {
    color: #fff;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 600;
}

.post-teaser h2 a:hover {
    color: #4ea8de;
    transition: color 0.3s ease;
}

.post-full h1 {
    color: #ff0;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.post-full h2 {
    color: #ffff00;
}
.post-meta {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.post-meta .author {
    margin-left: 1rem;
}

.post-meta .author::before {
    content: "•";
    margin-right: 0.5rem;
    color: #666;
}

.post-excerpt, .post-content {
    margin-bottom: 1.5rem;
    color: #ddd;
}

.read-more {
    display: inline-block;
    color: #4ea8de;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid #4ea8de;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.read-more:hover {
    background: #4ea8de;
    color: #282c34;
    text-decoration: none;
}

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

.post-navigation a {
    display: inline-block;
    color: #4ea8de;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid #4ea8de;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.post-navigation a:hover {
    background: #4ea8de;
    color: #282c34;
}

.post-content h1, .post-content h2, .post-content h3 {
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.post-content h1 {
    color: #e06c75;
    font-size: 1.8rem;
}

.post-content h2 {
    color: #98c379;
    font-size: 1.5rem;
}

.post-content h3 {
    color: #e5c07b;
    font-size: 1.3rem;
}

.post-content ul, .post-content ol {
    margin: 1rem 0 1rem 0;
    padding-left: 1.2em;
}

.post-content li {
    margin-bottom: 0.5rem;
}

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

.post-content a {
    color: #4ea8de;
    transition: color 0.3s ease;
}

.post-content a:hover {
    color: #6bb6e8;
    text-decoration: underline;
}

.post-content strong {
    color: #fff;
    font-weight: 600;
}

.post-content em {
    color: #ccc;
}

.post-content code {
    background: #1f232a;
    color: #4ea8de;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.post-content pre {
    background: #1f232a;
    color: #ddd;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1rem 0;
    border-left: 4px solid #4ea8de;
}

.post-content blockquote {
    border-left: 4px solid #4ea8de;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #ccc;
    font-style: italic;
}

footer {
    background: #151525;
    color: #aaa;
    text-align: center;
    padding: 1.5rem;
    margin: 2rem -2rem -2rem -2rem;
    border-radius: 0 0 8px 8px;
    font-size: 0.9rem;
}

/* Error/Not Found Styling */
.post-full h1 {
    color: #fff;
}

.post-full p {
    color: #ddd;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1rem;
    }
    
    header {
        margin: -1rem -1rem 1rem -1rem;
        padding: 1rem;
    }
    
    footer {
        margin: 1rem -1rem -1rem -1rem;
        padding: 1rem;
    }
    
    .post-full h1 {
        font-size: 1.8rem;
    }
    
    header h1 a {
        font-size: 1.5rem;
    }
}

/* Smooth transitions */
* {
    transition: color 0.3s ease;
}
/* Image Styles */
.post-image, .post-image-teaser {
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 8px;
}

.featured-image, .teaser-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.post-image-teaser .teaser-image {
    max-height: 300px;
    object-fit: cover;
}

.post-image-teaser a:hover .teaser-image,
.featured-image:hover {
    transform: scale(1.02);
}

/* Post teaser layout adjustments */
.post-teaser {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-image-teaser {
    order: 1;
}

.post-teaser-content {
    order: 2;
}

/* Alternative layout for larger screens */
@media (min-width: 768px) {
    .post-teaser {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 2rem;
        align-items: start;
    }
    
    .post-image-teaser {
        order: unset;
    }
    
    .post-teaser-content {
        order: unset;
    }
    
    .post-image-teaser .teaser-image {
        height: 200px;
        object-fit: cover;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    .post-teaser {
        flex-direction: column;
    }
    
    .post-image-teaser .teaser-image {
        max-height: 250px;
    }
}

/* Full post image styling */
.post-full .post-image {
    margin-bottom: 2rem;
}

.post-full .featured-image {
    max-height: 500px;
    object-fit: cover;
    width: 100%;
}

