/* Blog Styles - Modern E-commerce Design */

/* Blog Page Header */
.blog-page-header {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.blog-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.blog-page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
}

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

.blog-card-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.blog-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-meta-item {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.blog-card-excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.blog-card-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.blog-read-more:hover {
    color: #764ba2;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 2rem;
}

.blog-sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

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

/* Search Widget */
.blog-search-form .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.blog-search-form .form-control {
    border: none;
    padding: 0.75rem 1rem;
}

.blog-search-form .btn {
    border: none;
    padding: 0.75rem 1rem;
    background: #667eea;
}

/* Categories Widget */
.blog-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-category-item {
    margin-bottom: 0.5rem;
}

.blog-category-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-category-item a:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
}

.blog-category-item .badge {
    background: #6c757d;
    color: white;
}

.blog-category-item a:hover .badge {
    background: rgba(255, 255, 255, 0.2);
}

/* Recent Posts Widget */
.blog-recent-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-recent-post-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.blog-recent-post-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.recent-post-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.recent-post-content {
    flex-grow: 1;
}

.recent-post-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.recent-post-title a {
    color: #2c3e50;
    text-decoration: none;
}

.recent-post-title a:hover {
    color: #667eea;
}

.recent-post-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Tags Widget */
.blog-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-tag-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.blog-tag-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Newsletter Widget */
.newsletter-form .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.newsletter-form .form-control {
    border: none;
    padding: 0.75rem 1rem;
}

.newsletter-form .btn {
    border: none;
    padding: 0.75rem 1rem;
    background: #667eea;
}

/* Blog Detail Styles */
.blog-post-detail {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.blog-post-header {
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 1.5rem;
}

.blog-post-meta .meta-item {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-post-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content img {
    border-radius: 10px;
    margin: 1rem 0;
}

.blog-post-stats {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.blog-post-stats .stat-item {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Author Widget */
.author-widget {
    text-align: center;
}

.author-avatar {
    margin-bottom: 1rem;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 auto;
}

.avatar-placeholder.small {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.avatar-placeholder.large {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.author-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.author-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.author-stats .stat-item {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Related Posts Widget */
.blog-related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-related-post-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.blog-related-post-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.related-post-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.related-post-content {
    flex-grow: 1;
}

.related-post-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

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

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

.related-post-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Blog Tags */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.blog-tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Blog Comments */
.blog-comment-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.comment-reply {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.reply-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.reply-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* Blog Reviews */
.blog-review-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-page-title {
        font-size: 2rem;
    }
    
    .blog-card-body {
        padding: 1rem;
    }
    
    .blog-card-title {
        font-size: 1.1rem;
    }
    
    .blog-card-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .blog-sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .blog-post-detail {
        padding: 1rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-post-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .blog-card-image-wrapper {
        height: 150px;
    }
    
    .blog-card-meta {
        gap: 0.5rem;
    }
    
    .blog-card-stats {
        gap: 0.5rem;
    }
    
    .blog-sidebar-widget {
        padding: 1rem;
    }
    
    .blog-recent-post-item,
    .blog-related-post-item {
        flex-direction: column;
        text-align: center;
    }
    
    .recent-post-image,
    .related-post-image {
        width: 100%;
        height: 120px;
    }
} 