/* ========================================
   SINGLE POST PAGE STYLES
   ======================================== */

.single-post-section {
    padding: 40px 0;
}

.single-post-section .container {
    max-width: 1200px;
}

/* Sticky Sidebar */
.single-post-section .catSidebar {
    position: sticky;
    top: 20px;
    align-self: flex-start;
    overflow-y: auto;
}

/* Single Post Hero (Thumbnail with Social Overlay) */
.single-post-hero {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.single-post-hero img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Category Badge at Bottom Left - Half Overlay */
.single-post-category-badge {
    position: absolute;
    bottom: -20px;
    left: 40px;
    z-index: 100;
}

.post-category-overlay-badge {
    background-color: var(--sheesha-red);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s;
    position: relative;
    z-index: 100;
}

.post-category-overlay-badge:hover {
    background-color: var(--sheesha-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.single-post-social-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 50;
}

.social-share-buttons {
    display: flex;
    gap: 10px;
    flex-direction: row;
}

.social-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.social-btn:hover {
    background-color: white;
    transform: scale(1.1);
}

.social-btn.facebook-share:hover {
    background-color: #1877f2;
    color: white;
}

.social-btn.twitter-share:hover {
    background-color: #1da1f2;
    color: white;
}

.social-btn.copy-link:hover {
    background-color: var(--sheesha-red);
    color: white;
}

.social-btn.like-post {
    position: relative;
}

.social-btn.like-post.liked i {
    color: var(--sheesha-red);
}

.social-btn.like-post:hover {
    background-color: #ff6b9d;
    color: white;
}

.like-count {
    position: absolute;
    bottom: -8px;
    right: -8px;
    background-color: var(--sheesha-red);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

/* Single Post Header */
.single-post-header {
    margin-bottom: 25px;
    margin-top: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding:0px
}

.single-post-title {
    font-weight: bold;
    color: var(--sheesha-dark);
    margin: 0 0 20px 0;
    line-height: 1.3;
    direction: ltr;
}

.single-post-meta {
    display: flex;
    gap: 25px;
    font-size: 15px;
    color: #666;
    padding-top: 15px;
    direction: ltr;
    align-items: center;
    flex-wrap: wrap;
}

.single-post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.single-post-meta i {
    color: var(--sheesha-red);
}

/* Single Post Content */
.single-post-content {
    border-radius: 8px;
    line-height: 1.8;
    font-size: 16px;
    padding: 20px;
}

.single-post-content p {
    margin-bottom: 20px;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    margin: 30px 0 15px 0;
    color: var(--sheesha-dark);
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.single-post-content ul,
.single-post-content ol {
    margin: 20px 0;
    padding-right: 30px;
}

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

.single-post-content blockquote {
    border-right: 4px solid var(--sheesha-red);
    padding: 20px 30px;
    margin: 30px 0;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-style: italic;
}

/* Copy Link Notification */
.copy-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: var(--sheesha-dark);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s;
    z-index: 1000;
}

.copy-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .single-post-title {
        font-size: 28px;
    }
    
    .single-post-header {
        padding: 20px;
    }
    
    .single-post-content {
        padding: 25px 20px;
    }
    
    .single-post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .single-post-social-overlay {
        bottom: 10px;
        right: 10px;
    }
    
    .social-share-buttons {
        gap: 8px;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .single-post-section {
        padding: 20px 0;
    }
    
    .single-post-title {
        font-size: 24px;
    }
    
    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .copy-notification {
        right: 10px;
        left: 10px;
        text-align: center;
    }
}

/* ========================================
   COMMENTS SECTION STYLES
   ======================================== */

.single-post-comments {
    margin-top: 50px;
    padding: 50px;
    clear: both;
    width: 100%;
    display: block;
}

.comments-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--sheesha-dark);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9e9e9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-title i {
    color: var(--sheesha-red);
}

.comments-count {
    font-size: 18px;
    color: #666;
    font-weight: 400;
}

/* Individual Comment Styling */
.comments-list {
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
}


/* Nested/Reply Comments - Indent children */
.comments-list .depth-2 {
    margin-left: 40px;
    margin-top: 15px;
}

.comments-list .depth-2 .comment-item {
    background: #ffffff;
    border-right: 4px solid #999;
}

.comment-author-avatar {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--sheesha-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.comment-author-info {
    flex: 1;
}

.comment-author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--sheesha-dark);
    margin-bottom: 5px;
}

.comment-date {
    font-size: 13px;
    color: #999;
    direction: ltr;
}

.comment-text {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
    direction: ltr;
}

.comment-meta-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.comment-meta-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-meta-info i {
    color: var(--sheesha-red);
}

.comment-like-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    transition: all 0.3s;
    padding: 5px 10px;
    border-radius: 5px;
}

.comment-like-btn:hover {
    background: rgba(198, 61, 47, 0.1);
    color: var(--sheesha-red);
}

.comment-like-btn.liked i {
    color: var(--sheesha-red);
}

/* Comment Form Styles */
.comment-form-wrapper {
    border-radius: 12px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.comment-form-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--sheesha-dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    direction: ltr;
}

.comment-form-title i {
    color: var(--sheesha-red);
}

.comment-form {
    direction: ltr;
    width: 100%;
    max-width: 100%;
}

.comment-form p {
    margin: 0 !important;
    width: 100%;
    max-width: 100%;
}

.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
    width: 100%;
    max-width: 100%;
}

.form-group {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group.full-width {
    grid-column: 1 / -1;
    margin-bottom: 15px;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s;
    direction: ltr;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sheesha-red);
    box-shadow: 0 0 0 3px rgba(198, 61, 47, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.char-limit {
    position: absolute;
    bottom: 10px;
    left: 15px;
    font-size: 12px;
    color: #999;
    background: white;
    padding: 2px 8px;
    border-radius: 4px;
}

.submit-comment-btn {
    background: var(--sheesha-red);
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.submit-comment-btn:hover {
    background: #a73229;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 61, 47, 0.3);
}

/* Comments Pagination */
.comments-pagination {
    margin-top: 30px;
    text-align: center;
}

.comments-pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: var(--sheesha-dark);
    text-decoration: none;
    transition: all 0.3s;
}

.comments-pagination .page-numbers:hover,
.comments-pagination .page-numbers.current {
    background: var(--sheesha-red);
    color: white;
    border-color: var(--sheesha-red);
}

/* Responsive */
@media (max-width: 768px) {
    .comment-form-row {
        grid-template-columns: 1fr;
    }
    
    .single-post-comments {
        padding: 20px;
    }
    
    .comment-form-wrapper {
        padding: 20px;
    }
}

/* ========================================
   RELATED POSTS SLIDER
   ======================================== */

.related-posts-slider {
    padding-top: 30px;
}
