/**
 * Blog Styles
 * Varied Cozy Shop
 */

/* Blog Listing Page */
.blog-content {
    padding: 60px 0;
}

.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.blog-card .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.blog-card .card-title a {
    color: #333;
    text-decoration: none;
}

.blog-card .card-title a:hover {
    color: #FF7B00;
}

.blog-card .card-text {
    color: #666;
    margin-bottom: 1rem;
}

.post-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.post-meta span {
    margin-right: 15px;
}

.post-meta i {
    margin-right: 5px;
}

/* Blog Sidebar */
.blog-sidebar .card {
    margin-bottom: 30px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.blog-sidebar .card-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #FF7B00;
    font-weight: 600;
}

.blog-sidebar ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.blog-sidebar ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.blog-sidebar ul li a {
    color: #333;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-sidebar ul li a:hover {
    color: #FF7B00;
}

.blog-sidebar ul li a.active {
    color: #FF7B00;
    font-weight: 600;
}

.recent-post-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

/* Blog Post Detail Page */
.blog-post-header {
    margin-bottom: 30px;
}

.blog-post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.blog-post-meta {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.blog-post-meta span {
    margin-right: 20px;
    color: #777;
    font-size: 0.9rem;
}

.blog-post-meta i {
    margin-right: 5px;
}

.blog-post-categories {
    margin-bottom: 15px;
}

.blog-post-categories a {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 5px 15px;
    background-color: #f8f9fa;
    border-radius: 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.blog-post-categories a:hover {
    background-color: #FF7B00;
    color: #fff;
}

.blog-post-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.blog-post-featured-image img {
    width: 100%;
    height: auto;
}

.blog-post-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 40px;
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

.blog-post-content blockquote {
    padding: 20px;
    background-color: #f8f9fa;
    border-left: 4px solid #FF7B00;
    margin: 20px 0;
    font-style: italic;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-post-content li {
    margin-bottom: 10px;
}

/* Related Posts */
.related-posts {
    margin-top: 50px;
    margin-bottom: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #FF7B00;
}

.related-post {
    margin-bottom: 20px;
}

.related-post-img {
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.related-post-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.related-post-title a {
    color: #333;
    text-decoration: none;
}

.related-post-title a:hover {
    color: #FF7B00;
}

.related-post-meta {
    font-size: 0.85rem;
    color: #777;
}

/* Comments Section */
.blog-comments {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.comment-form-container {
    margin-bottom: 40px;
}

.comment-form-container h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.comment-form {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
}

.comment-login-message {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.comments-list {
    margin-top: 30px;
}

.comment {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.comment:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #FF7B00;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 20px;
    flex-shrink: 0;
}

.comment-content {
    flex-grow: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
    color: #333;
}

.comment-date {
    color: #777;
    font-size: 0.85rem;
}

.comment-text {
    line-height: 1.6;
    color: #333;
}

.no-comments {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    color: #777;
}

/* Blog Search Page */
.search-summary {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.search-results .card {
    margin-bottom: 25px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-results .card-img {
    height: 100%;
    object-fit: cover;
}

.search-tips {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.search-tips h4 {
    margin-bottom: 15px;
}

.search-tips ul {
    padding-left: 20px;
}

.search-tips li {
    margin-bottom: 10px;
}

mark {
    background-color: #fff3cd;
    padding: 2px 0;
}

/* Pagination */
.pagination {
    margin-top: 40px;
}

.pagination .page-link {
    color: #333;
    border: none;
    margin: 0 5px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pagination .page-item.active .page-link {
    background-color: #FF7B00;
    border-color: #FF7B00;
}

.pagination .page-link:hover {
    background-color: #f8f9fa;
    color: #FF7B00;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .blog-sidebar {
        margin-top: 50px;
    }
    
    .blog-post-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .blog-card .card-img-top {
        height: 180px;
    }
    
    .blog-post-header h1 {
        font-size: 1.75rem;
    }
    
    .comment {
        flex-direction: column;
    }
    
    .comment-avatar {
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .comment-header {
        flex-direction: column;
    }
    
    .comment-date {
        margin-top: 5px;
    }
}

@media (max-width: 575.98px) {
    .blog-card .card-img-top {
        height: 160px;
    }
    
    .blog-post-header h1 {
        font-size: 1.5rem;
    }
    
    .blog-post-meta span {
        display: block;
        margin-bottom: 10px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}