/**
 * AutoGlitcy Front-End Article Layout Styles
 * Provides 10 rich, eye-catching, responsive article styles for WordPress blogs.
 */

/* Universal Container Styling - Expanded, readable & responsive */
.autoglitcy-article-container {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    font-size: 17.5px;
    line-height: 1.8;
    color: #2d3748;
    box-sizing: border-box;
    word-break: break-word;
}

.autoglitcy-article-container * {
    box-sizing: border-box;
}

.autoglitcy-article-container p {
    margin: 0 0 1.5em 0;
    line-height: 1.8;
}

.autoglitcy-article-container p.ag-lead-paragraph {
    font-size: 1.22em;
    line-height: 1.75;
    font-weight: 400;
    margin-bottom: 1.8em;
}

.autoglitcy-article-container h1.ag-article-title {
    font-size: 2.3em;
    line-height: 1.25;
    font-weight: 800;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.autoglitcy-article-container .ag-article-meta {
    font-size: 13.5px;
    color: #718096;
    margin-bottom: 24px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.autoglitcy-article-container h2 {
    font-size: 1.7em;
    line-height: 1.35;
    font-weight: 750;
    margin: 1.8em 0 0.8em 0;
    letter-spacing: -0.015em;
    position: relative;
    padding-bottom: 8px;
}

.autoglitcy-article-container h3 {
    font-size: 1.3em;
    line-height: 1.4;
    font-weight: 700;
    margin: 1.5em 0 0.6em 0;
}

.autoglitcy-article-container ul, 
.autoglitcy-article-container ol {
    margin: 0 0 1.6em 1.2em;
    padding: 0;
}

.autoglitcy-article-container li {
    margin-bottom: 0.6em;
    line-height: 1.7;
}

.autoglitcy-article-container strong {
    font-weight: 700;
}

/* Hyperlinks Styling */
.autoglitcy-article-container a,
.autoglitcy-article-container a.ag-inline-link {
    color: var(--ag-link-color, #4f46e5);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.autoglitcy-article-container a:hover {
    color: var(--ag-link-hover, #4338ca);
    text-decoration-thickness: 2.5px;
}

/* Blockquotes */
.autoglitcy-article-container blockquote {
    margin: 2em 0;
    padding: 20px 28px;
    border-left: 4px solid var(--ag-accent-color, #6366f1);
    background: var(--ag-quote-bg, #f8fafc);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.12em;
    color: #334155;
    line-height: 1.7;
}

/* Key Takeaways Box */
.autoglitcy-article-container .ag-key-takeaways {
    margin: 28px 0 35px;
    padding: 24px 28px;
    background: var(--ag-box-bg, linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%));
    border: 1px solid var(--ag-box-border, #a7f3d0);
    border-radius: 14px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
}

.autoglitcy-article-container .ag-takeaway-title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ag-accent-color, #059669);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.autoglitcy-article-container .ag-key-takeaways ul {
    margin: 0;
    padding-left: 20px;
}

/* Metric / Stat Grid */
.autoglitcy-article-container .ag-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.autoglitcy-article-container .ag-metric-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.autoglitcy-article-container .ag-metric-num {
    font-size: 32px;
    font-weight: 850;
    color: var(--ag-accent-color, #4f46e5);
    line-height: 1.1;
    margin-bottom: 6px;
}

.autoglitcy-article-container .ag-metric-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pros and Cons Matrix */
.autoglitcy-article-container .ag-pro-con-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 32px 0;
}

@media (max-width: 640px) {
    .autoglitcy-article-container .ag-pro-con-grid {
        grid-template-columns: 1fr;
    }
}

.autoglitcy-article-container .ag-pro-card,
.autoglitcy-article-container .ag-con-card {
    padding: 22px 24px;
    border-radius: 12px;
}

.autoglitcy-article-container .ag-pro-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.autoglitcy-article-container .ag-con-card {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.autoglitcy-article-container .ag-pro-card h4 {
    color: #166534;
    margin: 0 0 12px 0;
    font-size: 16px;
}

.autoglitcy-article-container .ag-con-card h4 {
    color: #991b1b;
    margin: 0 0 12px 0;
    font-size: 16px;
}

/* FAQ Section */
.autoglitcy-article-container .ag-faq-section {
    margin: 35px 0;
}

.autoglitcy-article-container .ag-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.autoglitcy-article-container .ag-faq-item h3 {
    margin: 0 0 8px 0;
    font-size: 16.5px;
    color: #0f172a;
}

.autoglitcy-article-container .ag-faq-item p {
    margin: 0;
    font-size: 15.5px;
    color: #475569;
}

/* Call to Action Box */
.autoglitcy-article-container .ag-cta-box {
    margin: 40px 0 20px;
    padding: 35px;
    border-radius: 16px;
    text-align: center;
    background: var(--ag-cta-bg, linear-gradient(135deg, #1e1b4b 0%, #312e81 100%));
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.autoglitcy-article-container .ag-cta-box h3 {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-size: 24px;
}

.autoglitcy-article-container .ag-cta-box p {
    color: #c7d2fe;
    margin-bottom: 22px;
    font-size: 16px;
}

.autoglitcy-article-container .ag-cta-btn {
    display: inline-block;
    background: #ffffff;
    color: #1e1b4b !important;
    text-decoration: none !important;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.autoglitcy-article-container .ag-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ================================================================
   10 SPECIFIC TEMPLATE THEMES & TYPOGRAPHY VARIATIONS
   ================================================================ */

/* 1. Modern Tech & Magazine */
.ag-tpl-modern-tech {
    --ag-accent-color: #6366f1;
    --ag-link-color: #4f46e5;
    --ag-link-hover: #3730a3;
    --ag-box-bg: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    --ag-box-border: #c4b5fd;
    --ag-quote-bg: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
.ag-tpl-modern-tech h2 {
    border-bottom: 2px solid #e0e7ff;
    color: #1e1b4b;
}

/* 2. High-Authority Editorial & Review */
.ag-tpl-editorial-review {
    --ag-accent-color: #0f172a;
    --ag-link-color: #0369a1;
    --ag-link-hover: #075985;
    --ag-box-bg: #f8fafc;
    --ag-box-border: #cbd5e1;
    --ag-cta-bg: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 18px;
}
.ag-tpl-editorial-review h1,
.ag-tpl-editorial-review h2,
.ag-tpl-editorial-review h3 {
    font-family: Georgia, Cambria, serif;
    color: #0f172a;
}
.ag-tpl-editorial-review h2 {
    border-bottom: 2px solid #0f172a;
}

/* 3. Deep-Dive Pillar & Ultimate Guide */
.ag-tpl-pillar-guide {
    --ag-accent-color: #0284c7;
    --ag-link-color: #0284c7;
    --ag-link-hover: #0369a1;
    --ag-box-bg: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    --ag-box-border: #7dd3fc;
    --ag-cta-bg: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
}
.ag-tpl-pillar-guide h2 {
    background: #f0f9ff;
    padding: 10px 16px;
    border-left: 5px solid #0284c7;
    border-radius: 0 8px 8px 0;
}

/* 4. Minimalist & Ultra-Clean Luxury */
.ag-tpl-luxury-minimal {
    --ag-accent-color: #b45309;
    --ag-link-color: #b45309;
    --ag-link-hover: #92400e;
    --ag-box-bg: #fffbeb;
    --ag-box-border: #fde68a;
    --ag-quote-bg: #fffdfa;
    --ag-cta-bg: linear-gradient(135deg, #451a03 0%, #78350f 100%);
    font-family: "Optima", "Didot", "Playfair Display", -apple-system, serif;
    letter-spacing: 0.01em;
}
.ag-tpl-luxury-minimal h2 {
    border-bottom: 1px solid #e5e7eb;
    text-transform: uppercase;
    font-size: 1.45em;
    letter-spacing: 1px;
}

/* 5. SaaS & Digital Business Blueprint */
.ag-tpl-saas-blueprint {
    --ag-accent-color: #2563eb;
    --ag-link-color: #2563eb;
    --ag-link-hover: #1d4ed8;
    --ag-box-bg: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    --ag-box-border: #93c5fd;
    --ag-cta-bg: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
}
.ag-tpl-saas-blueprint h2 {
    color: #1e3a8a;
    border-bottom: 2px solid #bfdbfe;
}

/* 6. Creative Storyteller & Narrative */
.ag-tpl-creative-story {
    --ag-accent-color: #e11d48;
    --ag-link-color: #e11d48;
    --ag-link-hover: #be123c;
    --ag-box-bg: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    --ag-box-border: #fecdd3;
    --ag-cta-bg: linear-gradient(135deg, #881337 0%, #be123c 100%);
    font-family: "Palatino", "Book Antiqua", Georgia, serif;
}
.ag-tpl-creative-story blockquote {
    border-left-color: #e11d48;
    font-size: 1.2em;
    background: #fff5f6;
}

/* 7. Affiliate Showcase & Product Verdict */
.ag-tpl-affiliate-showcase {
    --ag-accent-color: #059669;
    --ag-link-color: #059669;
    --ag-link-hover: #047857;
    --ag-box-bg: #ecfdf5;
    --ag-box-border: #6ee7b7;
    --ag-cta-bg: linear-gradient(135deg, #064e3b 0%, #059669 100%);
}
.ag-tpl-affiliate-showcase h2 {
    border-left: 5px solid #059669;
    padding-left: 12px;
}

/* 8. Academic & Research Insights */
.ag-tpl-academic-insights {
    --ag-accent-color: #475569;
    --ag-link-color: #334155;
    --ag-link-hover: #0f172a;
    --ag-box-bg: #f1f5f9;
    --ag-box-border: #cbd5e1;
    --ag-cta-bg: #1e293b;
    font-family: "Charter", "Bitstream Charter", "Sitka Text", Cambria, serif;
}
.ag-tpl-academic-insights h2 {
    border-bottom: 2px solid #cbd5e1;
}

/* 9. Cyber & Futuristic Neo-Dark */
.ag-tpl-cyber-future {
    --ag-accent-color: #8b5cf6;
    --ag-link-color: #7c3aed;
    --ag-link-hover: #6d28d9;
    --ag-box-bg: #f5f3ff;
    --ag-box-border: #ddd6fe;
    --ag-cta-bg: linear-gradient(135deg, #2e1065 0%, #581c87 100%);
}
.ag-tpl-cyber-future h2 {
    border-bottom: 2px solid #c4b5fd;
    color: #4c1d95;
}

/* 10. Wellness, Lifestyle & Botanical Flow */
.ag-tpl-wellness-flow {
    --ag-accent-color: #15803d;
    --ag-link-color: #15803d;
    --ag-link-hover: #166534;
    --ag-box-bg: #f0fdf4;
    --ag-box-border: #bbf7d0;
    --ag-cta-bg: linear-gradient(135deg, #14532d 0%, #15803d 100%);
    font-family: "Gill Sans", "Gill Sans MT", "Calibri", sans-serif;
}
.ag-tpl-wellness-flow h2 {
    color: #14532d;
    border-bottom: 2px solid #dcfce7;
}
