/**
 * Single post layout — Style 3 (title + meta, excerpt/thumbnail row, then body).
 * Theme tokens: --ahura-theme-primary-rgb, --ahura-c-text-primary, etc.
 */

/* —— Article shell —— */
body.single-post .single-post-template-3 article.post-entry.post-entry-custom.post-custom {
    position: relative;
    padding: clamp(18px, 3.5vw, 36px) clamp(16px, 3vw, 28px);
    margin-bottom: 1.25rem;
    border-radius: var(--ahura-content-radius, 18px);
    border: 1px solid rgba(var(--ahura-theme-primary-rgb), 0.16);
    background-color: var(--ahura-single-post-bg-color, var(--ahura-c-bg-primary));
    background-image: linear-gradient(
        145deg,
        var(--ahura-c-bg-primary) 0%,
        rgba(var(--ahura-theme-primary-rgb), 0.035) 50%,
        var(--ahura-c-bg-primary) 100%
    );
    box-shadow:
        var(--ahura-content-shadow),
        0 0 0 1px rgba(var(--ahura-theme-primary-rgb), 0.05),
        0 12px 44px rgba(var(--ahura-theme-primary-rgb), 0.07);
    overflow: visible;
}

/* Title */
.single-post-template-3 .post-title-wrap {
    margin-bottom: 0.35rem;
}

.single-post-template-3 .post-title {
    margin: 0;
}

.single-post-template-3 .post-title h1 {
    margin: 0 0 6px 0;
    padding: 0;
    border: none;
    font-size: var(--ahura-single-title-font-size, clamp(1.4rem, 4.5vw, 2rem));
    font-weight: var(--ahura-single-title-font-weight, 700);
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--ahura-single-post-title-color, var(--ahura-c-text-primary));
}

.single-post-template-3 .post-title::after {
    content: "";
    display: block;
    width: min(140px, 36%);
    height: 3px;
    margin-top: 12px;
    margin-bottom: 0;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--ahura-theme-primary),
        rgba(var(--ahura-theme-primary-rgb), 0.25)
    );
    box-shadow: 0 0 14px var(--ahura-theme-glow-soft, rgba(var(--ahura-theme-primary-rgb), 0.2));
}

body.rtl .single-post-template-3 .post-title::after {
    background: linear-gradient(
        270deg,
        var(--ahura-theme-primary),
        rgba(var(--ahura-theme-primary-rgb), 0.25)
    );
}

/* Content types */
.single-post-template-3 .post-types-list {
    margin-bottom: 14px;
}

.post-types-list > div.single-content-types {
    justify-content: flex-start;
    margin: 0;
}

.single-post-template-3 .single-content-types {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

.single-post-template-3 .single-content-types a span {
    font-size: 13px;
    font-weight: 500;
    color: var(--ahura-c-text-secondary);
    margin: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(var(--ahura-theme-primary-rgb), 0.07);
    border: 1px solid rgba(var(--ahura-theme-primary-rgb), 0.12);
}

/* Meta chips */
.single-post-template-3 .post-meta-wrap {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(var(--ahura-theme-primary-rgb), 0.12);
}

.single-post-template-3 .post-entry ul.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: flex-start;
    align-items: center;
}

.single-post-template-3 .post-entry .post-meta li {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--ahura-c-text-secondary);
    background: rgba(var(--ahura-theme-primary-rgb), 0.06);
    border: 1px solid rgba(var(--ahura-theme-primary-rgb), 0.14);
    border-radius: 999px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.single-post-template-3 .post-entry .post-meta li:hover {
    border-color: rgba(var(--ahura-theme-primary-rgb), 0.32);
    box-shadow: 0 0 18px rgba(var(--ahura-theme-primary-rgb), 0.08);
}

.single-post-template-3 .post-entry .post-meta li a {
    color: inherit;
}

.single-post-template-3 .post-meta-wrap .ah-isax {
    font-size: 1rem;
}

.single-post-template-3 .post-entry .post-meta li svg {
    width: 1em;
    height: 1em;
}

/* Excerpt + thumbnail row */
.single-post-template-3 .post-content-row {
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.75rem;
    align-items: stretch;
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
}

.single-post-template-3 .post-excerpt {
    padding: clamp(14px, 2vw, 20px) clamp(16px, 2.5vw, 22px);
    border-radius: 14px;
    border: 1px solid rgba(var(--ahura-theme-primary-rgb), 0.12);
    background: rgba(var(--ahura-theme-primary-rgb), 0.04);
    font-size: 15px;
    line-height: 1.75;
    color: var(--ahura-c-text-secondary);
    border-inline-start: 3px solid var(--ahura-theme-primary);
}

