/* Blog Details Page Specific Styles */

/* Main Content Layout - Single Column, No Sidebar */
.blog-details-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 20px 0;
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #6b7280;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #2563eb;
}

.breadcrumb i {
    font-size: 12px;
    color: #9ca3af;
}

.breadcrumb .current {
    color: #1f2937;
    font-weight: 500;
}

/* Blog Article Container */
.blog-article {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

/* Article Header */
.article-header {
    margin-bottom: 40px;
}

.article-category {
    margin-bottom: 20px;
}

.article-category .category-link {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.article-category .category-link:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.article-title {
    font-size: 42px;
    color: #1f2937;
    line-height: 1.2;
    margin: 0 0 30px 0;
    font-weight: 800;
}

/* Article Meta Information */
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 20px;
}

.meta-left, .meta-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 16px;
}

.author-title {
    font-size: 14px;
    color: #6b7280;
}

.meta-right span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6b7280;
    font-size: 14px;
}

.meta-right i {
    color: #2563eb;
}

/* Featured Image */
.article-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content */
.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 40px;
}

.article-content h2 {
    font-size: 28px;
    color: #1f2937;
    margin: 40px 0 20px 0;
    font-weight: 700;
}

.article-content h3 {
    font-size: 24px;
    color: #1f2937;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

/* Blog Engagement Section */
.blog-engagement {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    margin-bottom: 30px;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 20px;
}

.engagement-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.engagement-stats .likes-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 16px;
    font-weight: 500;
}

.engagement-stats .likes-count i {
    color: #ef4444;
    font-size: 18px;
}

.engagement-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.like-blog-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid #e5e7eb;
    padding: 12px 24px;
    border-radius: 25px;
    color: #6b7280;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.like-blog-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
    transform: translateY(-1px);
}

.like-blog-btn.liked {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.like-blog-btn.liked:hover {
    background: rgba(239, 68, 68, 0.15);
}

.like-blog-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.like-blog-btn i {
    font-size: 18px;
    transition: all 0.3s ease;
}

.login-to-like {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.login-to-like a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.login-to-like a:hover {
    text-decoration: underline;
}

.guest-like-note {
    margin: 10px 0 0 0;
    color: #6b7280;
    font-size: 13px;
}

.guest-like-note i {
    color: #3b82f6;
    margin-right: 4px;
}

.guest-like-note a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.guest-like-note a:hover {
    text-decoration: underline;
}

/* Tags Section */
.article-tags {
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid #f1f5f9;
}

.article-tags h4 {
    margin-bottom: 15px;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #f1f5f9;
    color: #374151;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #2563eb;
    color: white;
}

/* Social Share Section */
.social-share {
    padding: 30px 0;
    border-top: 1px solid #f1f5f9;
    margin-bottom: 30px;
}

.social-share h4 {
    margin-bottom: 20px;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0a66c2;
    color: white;
}

.share-btn.copy-link {
    background: #6b7280;
    color: white;
}

/* Related Blogs Section */
.related-blogs {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.related-blogs h3 {
    font-size: 28px;
    color: #1f2937;
    margin: 0 0 25px 0;
    font-weight: 700;
}

.related-blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-blog-card {
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.related-blog-image {
    height: 150px;
    overflow: hidden;
}

.related-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.related-blog-content {
    padding: 20px;
}

.related-blog-title a {
    color: #1f2937;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    display: block;
    margin-bottom: 10px;
}

.related-blog-title a:hover {
    color: #2563eb;
}

.related-blog-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #6b7280;
}

.related-blog-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Comments Section */
.comments-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.comments-section h3 {
    font-size: 24px;
    color: #1f2937;
    margin: 0 0 25px 0;
    font-weight: 700;
}

.comment-form {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
}

.comment-user {
    margin-bottom: 15px;
    font-weight: 600;
    color: #1f2937;
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 16px;
    resize: vertical;
    margin-bottom: 15px;
    font-family: inherit;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 15px;
}

.comment-form-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.comment-submit-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.comment-submit-btn:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.comment-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.cancel-reply-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.cancel-reply-btn:hover {
    background: #4b5563;
}

.comment-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 500;
}

.comment-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.comment-message.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.login-to-comment {
    padding: 20px;
    background: #f1f5f9;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
}

.login-to-comment a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.comments-list {
    margin-top: 30px;
}

.comment {
    padding: 25px;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #fafafa;
}

.comment.reply {
    background: #f8fafc;
    border-left: 3px solid #2563eb;
    margin-left: 30px;
    margin-top: 15px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.comment-author {
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
}

.comment-date {
    color: #6b7280;
    font-size: 14px;
}

.comment-content {
    color: #374151;
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 15px;
}

.comment-actions {
    display: flex;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.reply-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.reply-btn:hover {
    background: #f3f4f6;
    color: #2563eb;
}

.like-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.like-btn:hover {
    background: #fef2f2;
    color: #ef4444;
}

.like-btn.liked {
    color: #ef4444;
}

.like-btn.liked i {
    color: #ef4444 !important;
}

.likes-display {
    color: #6b7280;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    display: none;
    animation: slideIn 0.3s ease-out;
}

.comment-notification.success {
    background: #10b981;
}

.comment-notification.error {
    background: #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.comment-replies {
    margin-top: 20px;
}

.no-comments {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-details-main {
        max-width: 900px;
    }
    
    .related-blogs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-details-main {
        padding: 80px 15px 0;
    }
    
    .article-title {
        font-size: 32px;
    }
    
    .blog-article {
        padding: 25px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .comment.reply {
        margin-left: 15px;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 28px;
    }
    
    .blog-article {
        padding: 20px;
    }
    
    .related-blogs {
        padding: 20px;
    }
    
    .comments-section {
        padding: 20px;
    }
}