/* Adroit DBA Blog Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #1a2a3a;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
}

.site-header .logo img {
    height: 40px;
}

.site-header nav {
    display: flex;
    gap: 24px;
}

.site-header nav a {
    color: #c8d8e8;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.2s;
}

.site-header nav a:hover,
.site-header nav a.active {
    color: #fff;
}

/* Blog Index */
.blog-index {
    padding: 50px 0;
}

.blog-index h1 {
    font-family: 'Fjalla One', sans-serif;
    font-size: 2.2em;
    color: #1a2a3a;
    margin-bottom: 10px;
}

.blog-intro {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 40px;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.post-card {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 24px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    border-color: #829eb3;
    box-shadow: 0 2px 8px rgba(130, 158, 179, 0.15);
}

.post-card a {
    text-decoration: none;
    color: inherit;
}

.post-card h2 {
    font-family: 'Fjalla One', sans-serif;
    font-size: 1.4em;
    color: #1a2a3a;
    margin-bottom: 8px;
    line-height: 1.3;
}

.post-card h2 a {
    color: #1a2a3a;
}

.post-card h2 a:hover {
    color: #829eb3;
}

.post-card .post-meta {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 10px;
}

.post-card .post-excerpt {
    color: #555;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Post Page */
.post-page {
    padding: 50px 0;
}

.post-header h1 {
    font-family: 'Fjalla One', sans-serif;
    font-size: 2em;
    color: #1a2a3a;
    margin-bottom: 12px;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 0.9em;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.view-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Post Content */
.post-content {
    font-size: 1.05em;
    line-height: 1.7;
}

.post-content h2 {
    font-family: 'Fjalla One', sans-serif;
    font-size: 1.5em;
    color: #1a2a3a;
    margin: 35px 0 15px;
}

.post-content h3 {
    font-family: 'Fjalla One', sans-serif;
    font-size: 1.25em;
    color: #1a2a3a;
    margin: 30px 0 12px;
}

.post-content p {
    margin-bottom: 16px;
}

.post-content ul,
.post-content ol {
    margin: 16px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content a {
    color: #829eb3;
    text-decoration: underline;
}

.post-content a:hover {
    color: #5a7a93;
}

.post-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: 'Consolas', 'Monaco', monospace;
}

.post-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
    font-size: 0.9em;
    line-height: 1.5;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.post-content blockquote {
    border-left: 4px solid #829eb3;
    padding: 12px 20px;
    margin: 20px 0;
    background: #f8f9fa;
    color: #555;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 16px 0;
}

/* Post Footer */
.post-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.back-link {
    color: #829eb3;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    color: #5a7a93;
    text-decoration: underline;
}

/* Site Footer */
.site-footer {
    background: #1a2a3a;
    color: #c8d8e8;
    padding: 30px 0;
    margin-top: 60px;
    text-align: center;
}

.site-footer a {
    color: #829eb3;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer p {
    margin-bottom: 8px;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 12px;
    }

    .site-header nav {
        gap: 16px;
    }

    .blog-index h1 {
        font-size: 1.8em;
    }

    .post-header h1 {
        font-size: 1.6em;
    }

    .post-card {
        padding: 18px;
    }

    .post-content pre {
        padding: 14px;
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .site-header nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .post-meta {
        flex-direction: column;
        gap: 6px;
    }
}
