/* Single Blog Post Styles */

/* Breadcrumb */
.single-breadcrumb {
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'EuropaRegular', sans-serif;
    font-size: 14px;
}

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

.breadcrumb-link:hover {
    color: #1F2E4C;
}

.breadcrumb-current {
    color: #1F2E4C;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #ccc;
    display: flex;
    align-items: center;
}

/* Article Header */
.single-header {
    padding: 10px 0;
}

.single-header-content {
    width: 100%;
}

.single-title {
    font-family: 'EuropaBold', sans-serif;
    font-size: 4em;
    color: #1F2E4C;
    line-height: 1.3;
    margin: 0 0 20px 0;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.single-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-family: 'EuropaRegular', sans-serif;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
}

.meta-separator {
    display: flex;
    align-items: center;
    color: #ccc;
    margin: 0 4px;
}

/* Content Wrapper */
.single-content {
    padding: 40px 0;
}

.single-content-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    align-items: start;
}

/* Table of Contents - Desktop */
.desktop-toc {
    position: sticky;
    top: 80px;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.toc-title {
    font-family: 'EuropaBold', sans-serif;
    font-size: 16px;
    color: #1F2E4C;
    margin: 0 0 20px 0;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-item {
    margin-bottom: 8px;
}

.toc-level-3 {
    margin-left: 15px;
}

.toc-level-4 {
    margin-left: 30px;
}

.toc-link {
    color: #666;
    text-decoration: none;
    font-family: 'EuropaRegular', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.toc-link:hover,
.toc-link.active {
    color: #1F2E4C;
    font-weight: 500;
}

/* Table of Contents - Mobile */
.mobile-toc {
    display: none;
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
}

.mobile-toc-toggle {
    width: 100%;
    padding: 15px 20px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'EuropaBold', sans-serif;
    font-size: 16px;
    color: #1F2E4C;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-toc-toggle:hover,
.mobile-toc-toggle:active,
.mobile-toc.open .mobile-toc-toggle {
    background: #1F2E4C;
    color: #fff;
}

.mobile-toc-toggle svg {
    transition: transform 0.3s ease;
}

.mobile-toc.open .mobile-toc-toggle svg {
    transform: rotate(180deg);
}

.mobile-toc-content {
    padding: 0 20px 20px;
    display: none;
}

.mobile-toc.open .mobile-toc-content {
    display: block;
}

/* Article Body */
.single-body {
    min-width: 0; /* For grid overflow fix */
}

.single-featured-image {
    margin-bottom: 40px;
}

.single-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

/* Post Content */
.single-post-content {
    font-family: 'EuropaRegular', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    font-family: 'EuropaBold', sans-serif;
    color: #1F2E4C;
    margin: 40px 0 20px 0;
    scroll-margin-top: 40px;
}

.single-post-content h2 {
    font-size: 28px;
    line-height: 1.3;
}

.single-post-content h3 {
    font-size: 24px;
    line-height: 1.4;
}

.single-post-content h4 {
    font-size: 20px;
    line-height: 1.4;
}

.single-post-content p {
    margin: 0 0 20px 0;
}

.single-post-content ul,
.single-post-content ol {
    margin: 0 0 20px 0;
    padding-left: 30px;
}

.single-post-content li {
    margin-bottom: 8px;
}

.single-post-content a {
    color: #1F2E4C;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.single-post-content a:hover {
    color: #0f1a2e;
}

.single-post-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #1F2E4C;
    margin: 30px 0;
    padding: 20px 25px;
    font-style: italic;
    border-radius: 0 10px 10px 0;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

/* Related Posts */
.single-related-posts {
    padding: 60px 0;
    background: #f8f9fa;
    margin-top: 60px;
}

.related-posts-title {
    font-family: 'EuropaBold', sans-serif;
    font-size: 32px;
    color: #1F2E4C;
    text-align: center;
    margin: 0 0 40px 0;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-post-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

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

.related-post-item:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 20px;
}

.related-post-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    line-height: 1.4;
}

.related-post-title a {
    color: #1F2E4C;
    text-decoration: none;
    font-family: 'EuropaRegular', sans-serif;
    font-weight: bold;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: #0f1a2e;
}

.related-post-excerpt {
    font-family: 'EuropaRegular', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.related-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'EuropaRegular', sans-serif;
    font-size: 13px;
    color: #999;
}

/* Responsive */
@media (max-width: 1024px) {
    .single-content-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .desktop-toc {
        display: none;
    }
    
    .mobile-toc {
        display: block;
    }
    
    /* Sticky Mobile TOC */
    .mobile-toc.sticky {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        z-index: 1000;
        margin-bottom: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border-radius: 0;
    }
    
    .mobile-toc.sticky.open .mobile-toc-content {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 768px) {
    .single-title {
        font-size: 32px;
    }
    
    .single-meta {
        gap: 15px;
    }
    
    .meta-item {
        font-size: 13px;
    }
    
    .single-post-content {
        font-size: 15px;
    }
    
    .single-post-content h2 {
        font-size: 24px;
    }
    
    .single-post-content h3 {
        font-size: 20px;
    }
    
    .single-post-content h4 {
        font-size: 18px;
    }
    
    .related-posts-title {
        font-size: 28px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .single-header {
        padding: 10px 0;
    }
    
    .single-title {
        font-size: 24px;
    }
    
    .single-meta {
        flex-direction: row;
        align-items: flex-start;
        gap: 4px;
        padding: 15px 0;
    }
    
    .meta-item {
        font-size: 12px;
    }
    
    .single-content {
        padding: 30px 0;
    }
    
    .single-post-content {
        font-size: 14px;
    }
    
    .single-post-content h2 {
        font-size: 20px;
        margin: 30px 0 15px 0;
    }
    
    .single-post-content h3 {
        font-size: 18px;
        margin: 25px 0 15px 0;
    }
    
    .single-post-content h4 {
        font-size: 16px;
        margin: 20px 0 10px 0;
    }
    
    .single-related-posts {
        padding: 40px 0;
    }
    
    .related-posts-title {
        font-size: 24px;
    }
    
    /* Mobilde breadcrumb gizle */
    .single-breadcrumb {
        display: none;
    }
    
    /* Title ve meta responsive ayarları */
    .single-title {
        font-size: 2em;
        line-height: 1.4;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .single-meta {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
        padding: 15px 0;
    }
    
    .meta-left {
        gap: 4px;
    }
    
}
