/* Blog Styles */

/* Utility Classes */
.blog-text-muted {
    color: var(--blog-text-muted);
}

.blog-text-secondary {
    color: var(--blog-text-secondary);
}

/* Blog Post Card */
.blog-post-card {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--blog-border-color);
}

.blog-post-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.blog-post-card .post-meta {
    margin-bottom: 8px;
}

.blog-post-card h3 {
    margin: 8px 0 12px 0;
}

.blog-post-card h3 a {
    text-decoration: none;
    color: inherit;
}

.blog-post-card .excerpt {
    margin-bottom: 12px;
}

.blog-post-card .tag-link {
    display: inline-block;
    background: var(--blog-bg-light);
    padding: 4px 8px;
    margin-right: 4px;
    margin-top: 4px;
    border-radius: 4px;
    text-decoration: none;
}

/* Pagination */
.blog-pagination {
    margin-top: 32px;
    gap: 8px;
}

.blog-pagination .page-info {
    padding: 0 16px;
}

/* No Posts Section */
.no-posts {
    padding: 48px 0;
}

/* Blog Post Page */
.blog-post-header {
    background-color: white;
    text-align: center;
}
.blog-post-header .page-title {
    font-size: 38px;
    font-weight: 500;
}
.blog-post-header .container {
    max-width: 750px;
}

.blog-breadcrumb-separator {
    margin: 0 8px;
}

.blog-post-meta .blog-meta-separator {
    margin: 0 12px;
}

.blog-post-meta .category-link {
    color: var(--blog-link-color);
    text-decoration: none;
}

/* Mobile responsive meta info */
@media (max-width: 599px) {
    .blog-post-meta {
        flex-direction: column !important;
        gap: 4px;
    }

    .blog-post-meta .blog-meta-separator {
        display: none;
    }
}

.blog-post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    max-height: min(600px, 80vh);
    object-fit: cover;
    object-position: center;
}

.blog-post-featured-image figcaption {
    margin-top: 8px;
    font-style: italic;
    text-align: center;
    opacity: 0.7;
}

.blog-post-content {
    margin-bottom: 48px;
    font-size: 19px;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
    font-weight: 700;
    line-height: 1.2;
}

.blog-post-content blockquote {
    border-left: 5px solid var(--color-primary);
    padding: 1.5em;
    margin: 1em;
    font-style: italic;
    background-color: var(--color-whitesmoke);
    opacity: 0.9;
}

.blog-post-content blockquote p {
    margin: 0;
}

/* Tags Section */
.blog-post-tags {
    margin-bottom: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--blog-border-color);
}

.blog-post-tags .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-post-tags .tag-link {
    display: inline-block;
    background: var(--blog-tag-bg);
    color: var(--blog-link-color);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
}

/* Social Sharing */
.blog-social-sharing {
    margin-bottom: 48px;
    padding: 24px 0;
    border-top: 1px solid var(--blog-border-color);
    border-bottom: 1px solid var(--blog-border-color);
}

.blog-social-sharing .sharing-buttons {
    gap: 12px;
}

.social-share:hover {
    opacity: 0.7;
}

.social-share md-icon {
    color: white;
}

.twitter-share,
.blog-social-sharing .twitter-share :hover {
    background: var(--blog-twitter) !important;
}

.facebook-share,
.facebook-share:hover {
    background: var(--blog-facebook) !important;
}

.linkedin-share,
.linkedin-share:hover {
    background: var(--blog-linkedin) !important;
}

/* Author Info */
.blog-author-info {
    background: var(--blog-bg-light);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 48px;
}

/* Related Posts */
.related-posts {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 2px solid var(--blog-border-color);
}

.related-posts .section-title {
    margin-bottom: 32px;
    text-align: center;
}

.related-posts .posts-grid {
    gap: 24px;
}

.related-posts .related-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-posts .related-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.related-posts .related-post-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(
        135deg,
        var(--blog-gradient-start) 0%,
        var(--blog-gradient-end) 100%
    );
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-posts .related-post-placeholder span {
    color: white;
    font-size: 1.2em;
    text-align: center;
    padding: 16px;
}

.related-posts .related-post-title {
    margin-bottom: 8px;
}

/* Sidebar */
.blog-sidebar {
    flex: 100;
}

@media (min-width: 600px) {
    .blog-sidebar {
        flex: 30;
    }
}

@media (min-width: 1280px) {
    .blog-sidebar {
        flex: 25;
    }
}

.blog-sidebar .search-form {
    margin-bottom: 16px;
    width: 100%;
}

.blog-sidebar .search-input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid var(--blog-border-color);
    border-radius: 4px;
    margin-right: 8px;
}

.blog-sidebar .search-button {
    margin: 0;
}

.blog-sidebar .sidebar-section {
    margin-bottom: 32px;
}

.blog-sidebar .section-title {
    margin-bottom: 16px;
}

.blog-sidebar .category-link {
    justify-content: flex-start;
    margin: 4px 0;
}

.blog-sidebar .tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-sidebar .tag-link {
    display: inline-block;
    background: var(--blog-tag-bg);
    color: var(--blog-link-color);
    padding: 6px 12px;
    border-radius: 16px;
    text-decoration: none;
}

.blog-sidebar .recent-post-link {
    text-decoration: none;
    color: inherit;
    margin-bottom: 16px;
    display: block;
}

.blog-sidebar .recent-post-title {
    margin-bottom: 4px;
}
