/* Blog Post Layout */
.blog-post {
    max-width: 900px;
    margin: 50px auto;
    background: #ffffff;
    padding: 60px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-left: 6px solid #2c5aa0;
}

/* Post Header */
.post-header {
    border-bottom: 3px solid #e0e0e0;
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.post-meta-top {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95rem;
}

.post-meta-top time,
.post-meta-top .reading-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-meta-top i {
    color: #2c5aa0;
}

.post-title-main {
    font-size: 2.8rem;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0 0 25px 0;
    font-weight: 600;
}

.post-tags-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-tags-header .tag {
    background: #e8f0ff;
    color: #2c5aa0;
    padding: 6px 16px;
    font-size: 0.85rem;
    border: 1px solid #d0e2ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Post Content */
.post-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #333;
}

.post-content .lead {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #2c5aa0;
    font-style: italic;
}

.post-content h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin: 50px 0 25px 0;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 12px;
}

.post-content h3 {
    font-size: 1.5rem;
    color: #2c2c2c;
    margin: 35px 0 20px 0;
    font-weight: 600;
}

.post-content h4 {
    font-size: 1.2rem;
    color: #2c2c2c;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.post-content p {
    margin-bottom: 25px;
    text-align: justify;
}

.post-content ul,
.post-content ol {
    margin: 25px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

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

.post-content a {
    color: #2c5aa0;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.post-content a:hover {
    border-bottom-color: #2c5aa0;
}

/* Code Blocks */
.post-content code {
    background: #f5f5f5;
    padding: 3px 8px;
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 0.9em;
    color: #c7254e;
    border-radius: 3px;
}

.post-content pre {
    background: #2d2d2d;
    padding: 25px;
    overflow-x: auto;
    margin: 30px 0;
    border-left: 4px solid #2c5aa0;
    border-radius: 4px;
}

.post-content pre code {
    background: transparent;
    color: #f8f8f2;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Callout Boxes */
.callout {
    padding: 25px;
    margin: 35px 0;
    border-left: 5px solid;
    background: #f8f9fa;
}

.callout h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

.callout p:last-child,
.callout ul:last-child {
    margin-bottom: 0;
}

.callout-info {
    border-left-color: #17a2b8;
    background: #e7f6f8;
}

.callout-warning {
    border-left-color: #ffc107;
    background: #fff8e1;
}

.callout-success {
    border-left-color: #28a745;
    background: #e8f5e9;
}

.callout-danger {
    border-left-color: #dc3545;
    background: #ffebee;
}

/* Architecture List */
.architecture-list {
    margin: 30px 0;
}

.service-item {
    background: #f8f9fa;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid #2c5aa0;
    transition: all 0.3s;
}

.service-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-item h4 {
    margin: 0 0 12px 0;
    color: #1a1a1a;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-item i {
    color: #2c5aa0;
    font-size: 1.3rem;
}

.service-item p {
    margin: 0;
    color: #555;
    font-size: 1rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-box {
    background: #f8f9fa;
    padding: 25px;
    text-align: center;
    border-top: 4px solid #2c5aa0;
    transition: all 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-box i {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 15px;
}

.feature-box h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.feature-box p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Post Footer */
.post-footer {
    border-top: 3px solid #e0e0e0;
    margin-top: 60px;
    padding-top: 40px;
}

/* Share Section */
.share-section {
    text-align: center;
    margin-bottom: 50px;
}

.share-section h4 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.facebook {
    background: #1877f2;
}

/* Author Section */
.author-section {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: #f8f9fa;
    border-left: 4px solid #28a745;
    margin-bottom: 50px;
}

.author-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2c5aa0;
}

.author-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: #1a1a1a;
}

.author-info p {
    margin: 0 0 15px 0;
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.author-social {
    display: flex;
    gap: 15px;
}

.author-social a {
    color: #555;
    font-size: 1.3rem;
    transition: color 0.3s;
}

.author-social a:hover {
    color: #2c5aa0;
}

/* Related Posts */
.related-posts h4 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 12px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-card {
    background: #f8f9fa;
    padding: 25px;
    text-decoration: none;
    border-left: 4px solid #2c5aa0;
    transition: all 0.3s;
    display: block;
}

.related-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-card h5 {
    margin: 0 0 10px 0;
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 600;
}

.related-card p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-post {
        padding: 30px 20px;
        margin: 30px 15px;
    }

    .post-title-main {
        font-size: 2rem;
    }

    .post-content {
        font-size: 1rem;
    }

    .post-content .lead {
        font-size: 1.1rem;
    }

    .post-content h2 {
        font-size: 1.6rem;
    }

    .post-meta-top {
        flex-direction: column;
        gap: 10px;
    }

    .author-section {
        flex-direction: column;
        text-align: center;
    }

    .author-img {
        margin: 0 auto;
    }

    .author-social {
        justify-content: center;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav,
    .share-section,
    .related-posts {
        display: none;
    }

    .blog-post {
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .post-content {
        font-size: 12pt;
        line-height: 1.5;
    }

    .post-content a {
        color: #000;
        text-decoration: underline;
    }
}