/**
 * AI Trending Content Generator — Frontend Content Styles
 *
 * Styles for AI-generated article elements:
 * comparison tables, FAQ schema, visual placeholders, TOC, etc.
 *
 * ALL selectors are scoped to .aitcg-content or .aitcg-* classes
 * to prevent interfering with theme styles.
 *
 * @package AiTrendingContentGenerator
 */

/* ==========================================================================
   Table of Contents
   ========================================================================== */

.aitcg-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #4f46e5;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 24px 0 32px;
}

.aitcg-toc h2 {
    font-size: 18px;
    margin: 0 0 12px;
    color: #1e293b;
    border: none;
    padding: 0;
}

.aitcg-toc ol {
    margin: 0;
    padding-left: 20px;
    counter-reset: toc-counter;
    list-style: none;
}

.aitcg-toc ol li {
    counter-increment: toc-counter;
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.6;
}

.aitcg-toc ol li::before {
    content: counter(toc-counter) ". ";
    color: #4f46e5;
    font-weight: 700;
}

.aitcg-toc a {
    color: #334155;
    text-decoration: none;
    transition: color 0.2s;
}

.aitcg-toc a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* ==========================================================================
   Comparison Tables
   ========================================================================== */

.aitcg-table-responsive {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.aitcg-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: #fff;
}

.aitcg-comparison-table thead th {
    background: #1e293b;
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.aitcg-comparison-table thead th:first-child {
    border-radius: 8px 0 0 0;
}

.aitcg-comparison-table thead th:last-child {
    border-radius: 0 8px 0 0;
}

.aitcg-comparison-table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

.aitcg-comparison-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.aitcg-comparison-table tbody tr:hover {
    background: #eef2ff;
}

.aitcg-comparison-table tbody td:first-child {
    font-weight: 600;
    color: #1e293b;
}

/* ==========================================================================
   Visual Placeholders
   ========================================================================== */

.aitcg-visual-placeholder {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border: 2px dashed #94a3b8;
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    margin: 24px 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    font-style: italic;
}

.aitcg-visual-placeholder::before {
    content: "📷 ";
    font-style: normal;
}

/* ==========================================================================
   FAQ Section (Schema-Compatible)
   ========================================================================== */

.aitcg-faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s;
}

.aitcg-faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.aitcg-faq-item h3 {
    font-size: 17px;
    color: #1e293b;
    margin: 0 0 8px;
    cursor: default;
}

.aitcg-faq-item h3::before {
    content: "❓ ";
}

.aitcg-faq-item p {
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
}

/* ==========================================================================
   Article Content Improvements — SCOPED to plugin-generated posts only
   ========================================================================== */

.aitcg-content h2 {
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.aitcg-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

/* Code blocks inside plugin-generated articles */
.aitcg-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
    margin: 16px 0;
}

.aitcg-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: #be185d;
}

.aitcg-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}