.single-post-template-3 .post-thumbnail-wrap {
    height: 100%;
}

.single-post-template-3 .single-post-thumbnail {
    border-radius: 16px;
    overflow: hidden;
    line-height: 0;
    height: 100%;
    min-height: 180px;
    box-shadow:
        0 12px 36px rgba(var(--ahura-theme-primary-rgb), 0.12),
        0 0 0 1px rgba(var(--ahura-theme-primary-rgb), 0.08);
}

.single-post-template-3 .single-post-thumbnail img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    display: block;
}

/* Body */
.single-post-template-3 .post-content-wrap {
    border: none;
    padding: 0 0 0.5rem;
    margin-top: 0;
}

/* Share */
.single-post-template-3 .ah-share-buttons,
.single-post-template-3 .sharing {
    margin-top: 1.75rem;
    padding: clamp(14px, 2vw, 18px) clamp(12px, 2vw, 16px);
    border-radius: 14px;
    border: 1px solid rgba(var(--ahura-theme-primary-rgb), 0.12);
    background: rgba(var(--ahura-theme-primary-rgb), 0.04);
}

.single-post-template-3 .ah-share-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px 16px;
    width: 100%;
}

.single-post-template-3 .ah-share-buttons.ah-sharing--center {
    justify-content: center;
}

.single-post-template-3 .ah-share-buttons.ah-sharing--center .box-title {
    text-align: center;
}

.single-post-template-3 .ah-share-buttons .box-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ahura-c-text-primary);
    margin: 0;
}

.single-post-template-3 .ah-share-buttons-2 .share-buttons-list,
.single-post-template-3 .sharing .share-buttons-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Icon-only share styles 1 & 2 — exclude style 3 (labeled chips use share-buttons-3.css, white text/icons) */
.single-post-template-3 .sharing.ah-share-buttons-1 .share-buttons-list a,
.single-post-template-3 .sharing.ah-share-buttons-2 .share-buttons-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(var(--ahura-theme-primary-rgb), 0.15);
    background: var(--ahura-c-bg-primary);
    color: var(--ahura-c-text-secondary);
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.single-post-template-3 .sharing.ah-share-buttons-1 .share-buttons-list a:hover,
.single-post-template-3 .sharing.ah-share-buttons-2 .share-buttons-list a:hover {
    transform: translateY(-2px);
    border-color: var(--ahura-theme-primary);
    color: var(--ahura-theme-primary);
    box-shadow: 0 6px 18px rgba(var(--ahura-theme-primary-rgb), 0.18);
}

.single-post-template-3 .sharing.ah-share-buttons-1 .share-buttons-list a .ah-isax,
.single-post-template-3 .sharing.ah-share-buttons-2 .share-buttons-list a .ah-isax {
    font-size: 18px;
}

.single-post-template-3 .sharing a {
    border-right: none;
}

.single-post-template-3 .ah-share-buttons-1 .share-buttons-list a.d-flex {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(var(--ahura-theme-primary-rgb), 0.15);
    align-items: center;
    justify-content: center;
}

/* Rating */
.single-post-template-3 .post-rating-wrap {
    margin: 1.75rem 0 1.25rem;
    padding: 1.25rem 1rem;
    text-align: center;
    border-radius: 14px;
    border: 1px solid rgba(var(--ahura-theme-primary-rgb), 0.12);
    background: rgba(var(--ahura-theme-primary-rgb), 0.04);
}

.single-post-template-3 .post-rating-wrap .box-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ahura-c-text-primary);
}

.single-post-template-3 .post-rating-wrap .star-rating {
    float: none;
    margin: 0 auto;
}

/* Author */
.single-post-template-3 .post-author-wrap {
    display: flex;
    gap: clamp(14px, 3vw, 22px);
    align-items: flex-start;
    margin: 1.75rem 0 0;
    padding: clamp(16px, 2.5vw, 22px);
    border-radius: 16px;
    border: 1px solid rgba(var(--ahura-theme-primary-rgb), 0.12);
    background: rgba(var(--ahura-theme-primary-rgb), 0.03);
}

.single-post-template-3 .post-author-wrap img {
    width: 84px;
    height: 84px;
    max-width: none;
    border-radius: 50%;
    box-shadow:
        0 0 0 3px rgba(var(--ahura-theme-primary-rgb), 0.18),
        0 10px 28px rgba(var(--ahura-theme-primary-rgb), 0.12);
}

.single-post-template-3 .post-author-wrap .author-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ahura-c-text-primary);
}

.single-post-template-3 .post-author-wrap .author-name a:not(.author-link) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-inline-start: 8px;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(var(--ahura-theme-primary-rgb), 0.12);
    border: 1px solid rgba(var(--ahura-theme-primary-rgb), 0.22);
    color: var(--ahura-theme-primary);
}

