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

.single-post {
    padding: 2rem 0 4rem;
}

/* Dark theme */
.single-post {
    background: #070b12;
    color: #f8fafc;
}

.post-title,
.author-name,
.post-content h2,
.post-content h3,
.post-content h4 {
    color: #f8fafc;
}

.post-meta-top,
.post-content,
.post-content blockquote,
.post-tags,
.related-posts {
    color: #a7b4c8;
}

.post-content h2 {
    border-color: #263247;
}

.post-content blockquote,
.post-content th,
.post-content td {
    background: #111827;
    border-color: #263247;
}

.post-category-link {
    background: #2563eb;
}

.single-post-container {
    max-width: 850px;
    margin: 0 auto;
}

/* Post Header */
.post-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.post-categories {
    margin-bottom: 1rem;
}

.post-category-link {
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
}

.post-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.post-meta-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: #666;
    font-size: 0.8rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.author-name {
    color: #1a1a1a;
    font-weight: 500;
}

.post-date i,
.post-read-time i {
    margin-left: 0.3rem;
}

/* Featured Image */
.post-featured-image {
    margin: 2rem 0;
    border-radius: 16px;
    overflow: hidden;
}

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

/* Post Content */
.post-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.post-content p {
    margin-bottom: 1.2rem;
}

.post-content h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 1.8rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.post-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 0.8rem;
}

.post-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.2rem 0 0.6rem;
}

.post-content ul,
.post-content ol {
    margin: 1rem 0;
    padding-right: 1.5rem;
}

.post-content li {
    margin-bottom: 0.4rem;
}

.post-content blockquote {
    background: #f8f8f8;
    border-right: 3px solid #1a1a1a;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
}

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

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.post-content th,
.post-content td {
    border: 1px solid #ddd;
    padding: 0.6rem;
    text-align: right;
}

.post-content th {
    background: #f8f8f8;
}

/* Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 0;
    margin-top: 1rem;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.tags-title {
    color: #666;
    font-size: 0.85rem;
}

.tag-link {
    background: #f5f5f5;
    color: #555;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.tag-link:hover {
    background: #1a1a1a;
    color: #fff;
}

/* Share Section */
.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    flex-wrap: wrap;
}

.share-title {
    color: #666;
    font-size: 0.85rem;
}

.share-links {
    display: flex;
    gap: 0.8rem;
}

.share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}

.share-link.telegram:hover {
    background: #0088cc;
    color: #fff;
}

.share-link.whatsapp:hover {
    background: #25d366;
    color: #fff;
}

.share-link.twitter:hover {
    background: #1da1f2;
    color: #fff;
}

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

/* Author Box */
.author-box {
    display: flex;
    gap: 1.5rem;
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 16px;
    margin: 2rem 0;
}

.author-avatar-large {
    flex-shrink: 0;
}

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

.author-info {
    flex: 1;
}

.author-name-large {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.author-bio {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.author-social {
    display: flex;
    gap: 0.8rem;
}

.author-social a {
    color: #999;
    font-size: 1rem;
    transition: color 0.2s;
}

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

/* Related Posts */
.related-posts {
    margin: 3rem 0;
}

.related-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

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

.related-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.related-card:hover {
    transform: translateY(-3px);
}

.related-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.6rem;
}

.related-card h4 {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.3rem;
    color: #1a1a1a;
}

.related-date {
    font-size: 0.7rem;
    color: #999;
}

/* ========== COMMENTS SECTION (WORDPRESS NATIVE) ========== */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.comments-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

/* Comment List */
.comment-list {
    list-style: none;
    margin-bottom: 3rem;
}

.comment-list .comment {
    margin-bottom: 1.5rem;
}

.comment-list .children {
    list-style: none;
    margin-right: 2rem;
    margin-top: 1.5rem;
}

.comment-body {
    background: #f8f8f8;
    padding: 1.2rem;
    border-radius: 12px;
}

.comment-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

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

.comment-info {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    color: #1a1a1a;
    display: inline-block;
    margin-left: 0.5rem;
}

.author-badge {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.author-badge-text {
    background: #1a1a1a;
    color: #fff;
    font-size: 0.6rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: normal;
}

.comment-date {
    font-size: 0.7rem;
    color: #999;
    display: block;
}

.comment-content {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 0.8rem;
}

.comment-reply-link {
    font-size: 0.75rem;
    color: #888;
    text-decoration: none;
}

.comment-reply-link:hover {
    color: #1a1a1a;
}

/* Comment Form */
.comment-respond {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 16px;
}

.comment-reply-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.comment-notes {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 1rem;
}

.required {
    color: #e33629;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 1rem;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
}

.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.comment-form-cookies-consent input {
    width: auto;
}

.comment-form-cookies-consent label {
    font-size: 0.75rem;
    color: #666;
}

.submit-btn {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .single-post {
        padding: 1rem 0 3rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .post-meta-top {
        gap: 1rem;
    }
    
    .post-content {
        font-size: 0.9rem;
    }
    
    .post-content h2 {
        font-size: 1.3rem;
    }
    
    .post-content h3 {
        font-size: 1.1rem;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar-large {
        margin: 0 auto;
    }
    
    .author-social {
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .comment-list .children {
        margin-right: 1rem;
    }
    
    .comment-meta {
        flex-direction: column;
    }
    
    .comment-avatar {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .post-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-tags {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Dark theme final pass */
.single-post { background: #070b12; color: #f8fafc; }
.post-title,
.author-name,
.post-content h2,
.post-content h3,
.post-content h4,
.author-box h4,
.related-posts h3,
.comments-area h3 { color: #f8fafc; }
.post-meta-top,
.post-content,
.post-content blockquote,
.post-tags,
.related-posts,
.comment-content { color: #a7b4c8; }
.post-content h2 { border-color: #263247; }
.post-content blockquote,
.post-content th,
.post-content td,
.author-box,
.related-card,
.comment-body { background: #111827; border-color: #263247; }
.post-category-link { background: #2563eb; }

/* Single post redesign */
.nix-single-post {
    background: #070b12;
    color: #f8fafc;
}

.nix-single-post__wrap {
    display: grid;
    gap: 18px;
}

.nix-single-post__hero,
.post-featured-image,
.post-content,
.nix-single-post__side > *,
.related-posts,
.comments-section {
    background: #111827;
    border: 1px solid #263247;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .26);
}

.nix-single-post__hero {
    padding: clamp(22px, 5vw, 44px);
    text-align: center;
}

.nix-single-post__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: start;
}

.nix-single-post .post-content {
    padding: clamp(20px, 4vw, 34px);
    color: #cbd5e1;
}

.nix-single-post__side {
    position: sticky;
    top: 94px;
    display: grid;
    gap: 14px;
}

.nix-single-post .author-box,
.nix-single-post .post-tags {
    padding: 16px;
    margin: 0;
}

.related-posts,
.comments-section {
    padding: clamp(18px, 3vw, 26px);
}

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

.related-card {
    overflow: hidden;
    border-radius: 8px;
    background: #0b111c;
    border: 1px solid #263247;
    color: #f8fafc;
    text-decoration: none;
}

.related-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    background: #0b111c;
}

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

.related-card__media i {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.related-card__body {
    padding: 12px;
    display: grid;
    gap: 8px;
}

.related-card__body small {
    color: #a7b4c8;
}

@media (max-width: 900px) {
    .nix-single-post__layout {
        grid-template-columns: 1fr;
    }

    .nix-single-post__side {
        position: static;
    }

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