/* Modern Blog Detail Styles */
.modern-blog-detail {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Hero Header */
.blog-detail-hero {
    background: linear-gradient(135deg, #a3d7c9 0%, #2c8e74 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.blog-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="detail-pattern" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23detail-pattern)"/></svg>');
}

.blog-detail-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    font-size: 16px;
    color: rgba(255,255,255,0.9);
}

.blog-detail-breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-detail-breadcrumb a:hover {
    color: white;
}

.blog-detail-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-detail-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    flex-wrap: wrap;
}

.blog-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-detail-meta-item i {
    color: #A3D7C9;
    font-size: 18px;
}

/* Main Content */
.blog-detail-content {
    padding: 45px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.blog-detail-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(20px);
}

.blog-detail-image {
    position: relative;
    overflow: hidden;
    height: 400px;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

    .blog-detail-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
        object-position: top;
    }

.blog-detail-card:hover .blog-detail-image img {
    transform: scale(1.02);
}

.blog-detail-text {
    padding: 60px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.blog-detail-content-html {
    font-size: 18px;
    line-height: 1.8;
    color: #2c3e50;
}

.blog-detail-content-html h1,
.blog-detail-content-html h2,
.blog-detail-content-html h3,
.blog-detail-content-html h4,
.blog-detail-content-html h5,
.blog-detail-content-html h6 {
    color: #2c3e50;
    font-weight: 700;
    margin: 40px 0 20px;
    letter-spacing: -0.5px;
}

.blog-detail-content-html h1 {
    font-size: 32px;
    border-bottom: 3px solid #A3D7C9;
    padding-bottom: 15px;
}

    .blog-detail-content-html h2 {
        font-size: 28px;
        padding-left: 0px;
    }

    .blog-detail-content-html h3 {
        font-size: 24px;
        color: #70b8a5;
    }

.blog-detail-content-html p {
    margin-bottom: 25px;
    color: #495057;
}

.blog-detail-content-html ul,
.blog-detail-content-html ol {
    margin: 25px 0;
    padding-left: 30px;
}

.blog-detail-content-html li {
    margin-bottom: 10px;
    color: #495057;
}

.blog-detail-content-html blockquote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid #A3D7C9;
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0 15px 15px 0;
    font-style: italic;
    color: #6c757d;
    font-size: 20px;
    line-height: 1.6;
}

.blog-detail-content-html img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

    .blog-detail-content-html a {
        color: #000000;
        text-decoration: none;
        font-weight: 600;
        border-bottom: 2px solid transparent;
        transition: border-color 0.3s ease;
    }

.blog-detail-content-html a:hover {
    border-bottom-color: #A3D7C9;
}

.blog-detail-content-html code {
    background: #f8f9fa;
    color: #e83e8c;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
}

.blog-detail-content-html pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 25px;
    border-radius: 15px;
    overflow-x: auto;
    margin: 30px 0;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.6;
}

.blog-detail-content-html pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Social Share */
.blog-detail-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 60px 0 0;
    padding-top: 40px;
    border-top: 1px solid #e9ecef;
}

.social-share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    color: white;
}

.social-share-btn.facebook {
    background: linear-gradient(135deg, #3b5998, #4c70ba);
}

.social-share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-share-btn.linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.social-share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

/* Related Posts */
.blog-detail-related {
    padding: 80px 0;
    background: white;
    margin-top: 80px;
}

.related-posts-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.related-post-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
}

.related-post-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border-color: rgba(40, 167, 69, 0.3);
}

.related-post-image {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 25px;
}

.related-post-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.related-post-excerpt {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.related-post-link {
    color: #A3D7C9;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.related-post-link:hover {
    color: #1e7e34;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-detail-hero {
        padding: 80px 0 60px;
    }
    
    .blog-detail-title {
        font-size: 36px;
        padding: 0 20px;
    }
    
    .blog-detail-meta {
        gap: 20px;
        flex-direction: column;
    }
    
    .blog-detail-text {
        padding: 40px 30px;
    }
    
    .blog-detail-content-html {
        font-size: 16px;
    }
    
    .blog-detail-content-html h1 {
        font-size: 28px;
    }
    
    .blog-detail-content-html h2 {
        font-size: 24px;
    }
    
    .blog-detail-content-html h3 {
        font-size: 20px;
    }
    
    .blog-detail-social {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .social-share-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .blog-detail-hero {
        padding: 60px 0 40px;
    }
    
    .blog-detail-title {
        font-size: 28px;
        padding: 0 15px;
    }
    
    .blog-detail-text {
        padding: 30px 20px;
    }
    
    .blog-detail-content-html {
        font-size: 15px;
    }
    
    .blog-detail-content-html h1 {
        font-size: 24px;
    }
    
    .blog-detail-content-html h2 {
        font-size: 20px;
    }
    
    .blog-detail-content-html h3 {
        font-size: 18px;
    }
    
    .blog-detail-content-html blockquote {
        padding: 20px;
        font-size: 18px;
    }
    
    .related-posts-title {
        font-size: 28px;
        padding: 0 15px;
    }
}
