/* 
   Auction Insights Blog Styles
   Extends the main website styling with blog-specific elements
*/

/* Blog Hero Section */
.blog-hero {
    padding: 4rem 0;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
}

.blog-hero .section-header {
    margin-bottom: 0;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.white-text {
    color: white;
}

/* Blog Content Layout */
.blog-content {
    padding: 4rem 0;
}

.blog-content .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* Blog Card */
.blog-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 240px;
    overflow: hidden;
}

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

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

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

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.blog-category {
    color: var(--primary-color);
    font-weight: 500;
}

.blog-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card h2 a {
    color: var(--text-color);
    transition: var(--transition);
}

.blog-card h2 a:hover {
    color: var(--primary-color);
}

.blog-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.read-more {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    grid-column: 1 / -1;
}

.blog-pagination a, 
.blog-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.blog-pagination a {
    background-color: var(--bg-light);
    color: var(--text-color);
}

.blog-pagination a:hover {
    background-color: var(--primary-color);
    color: white;
}

.blog-pagination .current-page {
    background-color: var(--primary-color);
    color: white;
}

.blog-pagination .next-page {
    width: auto;
    padding: 0 1rem;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

/* Category List */
.category-list li {
    margin-bottom: 0.75rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: var(--text-color);
    transition: var(--transition);
}

.category-list a:hover {
    color: var(--primary-color);
}

.category-list span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Popular Posts */
.popular-posts li {
    margin-bottom: 1rem;
}

.popular-posts li:last-child {
    margin-bottom: 0;
}

.popular-posts a {
    display: flex;
    gap: 1rem;
    color: var(--text-color);
}

.popular-posts img {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.popular-posts h4 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.popular-posts a:hover h4 {
    color: var(--primary-color);
}

.popular-posts span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
}

.cta-widget h3 {
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-widget p {
    margin-bottom: 1.5rem;
}

.cta-widget .btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.cta-widget .btn-primary:hover {
    background-color: var(--bg-light);
}

/* Individual Blog Post Page Styles */
.blog-post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-post-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-meta i {
    color: var(--primary-color);
}

.blog-post-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.blog-post-content {
    line-height: 1.8;
}

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

.blog-post-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
}

.blog-post-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
}

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

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: rgba(37, 99, 235, 0.05);
    font-style: italic;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.blog-post-content .image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: -1.5rem;
    margin-bottom: 2rem;
}

.blog-author {
    display: flex;
    gap: 2rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 3rem;
}

.blog-author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
}

.blog-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-author-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-author-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.blog-author-social {
    display: flex;
    gap: 1rem;
}

.blog-author-social a {
    color: var(--text-light);
    transition: var(--transition);
}

.blog-author-social a:hover {
    color: var(--primary-color);
}

.blog-related-posts {
    margin-top: 4rem;
}

.blog-related-posts h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Responsive Design for Blog */
@media (max-width: 1024px) {
    .blog-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-content .container {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    .blog-hero h1 {
        font-size: 2.5rem;
    }
    
    .blog-post-header h1 {
        font-size: 2rem;
    }
    
    .blog-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .blog-author-social {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .blog-related-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}