/*
Theme Name: WP Autoblogger
Theme URI: https://wpautoblogger.com
Author: AI Autoblogger LLC
Author URI: https://wpaiautoblogger.com
Description: SEO + conversion-tuned block theme for wpautoblogger.com — content/funnel site for the WP AI AutoBlogger plugin. Block-based (FSE), system fonts, zero CLS, schema-rich. Aligned visually with the wpaiautoblogger.com storefront.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wp-autoblogger
Tags: block-themes, full-site-editing, blog, news, three-columns, custom-colors, custom-logo, custom-menu, featured-image-header, featured-images, full-width-template, threaded-comments, translation-ready, wide-blocks
*/

/* Minimal CSS — design system lives in theme.json. Only utilities + non-blockable patterns below. */

/* ── Sticky CTA bar (rendered via wpab_sticky_cta shortcode) ── */
.wpab-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    color: #fff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, .15);
    transition: transform .3s ease;
    font-size: 14px;
    line-height: 1.4;
}
.wpab-sticky-cta.is-hidden { transform: translateY(110%); }
.wpab-sticky-cta a.wpab-sticky-cta-btn {
    background: #fff;
    color: #4338ca;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.wpab-sticky-cta a.wpab-sticky-cta-btn:hover { background: #f8fafc; }
.wpab-sticky-cta button.wpab-sticky-cta-close {
    background: transparent;
    border: 0;
    color: #fff;
    opacity: .7;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    padding: 0 4px;
}
.wpab-sticky-cta button.wpab-sticky-cta-close:hover { opacity: 1; }

/* ── In-article soft CTA (after 3rd H2) ── */
.wpab-cta-soft {
    background: #f8fafc;
    border-left: 4px solid #4f46e5;
    border-radius: 0 8px 8px 0;
    padding: 18px 22px;
    margin: 32px 0;
    font-size: 15px;
    line-height: 1.6;
}
.wpab-cta-soft a {
    color: #4338ca;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #c7d2fe;
}
.wpab-cta-soft a:hover { border-bottom-color: #4338ca; }

/* ── End-of-article CTA card ── */
.wpab-cta-bottom {
    background: linear-gradient(135deg, rgba(79, 70, 229, .06) 0%, rgba(6, 182, 212, .04) 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 32px;
    margin: 40px 0;
    text-align: center;
}
.wpab-cta-bottom h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}
.wpab-cta-bottom p {
    margin: 0 0 16px;
    color: #475569;
    font-size: 15px;
}
.wpab-cta-bottom a.wpab-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform .15s ease;
}
.wpab-cta-bottom a.wpab-btn:hover { transform: translateY(-1px); }

/* ── Author byline ── */
.wpab-byline {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin: 32px 0;
}
.wpab-byline img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.wpab-byline .wpab-byline-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 14px;
    margin: 0;
}
.wpab-byline .wpab-byline-meta {
    font-size: 13px;
    color: #64748b;
    margin: 2px 0 0;
}
.wpab-byline a { color: inherit; text-decoration: none; }
.wpab-byline a:hover .wpab-byline-name { color: #4338ca; }

/* ── Breadcrumbs ── */
.wpab-breadcrumbs {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 24px;
    line-height: 1.6;
}
.wpab-breadcrumbs a {
    color: #4338ca;
    text-decoration: none;
}
.wpab-breadcrumbs a:hover { text-decoration: underline; }
.wpab-breadcrumbs .wpab-sep {
    margin: 0 8px;
    color: #cbd5e1;
}

/* ── Comparison table (pillar page) ── */
.wpab-compare {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}
.wpab-compare th,
.wpab-compare td {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}
.wpab-compare th {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.wpab-compare tbody tr.wpab-pick {
    background: linear-gradient(90deg, rgba(79, 70, 229, .04) 0%, transparent 60%);
}
.wpab-compare .wpab-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: #4f46e5;
    color: #fff;
}

/* ── Card grid (blog archive) ── */
.wpab-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    margin: 32px 0;
}
.wpab-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
    display: flex;
    flex-direction: column;
}
.wpab-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}
.wpab-card .wpab-card-img {
    aspect-ratio: 16 / 9;
    background: #f8fafc;
    object-fit: cover;
    width: 100%;
    height: auto;
    display: block;
}
.wpab-card .wpab-card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.wpab-card .wpab-card-cat {
    font-size: 11px;
    font-weight: 700;
    color: #4338ca;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.wpab-card .wpab-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0;
}
.wpab-card .wpab-card-title a { color: inherit; text-decoration: none; }
.wpab-card:hover .wpab-card-title a { color: #4338ca; }
.wpab-card .wpab-card-meta {
    font-size: 12px;
    color: #94a3b8;
    margin-top: auto;
}

/* ── Header CTA button (in nav) ── */
.wpab-header-cta {
    display: inline-block;
    background: #0f172a;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background .15s ease;
}
.wpab-header-cta:hover { background: #4338ca; }

/* ── Reading-width override for single posts ── */
.wpab-single .wp-block-post-content > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.wpab-single .wp-block-post-content > .alignwide,
.wpab-single .wp-block-post-content > .alignfull,
.wpab-single .wp-block-post-content > figure { max-width: var(--wp--style--global--wide-size); }

/* ── Logo cap ── */
.wpab-site-logo img { max-height: 40px !important; width: auto; }
@media (max-width: 600px) { .wpab-site-logo img { max-height: 32px !important; } }

/* ── Body baseline ── */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; }
