/*
 * TLM - Crystal Clear Single Post Styles
 * -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;800&display=swap');

:root {
    --tlm-primary-color: #D9534F; /* Warm Brick Red */
    --font-sans: 'Inter', sans-serif;
}

/* Body Background */
body.single-post {
    background: linear-gradient(135deg, #f5f7fa, #eef1f5);
    color: #4a5568; /* Default text color */
}

.tlm-neo-noir-wrapper {
    padding: 5vw 2vw;
}

/* The Glass Container */
.tlm-glass-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    overflow: hidden; /* To keep rounded corners on the image */
}

/* Featured Image */
.featured-image-neo-noir img {
    width: 100%;
    height: auto;
    display: block;
}

/* Inner Content Padding */
.content-inner-neo-noir {
    padding: 3rem;
}

/* Header */
.entry-title-neo-noir {
    font-family: var(--font-sans);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.entry-meta-neo-noir {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 2rem;
}

.entry-meta-neo-noir a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-meta-neo-noir a:hover {
    color: var(--tlm-primary-color);
}

.entry-meta-neo-noir span {
    margin-right: 15px;
}

/* Content */
.entry-content-neo-noir {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
}

.entry-content-neo-noir a {
    color: var(--tlm-primary-color);
    font-weight: bold;
    text-decoration: none;
}

.entry-content-neo-noir a:hover {
    text-decoration: underline;
}

/* Content Headings Styling */
.entry-content-neo-noir h2,
.entry-content-neo-noir h3,
.entry-content-neo-noir h4,
.entry-content-neo-noir h5,
.entry-content-neo-noir h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    color: #1a202c; /* Darker color for headings */
    margin-top: 2.5em; /* More space above the heading */
    margin-bottom: 1em; /* Space between heading and the paragraph below */
}

.entry-content-neo-noir h2 {
    font-size: 1.8rem;
    padding-bottom: 0.4em; /* Space between text and underline */
    border-bottom: 3px solid var(--tlm-primary-color);
    display: inline-block; /* Makes the border only as wide as the text content */
}

.entry-content-neo-noir h3 {
    font-size: 1.5rem;
}

.entry-content-neo-noir h4 {
    font-size: 1.2rem;
}

/* Overwrite other sections to match the light theme */
.tlm-author-box, .tlm-related-posts {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 3rem;
    padding-top: 3rem;
}

.related-posts-title {
    color: #1a202c;
}

.related-post-item a {
    color: #4a5568;
}

.related-post-item a:hover .related-post-title {
    color: var(--tlm-primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .content-inner-neo-noir {
        padding: 1.5rem;
    }
    .entry-title-neo-noir {
        font-size: 2rem;
    }
    .related-posts-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- FINAL REFINED STYLING --- */

/* 1. Meta Section (Ultra-Compact) */
.entry-meta-neo-noir {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* Prevents wrapping to new line */
    gap: 0.8rem; /* Adjust space between items */
    margin-bottom: 3rem; /* Space after the meta block */
}

.category-meta a {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--tlm-primary-color);
    text-decoration: none;
}

.author-meta, .date-meta {
    font-size: 0.9rem;
    color: #718096;
}

.author-meta::before, .date-meta::before {
    content: '•';
    margin-right: 0.8rem;
    color: #a0aec0;
}

/* 2. Section Titles */
.tlm-related-posts .related-posts-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    border-left: 4px solid var(--tlm-primary-color);
    padding-left: 1rem;
    margin-bottom: 2rem;
}

#comments .comments-title, 
#reply-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a202c;
}

/* 3. Related Posts (Elegant List) */
.tlm-related-posts {
    margin-top: 4rem; /* Adds space above this section */
}

.related-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.related-post-item a:hover {
    background-color: #f5f7fa;
    border-color: #e2e8f0;
}

.related-post-content .related-post-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.related-post-item .related-post-category {
    font-size: 0.85rem;
    color: #718096;
}

.related-post-item a:hover .related-post-title {
    color: var(--tlm-primary-color);
}

.related-post-thumb {
    display: none;
}

/* 4. Comments Section (With Separation) */
#comments {
    margin-top: 5rem; /* Increased space above comments */
    padding-top: 5rem; /* Increased space below the border */
    border-top: 1px solid #e2e8f0; /* The visual separator */
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
}

.comment-list .comment:first-child {
    border-top: none;
    padding-top: 0;
}

.comment-author .fn {
    font-weight: bold;
    color: #2d3748;
    font-size: 1rem;
}

.comment-meta {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 0.8rem;
}

.comment-content p {
    margin: 0;
}

.reply a {
    color: var(--tlm-primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
}

.comment-form {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    color: #2d3748;
    box-shadow: none;
}

.comment-form input:focus, .comment-form textarea:focus {
    outline: none;
    border-color: var(--tlm-primary-color);
    box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.2);
}

.comment-form .submit {
    background-color: var(--tlm-primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.comment-form .submit:hover {
    opacity: 0.85;
}

/* --- Mobile Specific Refinements --- */
@media (max-width: 768px) {
    .entry-meta-neo-noir {
        gap: 0.5rem; /* Tighter gap on mobile */
    }
    .category-meta a,
    .author-meta,
    .date-meta {
        font-size: 0.8rem; /* Smaller font on mobile */
    }
}
