/**
 * Blog Detay Sayfası CSS
 */

/* Base Styles */
.blog-detail-section {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    box-sizing: border-box;
}

/* Font Awesome icons - don't override */
.blog-detail-section i,
.blog-detail-section [class*="fa-"] {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands' !important;
}

/* Detail Section */
.blog-detail-section {
    padding: 50px 0 60px;
    background: #f5f7fa;
}

.blog-detail-section .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* Main Content */
.blog-main {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Article Header */
.article-header {
    padding: 40px 40px 30px;
    border-bottom: 1px solid #eee;
}

/* Featured Image - inside content */
.blog-featured-image {
    padding: 0 40px;
    margin-bottom: 20px;
}

.blog-featured-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.article-category {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 16px;
}

.article-title {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #1d458b !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.3 !important;
}

.article-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.article-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.article-meta .meta-item i {
    color: #1d458b;
    font-size: 16px;
}

/* Blog Content */
.blog-content {
    padding: 40px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.blog-content h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1d458b;
    margin: 32px 0 16px 0;
}

.blog-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 28px 0 14px 0;
}

.blog-content p {
    margin-bottom: 16px;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.blog-content li {
    margin-bottom: 8px;
}

.blog-content blockquote {
    border-left: 4px solid #1d458b;
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: #555;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.blog-content a {
    color: #1d458b;
    text-decoration: underline;
}

.blog-content a:hover {
    color: #15346a;
}

/* Tags */
.blog-tags {
    padding: 24px 40px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tags-label {
    font-weight: 500;
    color: #666;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f4f8;
    border-radius: 20px;
    color: #1d458b;
    font-size: 13px;
    text-decoration: none;
}

.tag:hover {
    background: #1d458b;
    color: #fff;
}

/* Share */
.blog-share {
    padding: 24px 40px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 16px;
}

.share-label {
    font-weight: 500;
    color: #666;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #000; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.whatsapp { background: #25d366; }

.share-btn:hover {
    opacity: 0.9;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}


.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d458b;
    margin: 0 0 20px 0!important;
    padding-bottom: 12px!important;
    border-bottom: 2px solid #f0f0f0!important;
}

/* Author Card */
.author-card {
    text-align: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1d458b 0%, #2a5298 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.author-avatar i {
    font-size: 32px;
    color: #fff;
}

.author-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px 0;
}

.author-role {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Related Posts */
.related-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-posts li {
    margin-bottom: 16px;
}

.related-posts li:last-child {
    margin-bottom: 0;
}

.related-post {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.related-post:hover h4 {
    color: #1d458b;
}

.related-post-img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-content h4 {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 6px 0!  important;
    line-height: 1.4!important;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-date {
    font-size: 12px;
    color: #888;
}

/* Categories */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}



.category-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #444;
    text-decoration: none;
    font-size: 14px;
}

.category-link:hover {
    color: #1d458b;
}

.category-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.category-name {
    flex: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
        margin-top: 30px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .blog-sidebar .sidebar-card {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 26px !important;
    }
    
    .article-header {
        padding: 30px 24px 24px;
    }
    
    .blog-detail-section {
        padding: 40px 0;
    }
    
    .blog-content {
        padding: 24px;
    }
    
    .blog-featured-image {
        padding: 0 24px;
    }
    
    .blog-tags, .blog-share {
        padding: 20px 24px;
    }
    
    .blog-sidebar {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 22px !important;
    }
    
    .blog-content {
        font-size: 15px;
        padding: 20px;
    }
    
    .blog-featured-image {
        padding: 0 20px;
    }
    
    .blog-featured-image img {
        max-height: 280px;
    }
    
    .blog-content h2 {
        font-size: 22px;
    }
    
    .blog-content h3 {
        font-size: 18px;
    }
    
    .blog-tags, .blog-share {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
    }
    
    .article-header {
        padding: 24px 20px 20px;
    }
}
