/**
 * İçerik Optimizasyonu Stilleri
 * Başlık anchor linkleri ve benzer makaleler için
 *
 * @package HaberPro
 */

/* ============================================
   BAŞLIK ANCHOR LİNKLERİ
   ============================================ */

.content-heading {
    position: relative;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-left: 2rem;
    scroll-margin-top: 80px; /* Header için offset */
}

.content-heading:first-of-type {
    margin-top: 1rem;
}

.heading-anchor {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    text-decoration: none;
    color: #FF0000;
    border-radius: 4px;
}

.content-heading:hover .heading-anchor,
.heading-anchor:focus {
    opacity: 1;
}

.heading-anchor svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.heading-anchor:hover {
    color: #cc0000;
    background-color: rgba(255, 0, 0, 0.1);
}

.heading-anchor-tooltip {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 8px;
    padding: 4px 8px;
    background-color: #333;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

.heading-anchor-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-right-color: #333;
}

/* Başlık seviyeleri */
.content-heading h2,
.content-heading.h2 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.content-heading h3,
.content-heading.h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.content-heading h4,
.content-heading.h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

/* ============================================
   BENZER MAKALELER
   ============================================ */

.haberpro-auto-related-posts {
    margin: 3rem 0;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #FF0000;
}

.related-posts-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: #333;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #dee2e6;
}

.related-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post-item {
    margin: 0;
    padding: 0;
}

.related-post-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.related-post-link:hover {
    background-color: #fff;
    border-color: #FF0000;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.15);
    transform: translateY(-2px);
    color: #FF0000;
}

.related-post-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: inherit;
}

.related-post-link:hover .related-post-title {
    color: #FF0000;
}

.related-post-date {
    font-size: 0.875rem;
    color: #999;
    font-weight: 400;
}

.related-post-link:hover .related-post-date {
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .content-heading {
        padding-left: 1.5rem;
    }
    
    .heading-anchor {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .heading-anchor svg {
        width: 14px;
        height: 14px;
    }
    
    .haberpro-auto-related-posts {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .related-posts-title {
        font-size: 1.25rem;
    }
    
    .related-post-link {
        padding: 0.875rem;
    }
    
    .related-post-title {
        font-size: 0.9375rem;
    }
}

/* Print styles */
@media print {
    .heading-anchor {
        display: none;
    }
    
    .haberpro-auto-related-posts {
        page-break-inside: avoid;
    }
}

