/* ملف تنسيق صفحة تفاصيل المقال
-------------------------------------------------- */
:root {
    --primary-color: #1c4f82;
    --secondary-color: #e6b400;
    --dark-color: #0a2240;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

/* تنسيقات العنوان الرئيسي */
.page-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('../images/pattern.png');
    opacity: 0.1;
    z-index: 1;
}

.page-header .text-center {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.breadcrumb {
    background-color: transparent;
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a:hover {
    color: #fff;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item i {
    margin-left: 5px;
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* تنسيقات محتوى المقال */
.news-content {
    padding: 60px 0;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.3;
}

.meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    color: #6c757d;
    font-size: 0.9rem;
}

.meta-info span {
    display: inline-flex;
    align-items: center;
}

.meta-info i {
    margin-left: 5px;
    color: var(--secondary-color);
}

.date-badge {
    background-color: rgba(230, 180, 0, 0.1);
    color: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.news-content-wrapper {
    margin-bottom: 40px;
}

.article-main-image-container {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 300px; /* عرض معقول للصورة الطولية */
    float: left;
    margin-left: 25px;
    margin-bottom: 15px;
}

.article-main-image {
    width: 100%;
    height: auto;
    max-height: 450px; /* ارتفاع أقصى للصورة */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.article-main-image:hover {
    transform: scale(1.02);
}

/* إضافة إطار للصورة لتحسين المظهر */
.article-main-image-container::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    z-index: -1;
    opacity: 0.5;
}

/* للدعم القديم */
.news-float-image {
    float: left;
    max-width: 50%;
    margin: 0 20px 20px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-summary {
    font-size: 1.1rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(28, 79, 130, 0.05);
    border-right: 4px solid var(--primary-color);
    border-radius: 5px;
}

.news-details {
    font-size: 1rem;
    line-height: 1.8;
    color: #343a40;
}

.news-details p {
    margin-bottom: 20px;
}

/* تنسيقات أزرار المشاركة والإعجاب */
.social-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.news-actions {
    display: flex;
    gap: 15px;
}

.action-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 30px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #6c757d;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-button:hover, .action-button.hover {
    background-color: var(--primary-color);
    color: #fff;
}

.action-button i {
    margin-left: 8px;
    font-size: 1.1rem;
}

.action-button.liked {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border-color: rgba(220, 53, 69, 0.2);
}

.action-button.liked:hover {
    background-color: var(--danger-color);
    color: #fff;
}

.action-count {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 5px;
}

/* تنسيقات القائمة المنسدلة للمشاركة */
.share-dropdown {
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.share-dropdown .dropdown-item {
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.share-dropdown .dropdown-item:hover {
    background-color: rgba(28, 79, 130, 0.1);
}

.share-dropdown .dropdown-item i {
    margin-left: 10px;
    font-size: 1.1rem;
}

/* رسالة نسخ الرابط */
.copy-success-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--success-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.copy-success-message.fade-out {
    opacity: 0;
}

/* تنسيقات العمود الجانبي */
.related-articles-section {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.related-articles-section h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
}

.related-article-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.related-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-article-content {
    display: flex;
    padding: 15px;
}

.related-article-image {
    width: 80px;
    height: 80px;
    margin-left: 15px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-article-info {
    flex: 1;
    min-width: 0;
}

.related-article-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-meta {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.related-article-meta i {
    margin-left: 5px;
    color: var(--secondary-color);
}

/* تنسيقات للشاشات الصغيرة */
@media (max-width: 767px) {
    .article-title {
        font-size: 1.8rem;
    }
    
    .news-float-image {
        float: none;
        max-width: 100%;
        margin: 0 0 20px 0;
    }
    
    .meta-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .action-buttons {
        width: 100%;
        justify-content: space-between;
    }
}
