/* Reset and base styles */
* {
    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: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.header-text {
    flex: 1;
}

header h1 {
    margin: 0;
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

header h1 a {
    text-decoration: none;
    color: inherit;
}

header h1 a:hover {
    color: #3498db;
}

header p {
    margin: 0;
    font-size: 1rem;
    color: #6c757d;
}

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

header nav a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

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

/* Main content */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Blog posts section */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Recent posts section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.section-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
}

.view-all-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid #667eea;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background: #667eea;
    color: white;
    text-decoration: none;
}

/* Post preview cards */
.post-preview {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

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

.post-preview h2 a {
    color: #2c3e50;
    text-decoration: none;
}

.post-preview h2 a:hover {
    color: #3498db;
}

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

.post-excerpt {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Individual blog post */
.blog-post {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.blog-post h1 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-post h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.blog-post h3 {
    color: #495057;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem;
}

.blog-post p {
    margin-bottom: 1rem;
    color: #495057;
}

.blog-post ul, .blog-post ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.blog-post li {
    margin-bottom: 0.5rem;
    color: #495057;
}

.blog-post strong {
    color: #2c3e50;
}

.blog-post pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.blog-post code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #495057;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding: 2rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .logo-placeholder {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .content-wrapper {
        padding: 0 0.5rem;
    }

    main, .blog-post {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .blog-post h1 {
        font-size: 1.8rem;
    }

    .post-preview {
        padding: 1rem;
    }

    .section-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .view-all-link {
        align-self: center;
    }
}