/* ═══════════════════════════════════════════════════════════════════
   FanaticoWeb Article Generator — Frontend Article Styles
   Default styles for AI-generated content. Can be overridden
   by the custom CSS field in plugin settings.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Info / Tip / Warning Boxes ──────────────────────────────────── */

.fwag-box {
    border-radius: 8px;
    padding: 20px 24px;
    margin: 28px 0;
    line-height: 1.7;
    font-size: 0.97em;
}

.fwag-box p:last-child {
    margin-bottom: 0;
}

.fwag-box-title {
    font-weight: 700;
    font-size: 1.05em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fwag-box-info {
    background: #eef4fb;
    border-left: 4px solid #3b82f6;
    color: #1e3a5f;
}

.fwag-box-tip {
    background: #ecfdf5;
    border-left: 4px solid #10b981;
    color: #064e3b;
}

.fwag-box-warning {
    background: #fef9ee;
    border-left: 4px solid #f59e0b;
    color: #78350f;
}

.fwag-box-highlight {
    background: #f0f0ff;
    border-left: 4px solid #6366f1;
    color: #312e81;
}

/* ── Key Takeaway / Summary ──────────────────────────────────────── */

.fwag-takeaway {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    padding: 24px 28px;
    margin: 32px 0;
}

.fwag-takeaway-title {
    font-weight: 700;
    font-size: 1.1em;
    color: #4338ca;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fwag-takeaway ul {
    margin: 0;
    padding-left: 20px;
}

.fwag-takeaway li {
    margin-bottom: 6px;
    line-height: 1.6;
}

/* ── Styled Lists ────────────────────────────────────────────────── */

.fwag-checklist {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.fwag-checklist li {
    padding: 6px 0 6px 28px;
    position: relative;
    line-height: 1.7;
}

.fwag-checklist li::before {
    content: "✅";
    position: absolute;
    left: 0;
    top: 6px;
}

/* ── CTA Box — Premium Style ──────────────────────────────────────── */

.fw-article-cta,
.fw-article-cta * {
    box-sizing: border-box;
}

.fw-article-cta {
    position: relative;
    overflow: hidden;
    margin: 48px 0;
    padding: 0;
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 10%, rgba(255,135,0,.22), transparent 30%),
        radial-gradient(circle at 10% 100%, rgba(255,135,0,.10), transparent 35%),
        linear-gradient(135deg, #202126 0%, #343540 55%, #202126 100%);
    box-shadow:
        0 25px 60px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
    color: #fff;
    isolation: isolate;
}

.fw-article-cta::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    top: -190px;
    right: -80px;
    border-radius: 50%;
    background: #ff8700;
    filter: blur(80px);
    opacity: .18;
    z-index: -1;
}

.fw-article-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .15;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to right, transparent, #000 70%);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 70%);
}

.fw-cta-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 42px;
    align-items: center;
    padding: 42px 46px;
}

.fw-cta-copy {
    min-width: 0;
}

.fw-cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 7px 12px;
    border: 1px solid rgba(255,135,0,.35);
    border-radius: 999px;
    background: rgba(255,135,0,.10);
    color: #ffae4d;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fw-cta-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #ff8700;
    box-shadow: 0 0 0 5px rgba(255,135,0,.12);
}

.fw-cta-title {
    margin: 0 0 12px;
    max-width: 700px;
    color: #ffffff;
    font-size: clamp(27px, 3vw, 39px);
    line-height: 1.08;
    font-weight: 850;
    letter-spacing: -.035em;
}

.fw-cta-title span {
    color: #ff8700;
}

.fw-cta-text {
    max-width: 690px;
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: 16px;
    line-height: 1.7;
}

.fw-cta-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 20px;
}

.fw-cta-benefit {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.88);
    font-size: 13px;
    font-weight: 600;
}

.fw-cta-check {
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: rgba(255,135,0,.14);
    color: #ff9a1f;
    font-size: 12px;
    font-weight: 900;
}

.fw-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 11px;
    min-width: 215px;
}

.fw-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 22px;
    border-radius: 13px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease,
        border-color .25s ease;
}

.fw-cta-btn-primary {
    color: #1f2025 !important;
    background: linear-gradient(135deg, #ffa630 0%, #ff8700 100%);
    box-shadow: 0 12px 30px rgba(255,135,0,.28);
}

.fw-cta-btn-primary:hover {
    color: #1f2025 !important;
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(255,135,0,.38);
}

.fw-cta-btn-secondary {
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(8px);
}

.fw-cta-btn-secondary:hover {
    color: #fff !important;
    transform: translateY(-3px);
    border-color: rgba(255,255,255,.30);
    background: rgba(255,255,255,.10);
}

.fw-cta-arrow {
    font-size: 18px;
    line-height: 1;
    transition: transform .25s ease;
}

.fw-cta-btn:hover .fw-cta-arrow {
    transform: translateX(4px);
}

@media (max-width: 820px) {
    .fw-article-cta {
        border-radius: 20px;
    }
    .fw-cta-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 34px 28px;
    }
    .fw-cta-title {
        font-size: clamp(26px, 8vw, 34px);
    }
    .fw-cta-actions {
        width: 100%;
        min-width: 0;
    }
    .fw-cta-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .fw-article-cta {
        margin: 36px 0;
        border-radius: 17px;
    }
    .fw-cta-inner {
        padding: 28px 22px;
    }
    .fw-cta-text {
        font-size: 15px;
    }
    .fw-cta-benefits {
        flex-direction: column;
        gap: 9px;
    }
}

/* Legacy CTA fallback */
.article-cta {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: #ffffff;
    border-radius: 12px;
    padding: 32px 36px;
    margin: 40px 0;
    text-align: center;
}

.article-cta p,
.article-cta-content {
    color: #ffffff;
    font-size: 1.1em;
    line-height: 1.8;
    margin: 0;
}

.article-cta a,
.article-cta-content a {
    color: #93c5fd;
    text-decoration: underline;
    font-weight: 600;
}

.article-cta a:hover,
.article-cta-content a:hover {
    color: #ffffff;
}

/* ── FAQ Section ─────────────────────────────────────────────────── */

.article-faq {
    margin: 48px 0;
    padding: 32px 0 0;
    border-top: 2px solid #e2e8f0;
}

.article-faq > h2 {
    font-size: 1.5em;
    margin-bottom: 24px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-faq > h2::before {
    content: "❓";
    font-size: 0.9em;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #3b82f6;
    border-radius: 0 10px 10px 0;
    padding: 22px 26px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.faq-item:hover {
    border-left-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37,99,235,0.08);
    transform: translateY(-1px);
}

.faq-item h3 {
    font-size: 1.1em;
    color: #1e293b;
    margin: 0 0 10px;
    font-weight: 700;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.faq-item h3::before {
    content: "Q";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: #3b82f6;
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

.faq-item p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
    padding-left: 38px;
}

/* ── Table of Contents ───────────────────────────────────────────── */

.article-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 28px 0;
}

.article-toc-title {
    margin: 0 0 10px;
    font-size: 1em;
    color: #334155;
}

.article-toc ol {
    margin: 0;
    padding-left: 20px;
}

.article-toc li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.article-toc a {
    color: #2563eb;
    text-decoration: none;
}

.article-toc a:hover {
    text-decoration: underline;
}

/* ── Section Separators ──────────────────────────────────────────── */

.fwag-separator {
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 36px 0;
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .fwag-box,
    .fwag-takeaway,
    .fwag-cta,
    .article-cta {
        padding: 16px 18px;
    }

    .faq-item {
        padding: 14px 16px;
    }
}