/* Modern Blog Detail Page - Inspired by Medium/Modern Design */

/* Main Layout */
.blog-detail-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 60px;
    gap: 20px;
    position: relative;
}

/* Sticky Social Sidebar - Left Side */
.blog-social-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 50px;
    flex-shrink: 0;
}

.social-share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #666;
    font-size: 16px;
}

.social-share-btn:hover {
    background: #f8f9fa;
    border-color: #999;
    color: #333;
}

.social-share-btn.share,
.social-share-btn.facebook,
.social-share-btn.twitter,
.social-share-btn.linkedin,
.social-share-btn.whatsapp,
.social-share-btn.link,
.social-share-btn.more {
    background: white;
    color: #666;
    border: 1px solid #e0e0e0;
}

.social-share-btn.share:hover,
.social-share-btn.facebook:hover,
.social-share-btn.twitter:hover,
.social-share-btn.linkedin:hover,
.social-share-btn.whatsapp:hover,
.social-share-btn.link:hover,
.social-share-btn.more:hover {
    background: #f8f9fa;
    border-color: #999;
    color: #333;
}

/* Main Content Area */
.blog-detail-main {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    color: #ccc;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* Article Header */
.article-header {
    margin-bottom: 50px;
}

.article-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #666;
    font-size: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta-item i {
    color: var(--primary-color);
}

/* Featured Image */
.article-featured-image {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Article Excerpt */
.article-excerpt {
    font-size: 20px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 40px;
    padding: 24px;
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    border-radius: 6px;
    font-weight: 400;
}

/* Article Content */
.article-content {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.article-content p {
    margin-bottom: 24px;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.article-content h1 {
    font-size: 32px;
}

.article-content h2 {
    font-size: 28px;
}

.article-content h3 {
    font-size: 24px;
}

.article-content h4 {
    font-size: 20px;
}

.article-content strong,
.article-content b {
    font-weight: 700;
    color: #1a1a1a;
}

.article-content em,
.article-content i {
    font-style: italic;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid var(--primary-color);
    transition: opacity 0.3s;
}

.article-content a:hover {
    opacity: 0.7;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.article-content ul,
.article-content ol {
    margin: 30px 0;
    padding-left: 40px;
}

.article-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.article-content blockquote {
    margin: 40px 0;
    padding: 25px 30px;
    background: #f8f9fa;
    border-left: 5px solid var(--primary-color);
    font-size: 22px;
    font-style: italic;
    color: #555;
    border-radius: 8px;
}

.article-content code {
    background: #f4f4f4;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #e83e8c;
}

.article-content pre {
    background: #282c34;
    color: #abb2bf;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 30px 0;
}

.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #f77f00);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Gallery Section */
.blog-gallery-section {
    margin: 60px 0;
}

.blog-gallery-section h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    cursor: pointer;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Videos Section */
.blog-videos-section {
    margin: 60px 0;
}

.blog-videos-section h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.video-item {
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Related Posts */
.related-posts {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid #e9ecef;
}

.related-posts-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.related-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.related-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.related-post-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.related-post-content {
    padding: 25px;
}

.related-post-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.related-post-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.related-post-date {
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Share Modal */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.share-modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.share-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    text-align: center;
}

.share-modal-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.share-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.share-modal-btn:hover {
    transform: scale(1.05);
}

.share-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.share-modal-close:hover {
    background: #f0f0f0;
}

/* Mobile Share FAB - Desktop'ta gizli */
.mobile-share-fab,
.mobile-share-menu {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-detail-wrapper {
        padding: 60px 20px 100px;
    }
    
    .blog-social-sidebar {
        display: none;
    }
    
    /* Mobile Share FAB */
    .mobile-share-fab {
        position: fixed;
        bottom: 90px;
        right: 30px;
        width: 50px;
        height: 50px;
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 50%;
        display: none !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        z-index: 999;
        transition: all 0.3s ease;
        color: #666;
        font-size: 20px;
    }
    
    .mobile-share-fab:hover {
        background: #f8f9fa;
        transform: scale(1.05);
    }
    
    .mobile-share-fab.active {
        background: #333;
        color: white;
        transform: rotate(45deg);
    }
    
    /* Mobile Share Menu */
    .mobile-share-menu {
        position: fixed;
        bottom: 155px;
        right: 30px;
        display: none !important;
        flex-direction: column;
        gap: 10px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: all 0.3s ease;
        z-index: 998;
    }
    
    .mobile-share-menu.active {
        display: flex !important;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .mobile-share-menu .social-share-btn {
        width: 48px;
        height: 48px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .article-title {
        font-size: 36px;
    }
    
    .article-content {
        font-size: 18px;
    }
    
    .article-excerpt {
        font-size: 19px;
    }
}

@media (max-width: 768px) {
    .blog-detail-wrapper {
        padding: 40px 15px 30px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-content {
        font-size: 17px;
    }
    
    .article-content h1 {
        font-size: 28px;
    }
    
    .article-content h2 {
        font-size: 24px;
    }
    
    .article-content h3 {
        font-size: 20px;
    }
    
    .article-excerpt {
        font-size: 17px;
        padding: 20px;
    }
    
    .blog-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-videos-grid {
        grid-template-columns: 1fr;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .share-modal-buttons {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .blog-social-sidebar,
    .related-posts,
    .reading-progress {
        display: none !important;
    }
    
    .article-content {
        font-size: 12pt;
        line-height: 1.6;
    }
}
