/**
 * Internal Linking Styles - أنماط الروابط الداخلية
 * Styles for navigation, related articles, and internal links
 */

/* ===== ARTICLE NAVIGATION ===== */
.article-navigation {
    background: #f8f9fa;
    padding: 2rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    margin: 2rem 0;
}

.article-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.article-nav-link {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.article-nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.article-nav-link.prev-article {
    text-align: right;
}

.article-nav-link.next-article {
    text-align: left;
}

.nav-label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.nav-title {
    color: #e30613;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.4;
    display: block;
}

.nav-title:hover {
    color: #b8050f;
    text-decoration: none;
}

/* ===== POPULAR ARTICLES SIDEBAR ===== */
.popular-articles-sidebar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    margin: 2rem 0;
}

.sidebar-content {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sidebar-title i {
    color: #e30613;
    font-size: 1.3rem;
}

.popular-articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-article-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.popular-article-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.popular-rank {
    background: #e30613;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.popular-content {
    flex: 1;
}

.popular-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    line-height: 1.4;
}

.popular-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.popular-title a:hover {
    color: #e30613;
}

.popular-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.popular-views,
.popular-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ===== INTERNAL LINKS ===== */
.internal-link {
    color: #e30613;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dotted #e30613;
    transition: all 0.3s ease;
}

.internal-link:hover {
    color: #b8050f;
    border-bottom-style: solid;
    text-decoration: none;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 768px) {
    .article-nav-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .article-nav-link.prev-article,
    .article-nav-link.next-article {
        text-align: center;
    }
    
    .sidebar-content {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .popular-article-item {
        padding: 0.75rem;
    }
    
    .popular-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .article-navigation {
        padding: 1.5rem 0;
    }
    
    .article-nav-link {
        padding: 1rem;
    }
    
    .nav-title {
        font-size: 1rem;
    }
    
    .sidebar-content {
        padding: 1rem;
    }
    
    .sidebar-title {
        font-size: 1.3rem;
    }
    
    .popular-article-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .popular-rank {
        align-self: center;
    }
}

/* ===== BREADCRUMB ENHANCEMENTS ===== */
.breadcrumb-nav {
    background: transparent;
    padding: 0;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

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

.breadcrumb-item + .breadcrumb-item::before {
    content: "←";
    margin: 0 0.5rem;
    color: #6c757d;
}

.breadcrumb-item a {
    color: #e30613;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: #b8050f;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 600;
}

/* ===== SOCIAL SHARING ENHANCEMENTS ===== */
.social-share-enhanced {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.social-share-enhanced .share-btn {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.social-share-enhanced .facebook {
    background: #1877f2;
    color: white;
}

.social-share-enhanced .twitter {
    background: #1da1f2;
    color: white;
}

.social-share-enhanced .whatsapp {
    background: #25d366;
    color: white;
}

.social-share-enhanced .telegram {
    background: #0088cc;
    color: white;
}

.social-share-enhanced .linkedin {
    background: #0077b5;
    color: white;
}
