/* Auto Blog AI Pro — Frontend Article Styles — By Sharyar Ameen */

/* ── Article container ───────────────────────────────────────── */
.ablog-post {
    font-size: 17px;
    line-height: 1.85;
    color: #2c3040;
    max-width: 780px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Georgia, sans-serif;
}

/* ── Headings ─────────────────────────────────────────────────── */
.ablog-post h2 {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 2.4rem 0 1rem;
    padding-bottom: 10px;
    border-bottom: 3px solid #f0f2ff;
    line-height: 1.3;
}

.ablog-post h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3040;
    margin: 2rem 0 0.8rem;
    line-height: 1.4;
}

.ablog-post h4 {
    font-size: 17px;
    font-weight: 700;
    color: #2c3040;
    margin: 1.6rem 0 0.6rem;
}

/* ── Body text ───────────────────────────────────────────────── */
.ablog-post p {
    margin: 0 0 1.4rem;
}

.ablog-post strong {
    color: #1a1a2e;
    font-weight: 700;
}

.ablog-post em {
    font-style: italic;
    color: #444;
}

.ablog-post a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid rgba(102, 126, 234, 0.35);
    transition: border-color 0.2s;
}

.ablog-post a:hover {
    border-bottom-color: #667eea;
}

/* ── Lists ───────────────────────────────────────────────────── */
.ablog-post ul,
.ablog-post ol {
    padding-left: 1.6rem;
    margin: 0 0 1.4rem;
}

.ablog-post li {
    margin-bottom: 0.55rem;
    line-height: 1.75;
}

.ablog-post ul li::marker {
    color: #667eea;
}

/* ── Callout boxes ───────────────────────────────────────────── */
.ablog-callout {
    border-radius: 12px;
    padding: 20px 24px;
    margin: 2.2rem 0;
    border-left: 4px solid;
    position: relative;
}

.ablog-callout h4 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.ablog-callout p,
.ablog-callout li {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.ablog-callout p:last-child,
.ablog-callout li:last-child {
    margin-bottom: 0;
}

.ablog-callout ul {
    margin: 0;
    padding-left: 1.4rem;
}

/* Info callout — blue */
.ablog-callout-info {
    background: #f0f4ff;
    border-color: #667eea;
    color: #2c3040;
}

.ablog-callout-info h4 {
    color: #667eea;
}

/* Tip callout — yellow */
.ablog-callout-tip {
    background: #fffbea;
    border-color: #f6c90e;
    color: #2c3040;
}

.ablog-callout-tip h4 {
    color: #b8960c;
}

/* Warning callout — orange/red */
.ablog-callout-warning {
    background: #fff5f5;
    border-color: #e74c3c;
    color: #2c3040;
}

.ablog-callout-warning h4 {
    color: #c0392b;
}

/* Success callout — green */
.ablog-callout-success {
    background: #eafff1;
    border-color: #27ae60;
    color: #2c3040;
}

.ablog-callout-success h4 {
    color: #1e8449;
}

/* ── Blockquote ──────────────────────────────────────────────── */
.ablog-post blockquote {
    border-left: 4px solid #667eea;
    margin: 2rem 0;
    padding: 16px 22px;
    background: #f8f9ff;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

/* ── Code ────────────────────────────────────────────────────── */
.ablog-post code {
    background: #f0f2ff;
    color: #667eea;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Courier New', Courier, monospace;
}

.ablog-post pre {
    background: #1a1a2e;
    color: #a8d8ea;
    padding: 18px 22px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.7;
    margin: 1.6rem 0;
}

/* ── Images ──────────────────────────────────────────────────── */
.ablog-post img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.2rem 0;
}

/* ── Table ───────────────────────────────────────────────────── */
.ablog-post table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    font-size: 15px;
}

.ablog-post th {
    background: #f0f2ff;
    color: #1a1a2e;
    font-weight: 700;
    padding: 11px 14px;
    text-align: left;
    border-bottom: 2px solid #d0d7ff;
}

.ablog-post td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f2ff;
}

.ablog-post tr:hover td {
    background: #f8f9ff;
}

/* ── Horizontal rule ─────────────────────────────────────────── */
.ablog-post hr {
    border: none;
    border-top: 2px solid #f0f2ff;
    margin: 2.4rem 0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 680px) {
    .ablog-post {
        font-size: 16px;
    }
    .ablog-post h2 {
        font-size: 22px;
    }
    .ablog-callout {
        padding: 16px 18px;
    }
}
