/* Blog Styles - Brickly Deals */

/* Blog Article Container */
.blog-article {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: 80vh;
}

.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Breadcrumb Navigation */
.blog-breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

.blog-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Article Wrapper */
.article-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Article Header */
.article-header {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #ffcf00, #ff9800);
    color: #333;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    opacity: 0.8;
    flex-wrap: wrap;
}

.article-tags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.article-tags .tag {
    background: rgba(255,255,255,0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Article Content */
.article-content {
    padding: 3rem 2rem;
    
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    margin: 2.5rem 0 1.2rem;
    color: #333;
    font-size: 1.9rem;
    border-bottom: 2px solid #ffcf00;
    padding-bottom: 0.5rem;
}

.article-content h3 {
    margin: 2rem 0 1rem;
    color: #444;
    font-size: 1.5rem;
}

.article-content h3 a {
    color: #d01012;
    text-decoration: none;
    transition: color 0.3s;
}

.article-content h3 a:hover {
    color: #ff5722;
}

.article-content ul {
    margin: 1.2rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin: 0.6rem 0;
}

.article-content strong {
    color: #222;
    font-weight: 600;
}

.article-content a {
    color: #d01012;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.article-content a:hover {
    color: #ff5722;
    text-decoration: underline;
}

/* Product Highlight Boxes */
.product-highlight {
    background: linear-gradient(to right, #fff8e1, #fffef7);
    border-left: 4px solid #ffcf00;
    padding: 1.2rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 10px rgba(255,207,0,0.1);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #ffcf00, #ff9800);
    padding: 2.5rem;
    border-radius: 12px;
    margin: 3rem 0;
    text-align: center;
    color: #333;
    box-shadow: 0 5px 20px rgba(255,152,0,0.3);
}

.cta-section h3 {
    margin-top: 0;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.cta-section a {
    display: inline-block;
    background: white;
    color: #333;
    padding: 15px 40px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.cta-section a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Product Sections with Images */
.product-section {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.product-section.reverse {
    flex-direction: row-reverse;
}

.product-section img {
    width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-section-content {
    flex: 1;
    min-width: 300px;
}

.btn-product {
    display: inline-block;
    background: #ffcf00;
    color: #333;
    padding: 12px 24px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: all 0.3s;
}

.btn-product:hover {
    background: #ffc107;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255,193,7,0.4);
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

/* Comparison Table */
.comparison-table {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.comparison-table thead {
    background: #ffcf00;
}

.comparison-table th,
.comparison-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.comparison-table th {
    font-weight: 600;
    color: #333;
}

.comparison-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3),
.comparison-table td:nth-child(4),
.comparison-table td:nth-child(5) {
    text-align: center;
}

.comparison-table a {
    color: #d01012;
    text-decoration: none;
    font-weight: 500;
}

.comparison-table a:hover {
    text-decoration: underline;
}

/* Image with Caption */
.image-with-caption {
    text-align: center;
    margin: 2rem 0;
}

.image-with-caption img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.image-with-caption p {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Related Products Section */
.related-products {
    padding: 3rem 2rem;
    background: #f8f9fa;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.product-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #333;
    min-height: 2.5rem;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.product-info .price {
    font-weight: bold;
    color: #d01012;
    font-size: 1.1rem;
}

.btn-view {
    display: inline-block;
    background: #ffcf00;
    color: #333;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-view:hover {
    background: #ffc107;
    transform: scale(1.05);
    box-shadow: 0 3px 15px rgba(255,193,7,0.4);
}

/* Share Section */
.share-section {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 2px solid #e0e0e0;
}

.share-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #333;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.pinterest { background: #bd081c; }

/* Blog Listing Page */
.blog-listing {
    padding: 3rem 0;
}

.blog-listing h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-listing .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

.article-card h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.article-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-card .article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-content {
        padding: 2rem 1rem;
        font-size: 1rem;
    }
    
    .product-section {
        flex-direction: column !important;
    }
    
    .product-section img {
        width: 100%;
        max-width: 300px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px;
    }
    
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
}