/* ============================================
   BLOG DETAY SAYFASI STILLER
   ============================================ */

/* Breadcrumb */
.breadcrumb-wrapper {
    background: #f8f8f8;
    padding: 1rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid #e5e5e5;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: #999;
    font-size: 1rem;
}

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

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

.breadcrumb li:last-child {
    color: #2c3e50;
    font-weight: 500;
}

.blog-detail-wrapper {
    padding: 60px 0;
    background: #f8f9fa;
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.blog-detail-main {
    background: #fff;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.blog-detail-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Post Header */
.post-header {
    margin-bottom: 3rem;
}

.post-header .post-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 127, 0, 0.3);
}

.post-header .post-category:hover {
    transform: translateY(-2px);
}

.post-header .post-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.post-header .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 15px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 1.5rem;
}

.post-header .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7f8c8d;
    font-size: 0.95rem;
}

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

.post-header .post-excerpt {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #5a6c7d;
    font-style: italic;
    padding-left: 20px;
    border-left: 4px solid var(--primary-color);
}

/* Featured Image */
.post-featured-image {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

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

/* Post Content */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
}

.content-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Section Headings */
.section-heading {
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.section-heading.h1,
.content-section h1.section-heading {
    font-size: 2.2rem;
    margin-top: 2.5rem;
}

.section-heading.h2,
.content-section h2.section-heading {
    font-size: 2rem;
    margin-top: 2.5rem;
}

.section-heading.h3,
.content-section h3.section-heading {
    font-size: 1.7rem;
    margin-top: 2rem;
}

.section-heading.h4,
.content-section h4.section-heading {
    font-size: 1.4rem;
    margin-top: 2rem;
}

.section-heading.h5,
.content-section h5.section-heading {
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

.section-heading.h6,
.content-section h6.section-heading {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    font-weight: 600;
}

.section-text {
    margin-bottom: 2rem;
    line-height: 1.9;
    font-size: 1.1rem;
    color: #34495e;
    text-align: justify;
}

.section-text p {
    margin-bottom: 1.2rem;
}

.section-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 127, 0, 0.3);
    transition: all 0.3s ease;
}

.section-text a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

.section-image {
    margin: 2rem 0;
    text-align: center;
}

.section-image img {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.section-image img:hover {
    transform: scale(1.02);
}

.post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 2.5rem 0 1.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 2rem 0 1rem;
}

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

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

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

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.post-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 20px 30px;
    margin: 2rem 0;
    font-style: italic;
    color: #5a6c7d;
}

.post-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

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

/* Social Share */
.social-share {
    background: linear-gradient(135deg, rgba(255, 127, 0, 0.05) 0%, rgba(255, 127, 0, 0.1) 100%);
    border: 2px solid rgba(255, 127, 0, 0.2);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 3rem;
}

.social-share h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

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

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
}

/* Related Posts */
.related-posts {
    padding-top: 3rem;
    border-top: 3px solid #f0f0f0;
}

.related-posts h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.related-card {
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
}

.related-image {
    height: 150px;
    overflow: hidden;
}

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

.related-card:hover .related-image img {
    transform: scale(1.08);
}

.related-content {
    padding: 20px;
}

.related-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.8rem;
}

.related-content h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content h4 a:hover {
    color: var(--primary-color);
}

.related-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #95a5a6;
}

/* Responsive */
@media (max-width: 992px) {
    .blog-detail-layout {
        grid-template-columns: 1fr;
    }

    .blog-detail-main {
        padding: 30px;
    }

    .blog-detail-sidebar {
        position: static;
    }

    .post-header .post-title {
        font-size: 2rem;
    }

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

@media (max-width: 768px) {
    .blog-detail-wrapper {
        padding: 40px 0;
    }

    .blog-detail-main {
        padding: 20px;
    }

    .post-header .post-title {
        font-size: 1.7rem;
    }

    .post-content {
        font-size: 1rem;
    }

    /* Section headings responsive */
    .section-heading.h1,
    .content-section h1.section-heading {
        font-size: 1.7rem;
    }

    .section-heading.h2,
    .content-section h2.section-heading {
        font-size: 1.5rem;
    }

    .section-heading.h3,
    .content-section h3.section-heading {
        font-size: 1.3rem;
    }

    .section-heading.h4,
    .content-section h4.section-heading {
        font-size: 1.15rem;
    }

    .section-heading.h5,
    .content-section h5.section-heading {
        font-size: 1.05rem;
    }

    .section-heading.h6,
    .content-section h6.section-heading {
        font-size: 1rem;
    }

    .section-text {
        font-size: 1rem;
        text-align: left;
    }

    .section-image {
        margin: 1.5rem 0;
    }

    .section-image img {
        border-radius: 8px;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        justify-content: center;
    }
}
