/* ===== تنسيقات صفحة المقال ===== */
:root {
    --blog-primary: var(--primary-color, #002B5B);
    --blog-secondary: var(--secondary-color, #E31B23);
    --blog-accent: var(--accent-color, #F57C00);
    --blog-light-bg: #f9fafb;
    --blog-card-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --blog-transition: all 0.3s ease;
}

/* ----- محتوى المقال ----- */
.blog-post-content {
    padding: 120px 0 80px;
    background-color: var(--blog-light-bg);
}

.blog-post-header {
    margin-bottom: 30px;
    text-align: center;
}

.post-category {
    display: inline-block;
    background: linear-gradient(to right, var(--blog-primary), var(--primary-light, #003c7d));
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 43, 91, 0.2);
}

.blog-post-header h1 {
    font-size: 2.5rem;
    color: var(--blog-primary);
    margin-bottom: 20px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 15px;
}

.blog-post-header h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--blog-primary), var(--blog-secondary));
    border-radius: 2px;
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    color: #666;
    font-size: 0.95rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta i {
    color: var(--blog-primary);
}

.post-featured-image {
    width: 100%;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--blog-card-shadow);
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--blog-transition);
}

.post-featured-image:hover img {
    transform: scale(1.02);
}

.post-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.post-content {
    background-color: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--blog-card-shadow);
}

.post-content h2 {
    font-size: 1.8rem;
    color: var(--blog-primary);
    margin: 35px 0 20px;
    position: relative;
    padding-right: 15px;
}

.post-content h2:first-child {
    margin-top: 0;
}

.post-content h2:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, var(--blog-primary), var(--blog-secondary));
    border-radius: 2px;
}

.post-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #444;
    font-size: 1.05rem;
}

.post-content ul, .post-content ol {
    margin-bottom: 25px;
    padding-right: 20px;
}

.post-content li {
    margin-bottom: 10px;
    line-height: 1.7;
    position: relative;
    padding-right: 5px;
    color: #444;
}

.post-content li::before {
    content: '•';
    color: var(--blog-primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-right: -1em;
}

.post-tip {
    display: flex;
    background-color: rgba(0, 43, 91, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    gap: 20px;
    border-right: 4px solid var(--blog-primary);
}

.tip-icon {
    flex: 0 0 50px;
    height: 50px;
    background: linear-gradient(to right, var(--blog-primary), var(--primary-light, #003c7d));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border-radius: 50%;
}

.tip-content {
    flex: 1;
}

.tip-content h4 {
    color: var(--blog-primary);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.tip-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.post-quote {
    margin: 35px 0;
    padding: 5px 25px;
    border-right: 4px solid var(--blog-secondary);
    position: relative;
}

.post-quote blockquote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-quote blockquote p {
    margin-bottom: 10px;
}

.post-quote cite {
    display: block;
    color: #666;
    font-size: 0.9rem;
    font-style: normal;
    text-align: left;
}

.post-cta {
    background: linear-gradient(135deg, var(--blog-primary), var(--primary-light, #003c7d));
    background-image: 
        linear-gradient(135deg, var(--blog-primary), var(--primary-light, #003c7d)),
        radial-gradient(circle at 20% 150%, rgba(255, 255, 255, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 43, 91, 0.2);
    position: relative;
    overflow: hidden;
}

.post-cta:before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0.5;
    transform: scale(2);
}

.post-cta h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    position: relative;
}

.post-cta p {
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
}

.post-cta .btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--blog-primary);
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.post-cta .btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.3));
    transition: all 0.3s ease;
    z-index: 0;
}

.post-cta .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.post-cta .btn:hover:before {
    width: 100%;
}

.post-cta .btn span {
    position: relative;
    z-index: 1;
}

/* ----- قسم الجانب (Sidebar) ----- */
.post-sidebar {
    position: sticky;
    top: 100px;
}

.author-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--blog-card-shadow);
    text-align: center;
}

.author-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid var(--blog-primary);
    padding: 3px;
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.author-card h3 {
    color: var(--blog-primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.author-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.author-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #f4f6f8;
    color: var(--blog-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--blog-transition);
}

.author-social a:hover {
    background-color: var(--blog-primary);
    color: #fff;
    transform: translateY(-3px);
}

.related-posts, .post-categories {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--blog-card-shadow);
}

.related-posts h3, .post-categories h3 {
    color: var(--blog-primary);
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.related-posts h3:after, .post-categories h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--blog-primary), var(--blog-secondary));
    border-radius: 2px;
}

.related-post-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.related-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-post-item img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
}

.related-post-item h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
}

.related-post-item a {
    color: var(--blog-primary);
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    transition: var(--blog-transition);
}

.related-post-item a:after {
    content: "←";
    margin-right: 5px;
    transition: margin 0.3s ease;
}

.related-post-item a:hover {
    color: var(--blog-secondary);
}

.related-post-item a:hover:after {
    margin-right: 10px;
}

.post-categories ul {
    list-style: none;
    padding: 0;
}

.post-categories ul li {
    margin-bottom: 12px;
}

.post-categories ul li:last-child {
    margin-bottom: 0;
}

.post-categories ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f4f6f8;
    border-radius: 8px;
    color: #555;
    font-weight: 500;
    transition: var(--blog-transition);
}

.post-categories ul li a:after {
    content: "←";
    opacity: 0;
    transition: all 0.3s ease;
}

.post-categories ul li a:hover {
    background-color: var(--blog-primary);
    color: #fff;
    padding-right: 20px;
}

.post-categories ul li a:hover:after {
    opacity: 1;
}

/* ----- قسم مشاركة المقال ----- */
.share-post {
    background-color: #fff;
    padding: 40px 0;
}

.share-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.share-container h3 {
    color: var(--blog-primary);
    font-size: 1.5rem;
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.btn-share {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: var(--blog-transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-share.facebook {
    background-color: #3b5998;
}

.btn-share.twitter {
    background-color: #1da1f2;
}

.btn-share.linkedin {
    background-color: #0077b5;
}

.btn-share.whatsapp {
    background-color: #25d366;
}

.btn-share.telegram {
    background-color: #0088cc;
}

.btn-share:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ----- تصميم متجاوب (Responsive Design) ----- */
@media (max-width: 992px) {
    .post-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .blog-post-header h1 {
        font-size: 2rem;
    }
    
    .post-featured-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .blog-post-content {
        padding: 100px 0 60px;
    }
    
    .blog-post-header h1 {
        font-size: 1.8rem;
    }
    
    .post-featured-image {
        height: 250px;
    }
    
    .post-content {
        padding: 25px;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-tip {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .blog-post-header h1 {
        font-size: 1.5rem;
    }
    
    .post-featured-image {
        height: 200px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .share-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .author-card, .related-posts, .post-categories {
        padding: 20px;
    }
} 