/*
 * Azon Pro — Frontend Stylesheet
 * Class-based styling for articles rendered via shortcode or WordPress post.
 * These classes are output by build_article_html() in class-ai-handler.php
 */

/* ── Article wrapper (shortcode only) ─────────────────────────── */
.azon-article-wrap {
    max-width: 820px; margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.75; color: #1e293b; font-size: 1.02em;
}

/* ── Disclosure ────────────────────────────────────────────────── */
.azon-disclosure {
    background: #fff8e1; border-left: 4px solid #ffc107;
    padding: 12px 16px; border-radius: 0 6px 6px 0;
    font-size: .88em; margin-bottom: 24px; line-height: 1.6;
    color: #7c5e00;
}

/* ── Product hero image ────────────────────────────────────────── */
.azon-product-hero { text-align: center; margin: 24px 0 28px; }
.azon-product-img {
    max-width: 380px; width: 100%; height: auto;
    border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.12);
    border: 1px solid #f0f0f0;
}

/* ── Section boxes ─────────────────────────────────────────────── */
.azon-section { border-radius: 10px; padding: 22px 26px; margin: 28px 0; }
.azon-section--blue   { background: #f0f7ff; border: 1px solid #dbeafe; }
.azon-section--orange { background: #fff7ed; border: 1px solid #fed7aa; }
.azon-section--green  { background: #f0fdf4; border: 1px solid #bbf7d0; }

.azon-section-title {
    font-size: 1.3em; font-weight: 700; color: #1e293b;
    margin: 0 0 16px; padding-bottom: 10px;
    border-bottom: 2px solid rgba(0,0,0,.08);
}
.azon-subsection-title {
    font-size: 1.05em; font-weight: 600; color: #374151; margin: 16px 0 8px;
}

/* ── Feature list ──────────────────────────────────────────────── */
.azon-feature-list { list-style: none; margin: 12px 0 0; padding: 0; }
.azon-feature-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0; border-bottom: 1px solid #dbeafe; line-height: 1.5;
}
.azon-feature-item:last-child { border-bottom: none; }
.azon-feature-icon { color: #2563eb; font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── Pros & Cons ───────────────────────────────────────────────── */
.azon-pros-cons { margin: 28px 0; }
.azon-pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.azon-pros-box {
    background: #f0fdf4; border: 1.5px solid #bbf7d0;
    border-radius: 10px; padding: 18px 20px;
}
.azon-cons-box {
    background: #fff1f2; border: 1.5px solid #fecdd3;
    border-radius: 10px; padding: 18px 20px;
}
.azon-pros-title {
    color: #15803d; margin: 0 0 12px; font-size: 1em;
    display: flex; align-items: center; gap: 8px;
}
.azon-cons-title {
    color: #dc2626; margin: 0 0 12px; font-size: 1em;
    display: flex; align-items: center; gap: 8px;
}
.azon-pros-list, .azon-cons-list { list-style: none; margin: 0; padding: 0; }
.azon-pro-item, .azon-con-item {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 7px 0; border-bottom: 1px solid rgba(0,0,0,.06);
    line-height: 1.5; font-size: .95em;
}
.azon-pro-item:last-child, .azon-con-item:last-child { border-bottom: none; }
.azon-pro-item span:first-child { color: #15803d; font-weight: 700; flex-shrink: 0; }
.azon-con-item span:first-child { color: #dc2626; font-weight: 700; flex-shrink: 0; }

/* ── FAQ ───────────────────────────────────────────────────────── */
.azon-faq-item {
    margin-bottom: 16px; background: #fff;
    border-radius: 8px; padding: 14px 18px;
    border: 1px solid #d1fae5;
}
.azon-faq-q { font-size: 1em; font-weight: 600; color: #065f46; margin: 0 0 8px; }
.azon-faq-a { color: #374151; line-height: 1.7; font-size: .95em; }

/* ── Final Verdict ─────────────────────────────────────────────── */
.azon-verdict {
    background: #f8faff; border-radius: 10px;
    padding: 22px 26px; margin: 28px 0;
    border: 1px solid #e0e7ff;
}

/* ── CTA Button ────────────────────────────────────────────────── */
.azon-cta-wrap { text-align: center; margin: 32px 0; }
.azon-cta-btn {
    display: inline-block; padding: 16px 40px;
    color: #fff !important; text-decoration: none;
    border-radius: 8px; font-weight: 800; font-size: 1.1em;
    letter-spacing: .3px; box-shadow: 0 4px 15px rgba(0,0,0,.2);
    transition: opacity .2s, transform .2s;
}
.azon-cta-btn:hover { opacity: .9; transform: translateY(-1px); }
.azon-cta-note { font-size: .78em; color: #888; margin-top: 8px; }

/* ── Comparison table (shortcode) ──────────────────────────────── */
.azon-table-wrap { margin: 24px 0; }
.azon-table-scroll { overflow-x: auto; }
.azon-comparison-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.azon-comparison-table th { background: #2C3E50; color: #fff; padding: 12px 16px; text-align: left; }
.azon-comparison-table td { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.azon-comparison-table tr:hover td { background: #fafafa; }
.azon-badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: .72em; font-weight: 700; background: #E67E22; color: #fff; }
.azon-badge--top { background: #27ae60; }
.azon-table-conclusion { margin-top: 16px; padding: 14px 18px; background: #fff8f0; border-left: 4px solid #E67E22; border-radius: 0 6px 6px 0; line-height: 1.6; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .azon-pros-cons-grid { grid-template-columns: 1fr; }
    .azon-section { padding: 16px 18px; }
    .azon-cta-btn { padding: 14px 24px; font-size: 1em; }
    .azon-product-img { max-width: 280px; }
}