.single-post-template-3 .post-author-wrap .author-name a:not(.author-link):hover {
    background: rgba(var(--ahura-theme-primary-rgb), 0.18);
}

.single-post-template-3 .post-author-wrap .author-name .ah-isax {
    font-size: 14px;
}

.single-post-template-3 .post-author-wrap .author-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
    margin-top: 10px;
    color: var(--ahura-c-text-secondary);
}

/* Related / comments boxes */
.single-post-template-3 .ah-simple-box-style {
    position: relative;
    width: 100%;
    padding: clamp(16px, 2.5vw, 22px);
    margin: 1rem 0;
    border-radius: var(--ahura-content-radius, 16px);
    border: 1px solid rgba(var(--ahura-theme-primary-rgb), 0.14);
    background: linear-gradient(
        180deg,
        var(--ahura-c-bg-primary),
        rgba(var(--ahura-theme-primary-rgb), 0.02)
    );
    box-shadow:
        var(--ahura-content-shadow),
        0 8px 28px rgba(var(--ahura-theme-primary-rgb), 0.06);
}

.single-post-template-3 .ah-post-comments-wrap,
.single-post-template-3 .ah-related-posts-wrap {
    padding: clamp(16px, 2.5vw, 22px);
}

.single-post-template-3 .comments-area h3 {
    margin: 0 0 12px 0;
    border: none;
    font-weight: 600;
    color: var(--ahura-c-text-primary);
}

.single-post-template-3 .ah-comments-template-2 .comment-respond {
    padding: 12px 0 0;
}

.single-post-template-3 .related-posts-2 .related-posts-title {
    color: var(--ahura-c-text-primary);
    padding: 0;
    border: none;
}

.single-post-template-3 .related-posts-2 .post-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.single-post-template-3 .related-posts-2 .post-item .post-title {
    font-size: 15px;
    text-align: center;
    width: 100%;
    margin-top: 10px;
}

/* Tags block (below comments) */
.single-post-template-3 .post-tags-wrap {
    padding: clamp(16px, 2.5vw, 22px);
    margin-top: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(var(--ahura-theme-primary-rgb), 0.12);
    background: rgba(var(--ahura-theme-primary-rgb), 0.03);
}

.single-post-template-3 .post-tags-wrap .box-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: block;
    color: var(--ahura-c-text-primary);
}

.single-post-template-3 .post-tags-wrap #post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
}

.single-post-template-3 .post-tags-wrap a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    background: rgba(var(--ahura-theme-primary-rgb), 0.08);
    border: 1px solid rgba(var(--ahura-theme-primary-rgb), 0.15);
    color: var(--ahura-c-text-primary);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.single-post-template-3 .post-tags-wrap a:hover {
    background: rgba(var(--ahura-theme-primary-rgb), 0.14);
    border-color: var(--ahura-theme-primary);
    color: var(--ahura-c-text-primary);
}

@media (max-width: 767px) {
    body.single-post .single-post-template-3 article.post-entry.post-entry-custom.post-custom {
        padding: 16px 14px;
        border-radius: var(--ahura-content-radius, 14px);
    }

    .single-post-template-3 .single-post-thumbnail img {
        min-height: 220px;
    }

    .single-post-template-3 .post-author-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .single-post-template-3 .ah-share-buttons {
        flex-direction: column;
        align-items: stretch;
    }

}

@media (prefers-reduced-motion: reduce) {
    .single-post-template-3 .sharing .share-buttons-list a:hover,
    .single-post-template-3 .ah-share-buttons .share-buttons-list a:hover {
        transform: none;
    }
}

/* Dark theme */
html:is(.ahura-dark-theme, .ahura-black-theme) .single-post-template-3 article.post-entry.post-entry-custom.post-custom {
    padding: clamp(18px, 3.5vw, 36px) clamp(16px, 3vw, 28px);
}

html:is(.ahura-dark-theme, .ahura-black-theme) .ah-comments-template-2 .comment-respond,
html:is(.ahura-dark-theme, .ahura-black-theme) .single-post-template-3 .post-tags-wrap a {
    background-color: transparent;
}

html:is(.ahura-dark-theme, .ahura-black-theme) .single-post-template-3 .post-tags-wrap a {
    background: rgba(var(--ahura-theme-primary-rgb), 0.1);
}

html:is(.ahura-dark-theme, .ahura-black-theme) .single-post-template-3 .post-meta li svg path {
    stroke: currentColor;
}

html:is(.ahura-dark-theme, .ahura-black-theme) .single-post-template-3 .ah-simple-box-style {
    border-radius: var(--ahura-content-radius, 16px);
}
