/* Blog Detail Page Styles */

.blog-details-section .excerpt {
    background: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #007bff;
    margin: 20px 0;
    border-radius: 4px;
}

.blog-details-section .excerpt p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.6;
    color: #495057;
}

.blog-details-section .content {
    font-size: 1.05em;
    line-height: 1.8;
    color: #333;
}

.blog-details-section .content p {
    margin-bottom: 1.5em;
}

.author-info .author-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.author-info .author-avatar {
    margin-right: 15px;
    flex-shrink: 0;
}

.author-info .author-avatar .avatar-circle {
    width: 60px;
    height: 60px;
    font-size: 18px;
    letter-spacing: 1px;
}

.author-info .author-details h4 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
    color: #333;
}

.author-info .author-details p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.related-posts .related-post-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.related-posts .related-post-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.related-posts .post-thumbnail {
    margin-right: 15px;
    flex-shrink: 0;
}

.related-posts .post-thumbnail img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.related-posts .post-info h5 {
    margin: 0 0 8px 0;
    font-size: 0.95em;
    line-height: 1.4;
    color: #333;
}

.related-posts .post-info .post-date {
    font-size: 0.8em;
    color: #666;
}

.navigation-area {
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 30px 0;
    margin: 30px 0;
}

.navigation-area .nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.navigation-area .nav-link:hover {
    color: #007bff;
}

.navigation-area .prev-post .nav-link {
    justify-content: flex-start;
}

.navigation-area .next-post .nav-link {
    justify-content: flex-end;
}

.navigation-area .nav-link i {
    font-size: 1.2em;
    margin: 0 10px;
}

.navigation-area .nav-link .content span {
    font-size: 0.9em;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.navigation-area .nav-link .content h5 {
    margin: 0;
    font-size: 1em;
    line-height: 1.3;
}

.back-to-blog {
    text-align: center;
}

.back-to-blog .vl-btn1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.back-to-blog .vl-btn1:hover {
    background: #0056b3;
    color: white;
}

/* RTL Support */
[dir="rtl"] .author-info .author-avatar {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .related-posts .post-thumbnail {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .navigation-area .prev-post .nav-link {
    justify-content: flex-end;
}

[dir="rtl"] .navigation-area .next-post .nav-link {
    justify-content: flex-start;
}

/* Responsive */
@media (max-width: 768px) {
    .author-info .author-card {
        flex-direction: column;
        text-align: center;
    }

    .author-info .author-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .related-posts .related-post-item {
        flex-direction: column;
    }

    .related-posts .post-thumbnail {
        margin-right: 0;
        margin-bottom: 10px;
        align-self: center;
    }

    .navigation-area .row>div {
        margin-bottom: 20px;
    }

    .navigation-area .next-post {
        text-align: left !important;
    }
}

/* Comments Section */
.comments-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e9ecef;
}

.comments-header h3 {
    margin-bottom: 30px;
    font-size: 1.5em;
    color: #333;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.login-prompt {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
}

.login-prompt a {
    color: #007bff;
    text-decoration: none;
}

.login-prompt a:hover {
    text-decoration: underline;
}

.add-comment-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.add-comment-form h4 {
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.comment-item {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.comment-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    margin-right: 12px;
    flex-shrink: 0;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.author-info h5 {
    margin: 0 0 4px 0;
    font-size: 1em;
    color: #333;
}

.comment-date {
    font-size: 0.85em;
    color: #666;
}

.comment-actions {
    display: flex;
    gap: 8px;
}

.btn-edit,
.btn-delete,
.btn-reply {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 0.85em;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn-edit:hover,
.btn-reply:hover {
    background: #e3f2fd;
}

.btn-delete {
    color: #dc3545;
}

.btn-delete:hover {
    background: #ffeaea;
}

.comment-content p {
    margin: 0;
    line-height: 1.6;
    color: #333;
}

.comment-footer {
    margin-top: 10px;
}

.reply-form {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.replies {
    margin-top: 20px;
    margin-left: 40px;
    border-left: 2px solid #e9ecef;
    padding-left: 20px;
}

.reply-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* RTL Support */
[dir="rtl"] .author-avatar {
    margin-right: 0;
    margin-left: 12px;
}

[dir="rtl"] .replies {
    margin-left: 0;
    margin-right: 40px;
    border-left: none;
    border-right: 2px solid #e9ecef;
    padding-left: 0;
    padding-right: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .comment-header {
        flex-direction: column;
        gap: 10px;
    }

    .comment-actions {
        align-self: flex-start;
    }

    .replies {
        margin-left: 20px;
        padding-left: 15px;
    }

    [dir="rtl"] .replies {
        margin-right: 20px;
        padding-right: 15px;
    }
}