/* ============================================================
   BIRDSJUNGLE — MODERN SINGLE POST LAYOUT
   Pairs with single.php. Save as:
     /wp-content/themes/YOUR-CHILD-THEME/bj-single-post.css
   Then enqueue it (see enqueue-snippet.php), OR for a quick test
   you can paste this into Theme settings > General > Custom CSS.
   ============================================================ */

/* ---------- PAGE WRAPPER ---------- */
.bj-post-page {
    background: #fafafa;
    padding: 50px 20px;
}

.bj-post-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* ---------- MAIN CARD (subtle border, generous spacing) ---------- */
.bj-post-main {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* ---------- FEATURED IMAGE (top, rounded corners) ---------- */
.bj-featured-image {
    width: 100%;
    line-height: 0;
}

.bj-featured-image img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
    display: block;
}

/* If there's no featured image, round the top of the body instead */
.bj-post-main:not(:has(.bj-featured-image)) .bj-post-body {
    border-radius: 16px 16px 0 0;
}

/* ---------- POST BODY (generous inner spacing) ---------- */
.bj-post-body {
    padding: 44px 48px 8px;
}

/* ---------- TITLE ---------- */
.bj-post-title {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0 0 18px;
}

/* ---------- META ROW (author, category, date) ---------- */
.bj-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding-bottom: 28px;
    margin-bottom: 34px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #777;
}

.bj-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bj-meta-author img {
    border-radius: 50%;
    width: 28px;
    height: 28px;
}

.bj-meta-author a {
    color: #444;
    font-weight: 600;
    text-decoration: none;
}

.bj-meta-category a {
    background: #f4ede0;
    color: #8a6d3b;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.bj-meta-category a:hover {
    background: #ecdfc7;
}

.bj-meta-date {
    color: #999;
}

/* ---------- POST CONTENT TYPOGRAPHY ---------- */
.bj-post-content {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    padding-bottom: 44px;
}

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

.bj-post-content h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 44px 0 16px;
    color: #1a1a1a;
}

.bj-post-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 14px;
    color: #2c2c2c;
}

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

.bj-post-content ul,
.bj-post-content ol {
    margin: 18px 0 24px 22px;
}

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

.bj-post-content blockquote {
    border-left: 4px solid #d4af37;
    background: #fbf8f0;
    padding: 16px 24px;
    margin: 28px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.bj-post-content a {
    color: #6ab04c;
    text-decoration: underline;
}

/* ---------- COMMENTS ---------- */
.bj-comments {
    padding: 0 48px 44px;
    border-top: 1px solid #eee;
    margin-top: 10px;
    padding-top: 34px;
}

/* ---------- SIDEBAR ---------- */
.bj-sidebar {
    position: sticky;
    top: 30px;
}

.bj-recent-posts {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.bj-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #444;
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0d98c;
}

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

.bj-recent-item {
    margin-bottom: 18px;
}

.bj-recent-item:last-child {
    margin-bottom: 0;
}

.bj-recent-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.bj-recent-link:hover {
    opacity: 0.75;
}

.bj-recent-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    display: block;
}

.bj-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bj-recent-title {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    color: #2c2c2c;
}

.bj-recent-empty {
    font-size: 14px;
    color: #999;
}

/* ---------- NEWSLETTER / SUBSCRIBE CARD ---------- */
.bj-newsletter {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-top: 24px;
}

.bj-newsletter-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #eaf3de;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 20px;
    color: #3b6d11;
    font-style: normal;
}

.bj-newsletter .bj-sidebar-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 10px;
}

.bj-newsletter-text {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    margin: 0 0 18px;
}

.bj-newsletter-form {
    margin: 0;
}

.bj-newsletter-field {
    margin-bottom: 12px;
}

.bj-newsletter-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.bj-newsletter-input:focus {
    outline: none;
    border-color: #6ab04c;
}

.bj-newsletter-button {
    width: 100%;
    padding: 12px 14px;
    background: #6ab04c;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
}

.bj-newsletter-button:hover {
    background: #5a9940;
}

.bj-newsletter-responses .response {
    font-size: 13px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
}

#mce-error-response {
    background: #fdf3ef;
    color: #b2481f;
}

#mce-success-response {
    background: #eaf3de;
    color: #3b6d11;
}

.bj-newsletter-privacy {
    font-size: 12px;
    color: #999;
    margin: 14px 0 0;
    text-align: center;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
    .bj-post-container {
        grid-template-columns: 1fr;
    }

    .bj-sidebar {
        position: static;
    }

    .bj-recent-posts {
        max-width: 100%;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 640px) {
    .bj-post-page {
        padding: 24px 12px;
    }

    .bj-post-container {
        gap: 24px;
    }

    .bj-post-main,
    .bj-recent-posts {
        border-radius: 12px;
    }

    .bj-featured-image img {
        border-radius: 12px 12px 0 0;
        max-height: 260px;
    }

    .bj-post-body {
        padding: 28px 20px 8px;
    }

    .bj-post-title {
        font-size: 25px;
    }

    .bj-post-meta {
        gap: 12px;
        font-size: 13px;
        margin-bottom: 26px;
        padding-bottom: 22px;
    }

    .bj-post-content {
        font-size: 16px;
    }

    .bj-post-content h2 {
        font-size: 21px;
        margin: 34px 0 12px;
    }

    .bj-post-content h3 {
        font-size: 18px;
    }

    .bj-comments {
        padding: 0 20px 30px;
    }

    .bj-recent-posts,
    .bj-newsletter {
        padding: 20px;
    }
}
