/* Modern Single Post Styles */

/* Prevent conflicts with theme styles */
.single-post-modern * {
    box-sizing: border-box;
}

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

/* Post Hero Section */
.post-hero {
    position: relative;
    padding: 60px 0;
    background: linear-gradient(135deg, #2E5C8A 0%, #4A90C2 100%);
    color: white;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 92, 138, 0.8) 0%, rgba(74, 144, 194, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    opacity: 0.9;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s ease;
}

.breadcrumbs a:hover {
    opacity: 0.8;
}

.separator {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
}

.current {
    opacity: 0.7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

/* Post Meta Badges */
.post-meta-badges {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.category-badge,
.date-badge,
.read-time-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.category-badge {
    background: rgba(255,215,0,0.9);
    color: #333;
}

/* Post Title */
.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

/* Post Excerpt */
.post-excerpt {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Author Info */
.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

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

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.author-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.author-role {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Single Post Layout */
.single-post-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin: 60px 0;
    align-items: start;
}

/* Post Content */
.single-post-modern .post-content-area {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    width: 100%;
}

.single-post-modern .post-content {
    padding: 50px;
    line-height: 1.8;
    font-size: 1.1rem;
    word-wrap: break-word;
}

.single-post-modern .post-content h1,
.single-post-modern .post-content h2,
.single-post-modern .post-content h3,
.single-post-modern .post-content h4,
.single-post-modern .post-content h5,
.single-post-modern .post-content h6 {
    color: #2E5C8A;
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 600;
}

.single-post-modern .post-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.single-post-modern .post-content h3 {
    font-size: 1.5rem;
}

.single-post-modern .post-content p {
    margin-bottom: 1.5em;
}

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

.single-post-modern .post-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #2E5C8A;
    padding: 20px 30px;
    margin: 30px 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
}

.single-post-modern .post-content ul,
.single-post-modern .post-content ol {
    margin-bottom: 1.5em;
    padding-left: 30px;
}

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

/* Page Links */
.page-links {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    text-align: center;
}

.page-links-title {
    font-weight: 600;
    margin-right: 15px;
    color: #2E5C8A;
}

.page-links a,
.page-links > span {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.page-links a:hover {
    background: #2E5C8A;
    color: white;
    border-color: #2E5C8A;
}

/* Post Footer */
.post-footer {
    padding: 40px 50px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.post-tags {
    margin-bottom: 40px;
}

.tags-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2E5C8A;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.tags-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag-link {
    background: white;
    color: #666;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tag-link:hover {
    background: #2E5C8A;
    color: white;
    border-color: #2E5C8A;
}

/* Social Share */
.social-share {
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
}

.share-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2E5C8A;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

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

.share-btn.email {
    background: #666;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Post Sidebar */
.post-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2E5C8A;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* Table of Contents */
.table-of-contents {
    font-size: 0.95rem;
    max-height: 400px;
    overflow-y: auto;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: #666;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    word-wrap: break-word;
    line-height: 1.4;
}

.table-of-contents a:hover {
    background: #f0f7ff;
    color: #2E5C8A;
    border-left-color: #2E5C8A;
}

/* TOC Empty State */
.toc-widget.empty {
    display: none;
}

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

.related-post-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.related-post-item:hover {
    background: #f0f7ff;
}

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

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

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

.related-post-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.4;
}

.related-post-title a {
    color: #333;
    text-decoration: none;
}

.related-post-title a:hover {
    color: #2E5C8A;
}

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

/* Newsletter Widget */
.newsletter-widget .newsletter-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.newsletter-widget .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-widget .newsletter-email {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.newsletter-widget .newsletter-email:focus {
    outline: none;
    border-color: #2E5C8A;
}

.newsletter-widget .newsletter-btn {
    padding: 12px;
    background: linear-gradient(135deg, #2E5C8A 0%, #4A90C2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.newsletter-widget .newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 92, 138, 0.3);
}

/* Post Navigation Section */
.post-navigation-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
}

.nav-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.nav-link {
    display: block;
    padding: 30px;
    text-decoration: none;
    color: #333;
}

.nav-direction {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.nav-previous .nav-direction {
    justify-content: flex-start;
}

.nav-next .nav-direction {
    justify-content: flex-end;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.nav-center {
    text-align: center;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2E5C8A;
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-blog:hover {
    background: #1e4c7a;
    transform: translateY(-2px);
}

/* Comments Section */
.comments-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.comments-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Comments Area */
.comments-area {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.comments-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.comments-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2E5C8A;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.comment-list .comment {
    margin-bottom: 30px;
}

.comment-body {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    position: relative;
    transition: all 0.3s ease;
}

.comment-body:hover {
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.comment-author {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

.comment-avatar {
    position: relative;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.admin-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FFD700;
    color: #333;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.comment-content-wrapper {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    margin-bottom: 15px;
}

.comment-author-name {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.comment-author-name cite {
    font-style: normal;
    font-weight: 600;
    color: #2E5C8A;
    text-decoration: none;
}

.author-badge {
    background: #2E5C8A;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.comment-metadata {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
}

.comment-metadata time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.edit-link {
    display: flex;
    align-items: center;
    gap: 3px;
}

.edit-link a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.edit-link a:hover {
    color: #2E5C8A;
}

.comment-content {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
}

.comment-content p {
    margin-bottom: 1em;
}

.comment-awaiting-moderation {
    background: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.reply-link a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #2E5C8A;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(46, 92, 138, 0.1);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.reply-link a:hover {
    background: #2E5C8A;
    color: white;
}

.comment-vote {
    display: flex;
    gap: 10px;
}

.vote-btn {
    background: none;
    border: 1px solid #e0e0e0;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.vote-btn:hover {
    background: #f0f7ff;
    border-color: #2E5C8A;
    color: #2E5C8A;
}

.vote-btn.active {
    background: #2E5C8A;
    color: white;
    border-color: #2E5C8A;
}

/* Nested Comments */
.comment-list .children {
    list-style: none;
    margin: 20px 0 0 30px;
    padding-left: 20px;
    border-left: 2px solid #e0e0e0;
}

.comment-list .children .comment-body {
    background: white;
    border: 1px solid #e0e0e0;
}

/* Ping Comments */
.ping-comment .comment-body {
    background: #e7f3ff;
    border-left: 4px solid #2E5C8A;
}

.ping-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

/* Comment Form Section */
.comment-form-section {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
}

.comment-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.comment-form-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #2E5C8A;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.comment-form-subtitle {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.modern-comment-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.comment-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

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

.comment-form-field label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.required {
    color: #e74c3c;
}

.comment-form-field input,
.comment-form-field textarea {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.comment-form-field input:focus,
.comment-form-field textarea:focus {
    outline: none;
    border-color: #2E5C8A;
    box-shadow: 0 0 0 3px rgba(46, 92, 138, 0.1);
}

.comment-textarea textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.comment-form-cookies-consent label {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    cursor: pointer;
}

.submit-btn {
    align-self: flex-start;
    background: linear-gradient(135deg, #2E5C8A 0%, #4A90C2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 92, 138, 0.3);
}

/* Comment Navigation */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.comment-navigation a {
    color: #2E5C8A;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(46, 92, 138, 0.1);
    transition: all 0.3s ease;
}

.comment-navigation a:hover {
    background: #2E5C8A;
    color: white;
}

/* No Comments */
.no-comments {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-comments i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ccc;
}

/* Responsive Design for Comments */
@media (max-width: 768px) {
    .comments-area {
        padding: 25px 20px;
    }
    
    .comment-form-section {
        padding: 25px 20px;
    }
    
    .comment-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .comment-author {
        gap: 10px;
    }
    
    .comment-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .comment-list .children {
        margin-left: 15px;
        padding-left: 15px;
    }
    
    .comment-actions {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .comments-title {
        font-size: 1.4rem;
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .comment-body {
        padding: 20px 15px;
    }
    
    .comment-form-field input,
    .comment-form-field textarea {
        padding: 12px;
    }
    
    .comment-metadata {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .single-post-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .post-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
        order: 2;
    }
    
    .post-content-area {
        order: 1;
    }
}

@media (max-width: 768px) {
    .single-post-modern .container {
        padding: 0 15px;
    }
    
    .post-hero {
        padding: 40px 0;
    }
    
    .post-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .post-meta-badges {
        justify-content: center;
        text-align: center;
        gap: 8px;
    }
    
    .author-info {
        text-align: center;
        flex-direction: column;
        padding: 15px;
    }
    
    .single-post-modern .post-content {
        padding: 30px 20px;
        font-size: 1rem;
    }
    
    .post-footer {
        padding: 30px 20px;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .nav-direction {
        justify-content: center !important;
    }
    
    .breadcrumbs {
        justify-content: center;
        font-size: 0.85rem;
    }
    
    .current {
        max-width: 150px;
    }
    
    .single-post-layout {
        margin: 30px 0;
        gap: 30px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.6rem;
    }
    
    .post-content {
        padding: 20px;
        font-size: 1rem;
    }
    
    .post-footer {
        padding: 20px;
    }
    
    .share-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .share-btn {
        justify-content: center;
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    
    .post-meta-badges {
        gap: 10px;
    }
    
    .category-badge,
    .date-badge,
    .read-time-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}