/* Modern Blog Post Styles */

/* Blog Post Container */
.blog-post-container {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.blog-post-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Blog Post Header */
.blog-post-header {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.blog-post-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #6B46C1 0%, #9333EA 100%);
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
    line-height: 1.3;
    text-align: right;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.blog-post-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #6B46C1 0%, #9333EA 100%);
    color: #ffffff;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
}

.blog-post-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.blog-post-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 500;
}

.blog-post-date i {
    color: #6B46C1;
    font-size: 1.1rem;
}

/* Featured Image */
.blog-post-featured-image {
    width: 100%;
    border-radius: 20px;
    margin: 30px 0;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

.blog-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

/* Blog Post Content */
.blog-post-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.blog-post-content-wrapper {
    text-align: justify;
    line-height: 2;
    font-size: 1.1rem;
    color: #374151;
    direction: rtl;
}

.blog-post-content-wrapper p {
    margin-bottom: 25px;
    text-align: justify;
}

.blog-post-content-wrapper h1,
.blog-post-content-wrapper h2,
.blog-post-content-wrapper h3,
.blog-post-content-wrapper h4 {
    color: #1a202c;
    margin-top: 35px;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: right;
}

.blog-post-content-wrapper h2 {
    font-size: 2rem;
    border-right: 4px solid #6B46C1;
    padding-right: 15px;
}

.blog-post-content-wrapper h3 {
    font-size: 1.6rem;
}

.blog-post-content-wrapper ul,
.blog-post-content-wrapper ol {
    margin: 20px 0;
    padding-right: 30px;
    text-align: right;
}

.blog-post-content-wrapper li {
    margin-bottom: 10px;
}

.blog-post-content-wrapper a {
    color: #6B46C1;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.blog-post-content-wrapper a:hover {
    color: #9333EA;
    border-bottom-color: #9333EA;
}

.blog-post-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.blog-post-content-wrapper blockquote {
    border-right: 4px solid #6B46C1;
    padding: 20px 30px;
    margin: 30px 0;
    background: #f9fafb;
    border-radius: 8px;
    font-style: italic;
    color: #4b5563;
    text-align: right;
}

/* Blog Post Gallery */
.blog-post-gallery {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.blog-post-gallery-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 30px;
    text-align: right;
    padding-bottom: 15px;
    border-bottom: 3px solid #e5e7eb;
}

.blog-post-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.blog-post-gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-post-gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.blog-post-gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.blog-post-gallery-item:hover img {
    transform: scale(1.1);
}

/* Back to Blog Link */
.blog-post-footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: linear-gradient(135deg, #6B46C1 0%, #9333EA 100%);
    color: #ffffff;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(107, 70, 193, 0.3);
}

.back-to-blog:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(107, 70, 193, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.back-to-blog i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-post-container {
        padding: 30px 0;
    }

    .blog-post-header {
        padding: 25px 20px;
    }

    .blog-post-title {
        font-size: 1.8rem;
    }

    .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .blog-post-content {
        padding: 30px 20px;
    }

    .blog-post-content-wrapper {
        font-size: 1rem;
    }

    .blog-post-gallery {
        padding: 25px 15px;
    }

    .blog-post-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-post-gallery-item img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .blog-post-title {
        font-size: 1.5rem;
    }

    .blog-post-header {
        padding: 20px 15px;
    }

    .blog-post-content {
        padding: 25px 15px;
    }

    .blog-post-gallery-item img {
        height: 200px;
    }
}

/* Print Styles */
@media print {
    .blog-post-container {
        background: #ffffff;
        padding: 0;
    }

    .blog-post-header,
    .blog-post-content,
    .blog-post-gallery {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }

    .back-to-blog {
        display: none;
    }
}
