/*
 * THE ASSIST V2 — SINGLE NEWSLETTER POST STYLES
 * File: /assets/css/newsletter-single.css
 *
 * Styles for single-newsletter-post.php
 * Add to functions.php enqueue — loaded on all single posts
 * that belong to newsletter categories.
 *
 * Design reference: screenshot showing
 *  - breadcrumb + badge top left
 *  - Large H1 title
 *  - Date below title
 *  - Full width featured image
 *  - Content area (narrow, readable)
 *  - Pink email CTA box
 *  - "More from [Newsletter]" related grid
 */


/*  
   PAGE WRAPPER
     */

.ta-single-nl {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}


/*  
   TOP BAR — breadcrumb + badge
     */

.ta-single-nl__topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/* "← All Issues" link */
.ta-single-nl__back {
    font-size: 13px;
    font-weight: 500;
    color: #6B7280;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 150ms ease;
}

.ta-single-nl__back:hover {
    color: #3DBFBF;
    text-decoration: none;
}

/* Newsletter type badge (OG Tuesday, Wellness Wednesday, etc.) */
.ta-single-nl__badge {
    display: inline-flex;
    align-items: center;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 4px 12px;
    border: 1.5px solid;
    white-space: nowrap;
}


/*  
   POST HEADER — title + date
     */

.ta-single-nl__header {
    margin-bottom: 28px;
}

.ta-single-nl__title {
    font-family: 'DM Sans', -apple-system, sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: #1A2B4A;
    line-height: 1.2;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.ta-single-nl__date {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 500;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* FEATURED IMAGE */

.ta-single-nl__image-wrap {
    margin-bottom: 32px;
    border-radius: 16px;
    overflow: hidden;
}

.ta-single-nl__image {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
    display: block;
}


/* POST CONTENT */

.ta-single-nl__content {
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 40px;
}

/* Paragraphs */
.ta-single-nl__content p {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
}

/* Headings inside content */
.ta-single-nl__content h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1A2B4A;
    margin: 36px 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ta-single-nl__content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A2B4A;
    margin: 28px 0 12px;
}

/* Links */
.ta-single-nl__content a {
    color: #3DBFBF;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 150ms ease;
}

.ta-single-nl__content a:hover {
    color: #2A9E9E;
}

/* Lists */
.ta-single-nl__content ul,
.ta-single-nl__content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.ta-single-nl__content ul {
    list-style: disc;
}

.ta-single-nl__content ol {
    list-style: decimal;
}

.ta-single-nl__content li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: #374151;
}

/* Bold text */
.ta-single-nl__content strong,
.ta-single-nl__content b {
    font-weight: 700;
    color: #1A2B4A;
}

/* Images inside content */
.ta-single-nl__content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    display: block;
}

/* Divider */
.ta-single-nl__content hr {
    border: none;
    border-top: 1px solid #E5E7EB;
    margin: 32px 0;
}

/* Blockquote */
.ta-single-nl__content blockquote {
    border-left: 4px solid #3DBFBF;
    padding-left: 20px;
    margin: 28px 0;
    font-style: italic;
    color: #4B5563;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* WPBakery rendered content overrides */
.ta-single-nl__content .vc_row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.ta-single-nl__content .wpb_wrapper {
    padding: 0 !important;
}


/* EMAIL SIGNUP CTA BOX */

.ta-single-nl__cta {
    margin-bottom: 48px;
}

.ta-single-nl__cta-inner {
    background: #FDE8EC;
    border-radius: 20px;
    padding: 32px 36px;
    text-align: center;
}

.ta-single-nl__cta-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    line-height: 1;
}

.ta-single-nl__cta-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1A2B4A;
    margin: 0 0 8px 0;
}

.ta-single-nl__cta-desc {
    font-size: 0.9rem;
    color: #6B7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* WPForms inside CTA box */
.ta-single-nl__cta-inner .wpforms-form {
    max-width: 420px;
    margin: 0 auto;
}

.ta-single-nl__cta-inner .wpforms-form .wpforms-field {
    padding: 0 !important;
    margin-bottom: 0 !important;
}

.ta-single-nl__cta-inner .wpforms-form .wpforms-field-label {
    display: none !important;
}

.ta-single-nl__cta-inner .wpforms-form .wpforms-field input[type="email"] {
    width: 100% !important;
    padding: 13px 20px !important;
    border: 2px solid #E5E7EB !important;
    border-radius: 999px 0 0 999px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    outline: none !important;
    background: #fff !important;
    color: #374151 !important;
}

.ta-single-nl__cta-inner .wpforms-submit-container {
    padding: 0 !important;
}

.ta-single-nl__cta-inner .wpforms-form button[type="submit"],
.ta-single-nl__cta-inner .wpforms-form input[type="submit"] {
    background: #F5607A !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 999px 999px 0 !important;
    padding: 13px 24px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: background 150ms ease !important;
    white-space: nowrap !important;
}

.ta-single-nl__cta-inner .wpforms-form button[type="submit"]:hover {
    background: #D94A63 !important;
}

/* Make form inline (side by side) */
.ta-single-nl__cta-inner .wpforms-form .wpforms-field-container,
.ta-single-nl__cta-inner .wpforms-form .wpforms-submit-container {
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Fallback text if no WPForms */
.ta-single-nl__form-fallback {
    margin-top: 16px;
}


/* RELATED POSTS — "More from [Newsletter]" */

.ta-single-nl__related {
    padding-top: 40px;
    border-top: 1px solid #E5E7EB;
}

.ta-single-nl__related-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
}

.ta-single-nl__related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Related post card */
.ta-single-nl__rel-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 200ms ease;
}

.ta-single-nl__rel-card:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

/* Related post image */
.ta-single-nl__rel-image-wrap {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 16/9;
}

.ta-single-nl__rel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.ta-single-nl__rel-card:hover .ta-single-nl__rel-image {
    transform: scale(1.04);
}

/* Placeholder when no image */
.ta-single-nl__rel-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

/* Related post title */
.ta-single-nl__rel-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1A2B4A;
    line-height: 1.4;
    margin-bottom: 6px;
    transition: color 150ms ease;
}

.ta-single-nl__rel-card:hover .ta-single-nl__rel-title {
    color: #3DBFBF;
}

/* Related post date */
.ta-single-nl__rel-date {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}


/* RESPONSIVE */

@media (max-width: 768px) {

    .ta-single-nl {
        padding: 24px 16px 60px;
    }

    .ta-single-nl__title {
        font-size: 1.65rem;
    }

    .ta-single-nl__image {
        max-height: 280px;
    }

    .ta-single-nl__cta-inner {
        padding: 24px 20px;
    }

    /* Stack form on mobile */
    .ta-single-nl__cta-inner .wpforms-form .wpforms-field input[type="email"] {
        border-radius: 999px !important;
        border: 2px solid #E5E7EB !important;
        margin-bottom: 12px !important;
    }

    .ta-single-nl__cta-inner .wpforms-form button[type="submit"] {
        border-radius: 999px !important;
        width: 100% !important;
    }

    .ta-single-nl__related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ta-single-nl__title {
        font-size: 1.4rem;
    }
}