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

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

/* Hero Section */
.single-post-hero {
   background: linear-gradient(180deg, #fff 0%, #4183AE 100%);
  color: #fff;
  padding: 120px 0 60px;
  margin-bottom: 40px;
}

.post-categories {
    margin-bottom: 20px;
}

.category-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease;
     background: #ededed;
}

.category-badge:hover {
    transform: translateY(-2px);
    color: #737373;
}

/* Category colors */
/*.category-accounting {*/
/*    background: #4299e1;*/
/*}*/

/*.category-billing {*/
/*    background: #48bb78;*/
/*}*/

/*.category-tax {*/
/*    background: #ed8936;*/
/*}*/

/*.category-uncategorized {*/
/*    background: #a0aec0;*/
/*}*/

.post-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 20px 0;
    max-width: 900px;
    color: white;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 16px;
}

.post-date {
    font-size: 14px;
    opacity: 0.9;
}

.post-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Featured Image */
.featured-image-section {
    margin: 40px 0;
}

.featured-image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Main Content Section */
.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.main-content {
    min-width: 0;
}

.single-post-article {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Post Content Styling */
.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #2d3748;
}

.post-content h2 {
    font-size: 32px;
    margin: 40px 0 20px;
    color: #1a202c;
}

.post-content h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #1a202c;
}

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

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

.post-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    border-left: 4px solid #667eea;
    background: #f7fafc;
    font-style: italic;
    font-size: 20px;
    color: #4a5568;
    border-radius: 0 12px 12px 0;
}

.post-content ul, 
.post-content ol {
    margin: 20px 0 20px 20px;
}

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

.post-content a {
    color: #667eea;
    text-decoration: underline;
}

.post-content a:hover {
    color: #764ba2;
}

/* Tags Section */
.post-tags {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.tags-label {
    font-weight: 600;
    margin-right: 15px;
    color: #4a5568;
}

.tags-list {
    display: inline-block;
}

.tag-link {
    display: inline-block;
    padding: 5px 12px;
    background: #edf2f7;
    color: #4a5568;
    border-radius: 20px;
    font-size: 14px;
    margin: 0 8px 8px 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #667eea;
    color: white;
}

/* Author Bio Section */
.author-bio-section {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: #f7fafc;
    border-radius: 12px;
    margin: 40px 0;
}

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

.author-bio-name {
    font-size: 20px;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-twitter {
    color: #1da1f2;
    font-size: 18px;
}

.author-bio-description {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.nav-previous a,
.nav-next a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: #764ba2;
}

/* Page Links (for multi-page posts) */
.page-links {
    margin: 30px 0;
    text-align: center;
}

.page-links a,
.page-links span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 3px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #667eea;
}

.page-links span.current {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Sidebar */
.post-sidebar {
    min-width: 0;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 20px;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #4183AE;
    color: #4183AE;
}

/* Table of Contents */
.toc-content {
    max-height: 300px;
    overflow-y: auto;
}

.toc-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.toc-content a {
    color: #4a5568;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.toc-content a:hover {
    background: #f7fafc;
    color: #667eea;
}

/* Related Posts */
.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-post-item {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf2f7;
}

.related-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-post-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

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

.related-post-content {
    flex: 1;
}

.related-post-content h4 {
    font-size: 14px;
    margin: 0 0 5px;
    line-height: 1.4;
}

.related-post-content h4 a {
    color: #2d3748;
    text-decoration: none;
}

.related-post-content h4 a:hover {
    color: #667eea;
}

.related-post-date {
    font-size: 12px;
    color: #a0aec0;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 10px;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 10px;
}

.categories-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.categories-list a {
    color: #4a5568;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.categories-list a:hover {
    color: #667eea;
}

.categories-list span {
    background: #edf2f7;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    color: #4a5568;
}

/* Popular Posts */
.popular-post-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
}

.popular-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popular-post-link {
    text-decoration: none;
    display: block;
}

.popular-post-title {
    display: block;
    color: #2d3748;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 14px;
}

.popular-post-views {
    font-size: 12px;
    color: #a0aec0;
}

.popular-post-link:hover .popular-post-title {
    color: #667eea;
}

/* Comments Section */
.comments-area {
    margin-top: 40px;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.comment-reply-title {
    font-size: 24px;
    margin: 0 0 20px;
    color: #1a202c;
}

.comment-form {
    display: grid;
    gap: 20px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
}

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

.comment-form .submit {
    background: #4183AE;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: auto;
}

.comment-form .submit:hover {
    background: #4183A0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .post-title {
        font-size: 36px;
    }
    
    .single-post-article {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .single-post-hero {
        padding: 60px 0 40px;
    }
    
    .post-title {
        font-size: 28px;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .post-content h2 {
        font-size: 24px;
    }
    
    .post-content h3 {
        font-size: 20px;
    }
    
    .author-bio-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .single-post-article {
        padding: 20px;
    }
    
    .post-categories {
        display: flex;
        flex-wrap: wrap;
    }
    
    .post-title {
        font-size: 24px;
    }
    
    .author-info {
        width: 100%;
    }
    
    .post-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .related-post-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .related-post-image {
        width: 100%;
        height: 150px;
    }
}