﻿/*BlogPostDetail.razor*/
/*__________________________________________________________*/
.rtl-container {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    background-color: #f8f9fa;
}

/* تصميم قسم الغلاف */
.post-cover {
    position: relative;
    background-color: #1a1a1a;
    color: white;
    padding: 6rem 0 2rem;
}

.content-strip {
    position: relative;
    z-index: 2;
}

.category-link {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.category-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.category-icon {
    margin-left: 0.5rem;
}

.main-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    max-width: 800px;
}

/* معلومات المقال */
.article-meta {
    background-color: white;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.meta-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
}

.author-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #f0f0f0;
}

.author-name {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.publish-date {
    color: #666;
    font-size: 0.9rem;
}

.article-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #444;
}

/* صورة المقال */
.featured-image-container {
    background-color: white;
    padding: 2rem 0;
}

.image-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-wrapper:hover .featured-image {
    transform: scale(1.02);
}

/* تخطيط المحتوى */
.article-body {
    padding: 4rem 0;
    background-color: white;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: start;
}

.main-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content {
    max-width: 800px;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 2rem 0;
}

.sticky-sidebar {
    position: sticky;
    top: 2rem;
}

/* قسم المشروعات ذات الصلة */
.related-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.related-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.related-icon {
    font-size: 1.5rem;
}

.related-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .meta-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .sticky-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .post-cover {
        padding: 4rem 0 2rem;
    }

    .main-title {
        font-size: 2rem;
    }

    .article-intro {
        font-size: 1.1rem;
    }
}





/*video*/
/*__________________________________________________________*/
.video-showcase {
    background: linear-gradient(to bottom, #1a1a1a, #2d2d2d);
    padding: 3rem 0;
    margin: 2rem 0;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.main-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    object-fit: cover;
}

.video-info {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-top: 2rem;
    color: #fff;
}

.video-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #fff;
}

.video-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    color: #b8b8b8;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .video-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .video-info {
        padding: 1.5rem;
    }
}