/* ============================================================
   Thomas Family Law Counsel — Single Post styles
   Enqueued only on is_single() via css_script_manager.
   ============================================================ */

/* ── Header (category / title / meta / share) ────────────────── */

section.single_hero_section {
    background: var(--navy);
    color: var(--cream);
    padding: 4.5rem 0 3rem;

    .single_cat_tag {
        display: inline-block;
        background: rgba(201, 162, 39, 0.15);
        color: var(--gold);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0.3rem 0.9rem;
        border-radius: 20px;
        margin-bottom: 1rem;
    }

    .single_title {
        font-size: clamp(1.9rem, 3.6vw, 2.6rem);
        font-weight: 600;
        line-height: 1.2;
    }

    .single_meta {
        display: flex;
        flex-wrap: wrap;
        gap: 1.4rem;
        margin-top: 1.4rem;

        .single_meta_item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
            color: rgba(247, 244, 236, 0.75);

            i {
                color: var(--gold);
            }
        }
    }

    .single_share {
        display: flex;
        align-items: center;
        gap: 0.7rem;
        margin-top: 1.6rem;

        .single_share_label {
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: rgba(247, 244, 236, 0.6);
            margin-right: 0.3rem;
        }

        .single_share_link {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            border: 1px solid rgba(247, 244, 236, 0.25);
            background: transparent;
            color: var(--cream);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            cursor: pointer;
            transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
        }

        .single_share_link:hover,
        .single_share_link.copied {
            background: var(--gold);
            border-color: var(--gold);
            color: var(--navy-deep);
        }
    }
}

/* ── Featured image ───────────────────────────────────────────── */

.single_featured_img {
    background: #fff;

    .single_featured_img_el {
        width: 100%;
        max-height: 460px;
        object-fit: cover;
        border-radius: 6px;
        margin-top: -3rem;
        position: relative;
        box-shadow: 0 20px 40px rgba(27, 42, 74, 0.15);
    }

    @media (max-width: 767px) {
        .single_featured_img_el {
            margin-top: -1.6rem;
            max-height: 280px;
        }
    }
}

/* ── Body ──────────────────────────────────────────────────────── */

section.single_body_section {
    background: #fff;
    padding: 4rem 0 6rem;

    .single_content {
        color: #454b58;
        font-size: 1.02rem;
        line-height: 1.8;

        h2,
        h3,
        h4 {
            color: var(--navy);
            font-weight: 600;
            margin: 2rem 0 1rem;
        }

        p {
            margin-bottom: 1.3rem;
        }

        a {
            color: var(--gold);
        }

        a:hover {
            text-decoration: underline;
        }

        ul,
        ol {
            margin-bottom: 1.3rem;
            padding-left: 1.3rem;
        }

        li {
            margin-bottom: 0.4rem;
        }

        blockquote {
            border-left: 3px solid var(--gold);
            padding: 0.4rem 0 0.4rem 1.3rem;
            margin: 1.8rem 0;
            font-style: italic;
            color: var(--navy);
        }

        img {
            max-width: 100%;
            height: auto;
            border-radius: 6px;
            margin: 1.5rem 0;
        }
    }

    .single_tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
        margin-top: 2.5rem;
        padding-top: 2rem;
        border-top: 1px solid var(--hairline);

        .single_tag {
            border: 1px solid var(--hairline);
            border-radius: 20px;
            padding: 0.3rem 0.9rem;
            font-size: 0.82rem;
            color: var(--navy);
            transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
        }

        .single_tag:hover {
            background: var(--gold);
            border-color: var(--gold);
            color: var(--navy-deep);
        }
    }

    .single_post_nav {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        margin-top: 2.5rem;
        padding-top: 2rem;
        border-top: 1px solid var(--hairline);

        .single_nav_link {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            max-width: 48%;
            color: var(--navy);

            i {
                color: var(--gold);
                flex-shrink: 0;
            }

            small {
                display: block;
                text-transform: uppercase;
                letter-spacing: 0.05em;
                font-size: 0.7rem;
                color: #8a8f99;
                margin-bottom: 0.2rem;
            }

            span {
                font-weight: 600;
                font-size: 0.92rem;
            }
        }

        .single_nav_next {
            margin-left: auto;
            text-align: right;
            flex-direction: row-reverse;
        }
    }
}

/* ── Sidebar ───────────────────────────────────────────────────── */

.single_sidebar {

    .sidebar_widget {
        border: 1px solid var(--hairline);
        border-radius: 6px;
        padding: 1.6rem 1.5rem;
        margin-bottom: 1.6rem;
    }

    .sidebar_widget_title {
        color: var(--navy);
        font-weight: 600;
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .more_blog_list {
        display: flex;
        flex-direction: column;
        gap: 1.1rem;
    }

    .more_blog_card {
        display: flex;
        gap: 0.9rem;
        color: inherit;

        .more_blog_img_wrap {
            flex-shrink: 0;
            width: 76px;
            height: 76px;
            border-radius: 6px;
            overflow: hidden;
            background: var(--cream);
        }

        .more_blog_img,
        .more_blog_img_placeholder {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .more_blog_body {
            min-width: 0;
        }

        .more_blog_date {
            display: block;
            font-size: 0.72rem;
            color: #8a8f99;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            margin-bottom: 0.3rem;
        }

        .more_blog_title {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--navy);
            line-height: 1.35;
            margin: 0;
            transition: color 0.2s ease;
        }
    }

    .more_blog_card:hover .more_blog_title {
        color: var(--gold);
    }

    .more_blog_empty {
        color: #8a8f99;
        font-size: 0.9rem;
        margin: 0;
    }

    .sidebar_cta_widget {
        background: var(--navy);
        color: var(--cream);
        text-align: center;

        p {
            font-size: 0.9rem;
            color: rgba(247, 244, 236, 0.8);
            margin-bottom: 1.2rem;
        }
    }
}
