/* ==================================================
   Nuclear Fancy Pants Edition™ — NUCLEAR+++
   File: /wp-content/themes/kadence-child/single.css
   Description: Single post styles for AutoMarketer AI blog - NUCLEAR+++
   Last Edited: 2026-05-01
   ================================================== */

/* -- Reset -- */
body.amai-single-post {
    background: #fff;
    font-family: 'DM Sans', sans-serif;
    color: #1C1917;
    margin: 0;
    padding: 0;
}

body.amai-single-post *,
body.amai-single-post *::before,
body.amai-single-post *::after {
    box-sizing: border-box;
}

/* -- Hero with featured image -- */
.amai-post__hero {
    position: relative;
    background: #1C1917;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.amai-post__hero--no-image {
    background: #FDF6F2;
    min-height: 0;
    padding: 72px 0 48px;
    border-bottom: 1.5px solid #F3EDE9;
}

.amai-post__hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0.55;
}

.amai-post__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28,25,23,0.92) 0%, rgba(28,25,23,0.35) 55%, rgba(28,25,23,0.0) 100%);
}

.amai-post__hero-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 64px 0 52px;
    width: 100%;
}

.amai-post__hero--no-image .amai-post__hero-inner {
    padding: 0;
}

.amai-post__eyebrow {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #D97757;
    background: rgba(217,119,87,0.15);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.amai-post__hero--no-image .amai-post__eyebrow {
    background: rgba(217,119,87,0.12);
}

.amai-post__title {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.18;
    margin: 0 0 24px;
}

.amai-post__hero--no-image .amai-post__title {
    color: #1C1917;
}

.amai-post__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.amai-post__hero--no-image .amai-post__meta {
    color: #78716C;
}

.amai-post__sep {
    color: rgba(255,255,255,0.35);
}

.amai-post__hero--no-image .amai-post__sep {
    color: #D4C5BC;
}

/* -- Body layout -- */
.amai-post__body {
    max-width: 760px;
    padding: 56px 32px 72px;
}

/* -- Content typography -- */
.amai-post__content {
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #1C1917;
}

.amai-post__content p {
    margin: 0 0 24px;
}

.amai-post__content h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: #1C1917;
    margin: 52px 0 16px;
    line-height: 1.25;
}

.amai-post__content h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1C1917;
    margin: 40px 0 12px;
    line-height: 1.3;
}

.amai-post__content h4 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #1C1917;
    margin: 32px 0 10px;
}

.amai-post__content ul,
.amai-post__content ol {
    margin: 0 0 24px 24px;
    padding: 0;
}

.amai-post__content li {
    margin-bottom: 8px;
}

.amai-post__content a {
    color: #D97757;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s;
}

.amai-post__content a:hover {
    color: #b85e3e;
}

.amai-post__content blockquote {
    margin: 36px 0;
    padding: 22px 28px;
    background: #FDF8F5;
    border-left: 3px solid #D97757;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #57534E;
    font-size: 18px;
    line-height: 1.7;
}

.amai-post__content blockquote p:last-child {
    margin: 0;
}

.amai-post__content code {
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    background: #F3EDE9;
    padding: 2px 6px;
    border-radius: 4px;
    color: #1C1917;
}

.amai-post__content pre {
    background: #1C1917;
    color: #F3EDE9;
    padding: 20px 24px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 0 0 24px;
}

.amai-post__content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 14px;
}

.amai-post__content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 8px 0 28px;
    display: block;
}

.amai-post__content hr {
    border: none;
    border-top: 1.5px solid #F3EDE9;
    margin: 48px 0;
}

/* -- CTA band -- */
.amai-post__cta-band {
    background: #FDF6F2;
    border-top: 1.5px solid #F3EDE9;
    border-bottom: 1.5px solid #F3EDE9;
    padding: 48px 0;
}

.amai-post__cta-inner {
    max-width: 760px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.amai-post__cta-text {
    font-family: 'Nunito', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1C1917;
    line-height: 1.3;
}

.amai-post__cta-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #78716C;
    margin-top: 4px;
}

/* -- Back link -- */
.amai-post__back-wrap {
    padding: 40px 0 64px;
}

.amai-post__back {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #78716C;
    text-decoration: none;
    transition: color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.amai-post__back:hover {
    color: #D97757;
}

/* -- Responsive -- */
@media (max-width: 768px) {
    .amai-post__hero {
        min-height: 340px;
    }

    .amai-post__hero-inner {
        padding: 48px 0 40px;
    }

    .amai-post__hero--no-image {
        padding: 48px 0 36px;
    }

    .amai-post__body {
        padding: 40px 0 56px;
    }

    .amai-post__content {
        font-size: 16px;
    }

    .amai-post__cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}


.entry-tags {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #E7DDD5;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.entry-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: #F5EDE8;
    color: #D97757;
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.entry-tags a:hover {
    background: #D97757;
    color: #fff;
    text-decoration: none;
}


.amai-unsplash-credit {
    font-size: 12px;
    color: #A8A29E;
    margin-top: 16px;
}

.amai-unsplash-credit a {
    color: #A8A29E;
    text-decoration: underline;
}

.amai-unsplash-credit a:hover {
    color: #78716C;
}

.entry-tags {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #E7DDD5;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.entry-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: #F5EDE8;
    color: #D97757;
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.entry-tags a:hover {
    background: #D97757;
    color: #fff;
    text-decoration: none;
}
