/* Blog Specific Styles */

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.blog-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* Stats Counter */
.stats-counter {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Blog Posts Section */
.blog-posts {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Blog Card */
.blog-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

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

/* Blog Image */
.blog-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

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

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

.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

/* Blog Content */
.blog-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

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

.blog-content h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.blog-content p strong {
    color: var(--text-dark);
    font-weight: 600;
}

.blog-content ul {
    list-style: none;
    margin: 1rem 0 1.5rem 0;
    padding: 0;
}

.blog-content ul li {
    color: var(--text-light);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.blog-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Blog Button */
.btn-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: auto;
    align-self: flex-start;
}

.btn-blog:hover {
    background-color: var(--primary-dark);
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.btn-blog i {
    font-size: 0.9rem;
}

/* Blog CTA Section */
.blog-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.blog-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-header p {
        font-size: 1rem;
    }

    .blog-grid {
        gap: 2rem;
    }

    .blog-image {
        height: 250px;
    }

    .blog-placeholder {
        font-size: 4rem;
    }

    .blog-content h2 {
        font-size: 1.5rem;
    }

    .blog-content {
        padding: 1.5rem;
    }

    .blog-cta h2 {
        font-size: 2rem;
    }

    .blog-cta p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 60px 0 40px;
    }

    .blog-header h1 {
        font-size: 1.5rem;
    }

    .blog-image {
        height: 200px;
    }

    .blog-placeholder {
        font-size: 3rem;
    }

    .blog-content h2 {
        font-size: 1.3rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-blog {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for blog cards on scroll */
.blog-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }
.blog-card:nth-child(7) { animation-delay: 0.7s; }
.blog-card:nth-child(8) { animation-delay: 0.8s; }
.blog-card:nth-child(9) { animation-delay: 0.9s; }
.blog-card:nth-child(10) { animation-delay: 1s; }

/* Print styles for blog posts */
@media print {
    .navbar,
    .blog-cta,
    .footer,
    .btn-blog {
        display: none;
    }

    .blog-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Single Post Styles */
.post-single {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.post-single .container {
    max-width: 900px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Post Header */
.post-header {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.post-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

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

/* Post Featured Image */
.post-featured-image {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.post-featured-image .product-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.post-featured-image .blog-placeholder {
    height: 400px;
    font-size: 8rem;
}

/* Post Content */
.post-content {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.post-intro {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.post-intro .lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 400;
}

.post-content h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin: 2.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.post-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 2rem 0 1rem 0;
}

.post-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.post-content p strong {
    color: var(--text-dark);
    font-weight: 600;
}

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

.post-content ul li,
.post-content ol li {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.post-content ul {
    list-style: none;
    padding-left: 0;
}

.post-content ul li {
    padding-left: 2rem;
    position: relative;
}

.post-content ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Post CTA Box */
.post-cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.post-cta-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.post-cta-box p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    color: white;
}

.post-cta-box .btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.post-cta-box .btn:hover {
    background-color: #d97706;
}

/* Post Rating */
.post-rating {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.post-rating h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-dark);
}

.rating-stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.rating-stars i {
    color: var(--secondary-color);
}

.rating-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-left: 1rem;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: var(--bg-white);
    border-radius: 8px;
}

.rating-item span:first-child {
    color: var(--text-dark);
    font-weight: 500;
}

.rating-item span:last-child {
    color: var(--primary-color);
    font-weight: bold;
}

/* Post Tags */
.post-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.post-tags strong {
    color: var(--text-dark);
    margin-right: 1rem;
}

.post-tags a {
    display: inline-block;
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    margin: 0.25rem;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Related Posts */
.related-posts {
    padding: 60px 0;
    background-color: var(--bg-white);
}

.related-posts h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.related-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

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

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

.related-card h3 {
    padding: 1.5rem;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive Styles for Single Post */
@media (max-width: 768px) {
    .post-header h1 {
        font-size: 1.8rem;
    }

    .post-content {
        padding: 2rem;
    }

    .post-content h2 {
        font-size: 1.5rem;
    }

    .post-content h3 {
        font-size: 1.3rem;
    }

    .post-featured-image .blog-placeholder {
        height: 250px;
        font-size: 5rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .post-cta-box {
        padding: 2rem;
    }

    .post-cta-box h3 {
        font-size: 1.5rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .post-header {
        padding: 1.5rem;
    }

    .post-header h1 {
        font-size: 1.5rem;
    }

    .post-content {
        padding: 1.5rem;
    }

    .post-content h2 {
        font-size: 1.3rem;
    }

    .post-featured-image .blog-placeholder {
        height: 200px;
        font-size: 4rem;
    }

    .rating-stars {
        font-size: 1.5rem;
    }

    .rating-number {
        font-size: 1.5rem;
    }

    .post-intro .lead {
        font-size: 1.05rem;
    }
}

/* Social Share Buttons */
.social-share {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 0 0.5rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: #6b7280;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-share-btn.facebook:hover {
    background-color: #1877f2;
    color: white;
}

.social-share-btn.twitter:hover {
    background-color: #1da1f2;
    color: white;
}

.social-share-btn.linkedin:hover {
    background-color: #0077b5;
    color: white;
}

.social-share-btn.pinterest:hover {
    background-color: #e60023;
    color: white;
}

.social-share-btn.whatsapp:hover {
    background-color: #25d366;
    color: white;
}

.social-share-btn.copy-link:hover {
    background-color: #8b5cf6;
    color: white;
}
