/* blog-single.css */

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, #c41e3a, #ff4d6d);
    width: 0;
    z-index: 1000;
    transition: width 0.2s ease-out;
}

/* Container */
.blog-single {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.blog-single .blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}   

.blog-single .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Hero Section */
.blog-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 60px 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.category-tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f0f2f5;
    color: #444;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-hero h1 {
    font-size: 3rem;
    color: #1a1a1a;
    margin-bottom: 30px;
    line-height: 1.2;
    font-weight: 800;
}

/* Author Meta */
.author-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

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

.author-info {
    text-align: left;
}

.author-name {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
}

.post-meta span:not(:last-child)::after {
    content: "•";
    margin: 0 8px;
    color: #ccc;
}

/* Featured Image */
.featured-image {
    margin: -20px -20px 40px;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Social Share Sidebar */
.social-share-sidebar {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #fff;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.twitter:hover {
    background-color: #1DA1F2;
    color: #fff;
}

.share-btn.facebook:hover {
    background-color: #4267B2;
    color: #fff;
}

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

.share-btn.copy-link:hover {
    background-color: #28a745;
    color: #fff;
}

/* Blog Content */
.blog-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
}

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

.blog-content h2 {
    font-size: 2rem;
    margin: 2em 0 1em;
    color: #1a1a1a;
}

.blog-content h3 {
    font-size: 1.5rem;
    margin: 1.5em 0 1em;
    color: #1a1a1a;
}

.blog-content blockquote {
    margin: 2em 0;
    padding: 1em 2em;
    border-left: 4px solid #c41e3a;
    background-color: #f8f9fa;
    font-style: italic;
    color: #555;
}

.blog-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 2em 0;
}

/* Tags */
.blog-tags {
    margin: 40px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 6px 12px;
    background-color: #f0f2f5;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #e2e5e9;
    color: #333;
}

/* Author Box */
.author-box {
    margin: 60px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 20px;
    max-width: 800px;
}

.author-box .author-avatar {
    width: 80px;
    height: 80px;
}

.author-details h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: #1a1a1a;
}

.author-bio {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.author-social a {
    color: #666;
    margin-right: 15px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.author-social a:hover {
    color: #c41e3a;
}

/* Related Posts */
.related-posts {
    margin: 60px auto;
    max-width: 1000px;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #1a1a1a;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-post {
    text-decoration: none;
    color: inherit;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
}

.related-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-post h3 {
    padding: 20px;
    margin: 0;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.related-date {
    display: block;
    padding: 0 20px 20px;
    color: #666;
    font-size: 0.9rem;
}

/* Comments Section */
.comments-section {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin: 60px auto;
    max-width: 800px;
}

.comments-section h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.comment-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

/* Comment Form */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.comment-form input[type="text"],
.comment-form input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.comment-form textarea {
    width: 100%;
    height: 150px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #c41e3a;
}

/* Form Labels */
.comment-form label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.comment-form label:after {
    content: " *";
    color: #c41e3a;
}

label[for="commenter_email"]:after {
    display: none;
}

/* Character Counter */
.character-count {
    text-align: right;
    font-size: 0.875rem;
    color: #666;
    margin-top: -15px;
}

/* Submit Button */
.submit-comment {
    padding: 12px 24px;
    background-color: #c41e3a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    align-self: flex-end;
    transition: background-color 0.3s ease;
}

.submit-comment:hover {
    background-color: #a01830;
}

/* Comments List */
.comments-list {
    margin-top: 40px;
}
/* Enhanced Blog Meta and Tags Styling */
.blog-hero .post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.blog-hero .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #1a1a1a;
    border: 1px solid rgba(177, 22, 11, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.blog-hero .meta-item i {
    color: #b1160b;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.blog-hero .meta-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(177, 22, 11, 0.15);
    border-color: #b1160b;
}

.blog-hero .meta-item:hover i {
    transform: scale(1.1);
}

/* Tags Section */
.blog-hero .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
    padding: 5px 0;
}

.blog-hero .tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: #b1160b;
    color: #ffffff;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    box-shadow: 0 2px 8px rgba(177, 22, 11, 0.2);
}

.blog-hero .tag:before {
    content: '#';
    margin-right: 4px;
    opacity: 0.8;
}

.blog-hero .tag:hover {
    background: #fff;
    color: #b1160b;
    border-color: #b1160b;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 15px rgba(177, 22, 11, 0.25);
}

/* Reading Time Special Styling */
.blog-hero .meta-item.read-time {
    background: #b1160b;
}

.blog-hero .meta-item.read-time i,
.blog-hero .meta-item.read-time span {
    color: #fff;
}

/* Views Counter Special Styling */
.blog-hero .meta-item.views {
    background: linear-gradient(45deg, #1a1a1a, #b1160b);
    border: none;
}

/* Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-hero .meta-item,
.blog-hero .tag {
    animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(var(--i) * 0.1s);
}

/* Media Queries */
@media (max-width: 992px) {
    .blog-hero .post-meta {
        padding: 10px 15px;
        gap: 12px;
    }

    .blog-hero .meta-item {
        padding: 6px 14px;
        font-size: 13px;
    }

    .blog-hero .tag {
        padding: 7px 16px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .blog-hero .post-meta {
        flex-wrap: wrap;
        padding: 8px 12px;
        gap: 8px;
    }

    .blog-hero .meta-item {
        padding: 5px 12px;
        font-size: 12px;
    }

    .blog-hero .tags {
        gap: 8px;
        margin: 20px 0;
    }

    .blog-hero .tag {
        padding: 6px 14px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .blog-hero .post-meta {
        padding: 6px 10px;
        gap: 6px;
        justify-content: center;
    }

    .blog-hero .meta-item {
        padding: 4px 10px;
        font-size: 11px;
    }

    .blog-hero .tags {
        justify-content: center;
        gap: 6px;
    }

    .blog-hero .tag {
        padding: 5px 12px;
        font-size: 11px;
    }
}





.comment {
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
}

.comment:last-child {
    border-bottom: none;
}

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

.comment-author {
    font-weight: 600;
    color: #1a1a1a;
}

.comment-date {
    font-size: 0.875rem;
    color: #666;
}

.comment-text {
    color: #333;
    line-height: 1.6;
}

.form-notice {
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
    margin: 10px 0;
}

/* Alert Messages */
#commentMessage.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
}

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

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

/* Back to Blogs */
.back-to-blogs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    margin-top: 40px;
    transition: color 0.3s ease;
}

.back-to-blogs:hover {
    color: #c41e3a;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .social-share-sidebar {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin: 20px 0;
    }
}

@media (max-width: 992px) {
    .blog-hero h1 {
        font-size: 2.5rem;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 40px 20px;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .featured-image {
        height: 300px;
    }

    .blog-content {
        font-size: 1.1rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-box .author-avatar {
        margin: 0 auto;
    }

    .comments-section {
        padding: 20px;
    }

    .submit-comment {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 1.75rem;
    }

    .comment-form {
        flex-direction: column;
    }

    .comment {
        flex-direction: column;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
    }
}

/* Print Styles */
@media print {
    .social-share-sidebar,
    .comments-section,
    .related-posts,
    .back-to-blogs {
        display: none;
    }

    .blog-content {
        font-size: 12pt;
        line-height: 1.5;
    }
}