/* ============================================
   READABLE CONTENT STYLES (Single Posts, Archives, Search)
   Loaded on all "read" pages (non-front-page).
   ============================================ */

/* 1. Base Structure & Readability */
body.single-post,
body.archive,
body.search {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/1.jpeg') center center / cover no-repeat fixed;
    /* Darkened background image for contrast */
    color: #2c3e50;
    /* Dark blue-gray text for high contrast */
    line-height: 1.8;
    /* Comfortable reading height */
}

/* Ensure the main container checks out */
body.single-post .wp-site-blocks,
body.archive .wp-site-blocks,
body.search .wp-site-blocks {
    background-color: transparent;
}

/* 2. Main Content Column - The "Paper" Effect */
/* Targeting the main 70% column used in your templates */
body.single-post .wp-block-column[style*="flex-basis:70%"],
body.archive .wp-block-column[style*="flex-basis:70%"],
body.search .wp-block-column[style*="flex-basis:70%"] {
    background-color: #ffffff;
    padding: 50px 40px !important;
    /* Spacious padding */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Subtle shadow styling */
    margin-bottom: 40px;
}

/* 3. Typography */
body.single-post h1,
body.single-post h2,
body.single-post h3,
body.single-post h4,
body.single-post h5,
body.single-post h6,
body.archive h1,
body.archive h2,
body.archive h3,
body.archive h4,
body.archive h5,
body.archive h6,
body.search h1,
body.search h2,
body.search h3,
body.search h4,
body.search h5,
body.search h6 {
    color: #1a252f;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

body.single-post p,
body.archive p,
body.search p {
    margin-bottom: 24px;
    font-size: 18px;
    /* Slightly larger for reading */
    color: #444;
}

body.single-post a,
body.archive a,
body.search a {
    color: #4CAF50;
    /* Brand green */
    text-decoration: none;
    font-weight: 500;
}

body.single-post a:hover,
body.archive a:hover,
body.search a:hover {
    text-decoration: underline;
    color: #388E3C;
}

/* 4. Fix Sidebar Visibility */
body.single-post .wp-block-column[style*="flex-basis:30%"] h1,
body.single-post .wp-block-column[style*="flex-basis:30%"] h2,
body.single-post .wp-block-column[style*="flex-basis:30%"] h3,
body.archive .wp-block-column[style*="flex-basis:30%"] h1,
body.archive .wp-block-column[style*="flex-basis:30%"] h2,
body.archive .wp-block-column[style*="flex-basis:30%"] h3,
body.search .wp-block-column[style*="flex-basis:30%"] h1,
body.search .wp-block-column[style*="flex-basis:30%"] h2,
body.search .wp-block-column[style*="flex-basis:30%"] h3 {
    color: #2c3e50 !important;
}

body.single-post .wp-block-column[style*="flex-basis:30%"] p,
body.single-post .wp-block-column[style*="flex-basis:30%"] li,
body.single-post .wp-block-column[style*="flex-basis:30%"] a,
body.archive .wp-block-column[style*="flex-basis:30%"] p,
body.archive .wp-block-column[style*="flex-basis:30%"] li,
body.archive .wp-block-column[style*="flex-basis:30%"] a,
body.search .wp-block-column[style*="flex-basis:30%"] p,
body.search .wp-block-column[style*="flex-basis:30%"] li,
body.search .wp-block-column[style*="flex-basis:30%"] a {
    color: #555 !important;
}

body.single-post .wp-block-column[style*="flex-basis:30%"] a:hover,
body.archive .wp-block-column[style*="flex-basis:30%"] a:hover,
body.search .wp-block-column[style*="flex-basis:30%"] a:hover {
    color: #4CAF50 !important;
}

/* Search Box Fix */
body.single-post .wp-block-search__input,
body.archive .wp-block-search__input,
body.search .wp-block-search__input {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
}

body.single-post .wp-block-search__button,
body.archive .wp-block-search__button,
body.search .wp-block-search__button {
    background: #4CAF50;
    color: #fff;
}

/* 5. Post Meta & Navigation */
body.single-post .wp-block-post-date,
body.single-post .wp-block-post-author,
body.archive .wp-block-post-date,
body.archive .wp-block-post-author,
body.search .wp-block-post-date,
body.search .wp-block-post-author {
    color: #7f8c8d;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 6. Comments Section */
body.single-post .wp-block-comments,
body.archive .wp-block-comments,
body.search .wp-block-comments {
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

body.single-post .comment-author,
body.archive .comment-author,
body.search .comment-author {
    color: #2c3e50;
    font-weight: bold;
}

body.single-post .comment-content,
body.archive .comment-content,
body.search .comment-content {
    color: #555;
}

/* Responsive Padding */
@media (max-width: 768px) {

    body.single-post .wp-block-column[style*="flex-basis:70%"],
    body.archive .wp-block-column[style*="flex-basis:70%"],
    body.search .wp-block-column[style*="flex-basis:70%"] {
        padding: 30px 20px !important;
    }
}