/* CONTENT VISUAL ENHANCEMENT - NEWS SITE QUALITY */
/* Transform content from wall-of-text to scannable, engaging articles */

/* ============================================ */
/* CONTENT PARSING AND AUTO-FORMATTING */
/* ============================================ */

/* Transform markdown-style headers into visual elements */
.article-content h1:contains("#") {
    display: none; /* Hide markdown syntax */
}

/* Auto-format tool sections */
.article-content p:has(strong:contains("ROI Impact")),
.article-content p:has(strong:contains("Annual value")),
.article-content p:has(strong:contains("Success metric")) {
    background: linear-gradient(135deg, #d1f2eb 0%, #a3e9d0 100%);
    border-left: 5px solid #28a745;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.article-content p:has(strong:contains("ROI Impact"))::before,
.article-content p:has(strong:contains("Annual value"))::before,
.article-content p:has(strong:contains("Success metric"))::before {
    content: "📈";
    position: absolute;
    left: -12px;
    top: 16px;
    background: #28a745;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Pricing information styling */
.article-content p:has(strong:contains("Pricing")) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid #007bff;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.article-content p:has(strong:contains("Pricing"))::before {
    content: "💰";
    position: absolute;
    left: -12px;
    top: 16px;
    background: #007bff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Best for/Target audience styling */
.article-content p:has(strong:contains("Best for")) {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 5px solid #ffc107;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.article-content p:has(strong:contains("Best for"))::before {
    content: "🎯";
    position: absolute;
    left: -12px;
    top: 16px;
    background: #ffc107;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* ============================================ */
/* JAVASCRIPT-POWERED CONTENT TRANSFORMATION */
/* ============================================ */

/* These will be transformed by JavaScript for dynamic enhancement */
.tool-section {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.tool-section:hover {
    border-color: #007bff;
    box-shadow: 0 8px 25px rgba(0,123,255,0.15);
    transform: translateY(-2px);
}

.tool-section h3 {
    color: #007bff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px 0;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

/* Section dividers */
.section-divider {
    height: 3px;
    background: linear-gradient(90deg, #007bff, #28a745, #ffc107);
    margin: 40px 0;
    border-radius: 2px;
    opacity: 0.8;
}

/* Call-to-action sections */
.cta-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    text-align: center;
}

.cta-section h2, .cta-section h3 {
    color: white;
    margin-bottom: 16px;
}

/* Implementation guides */
.implementation-guide {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 24px;
    margin: 32px 0;
}

.implementation-guide h3 {
    color: #495057;
    border-left: 4px solid #007bff;
    padding-left: 16px;
    margin-bottom: 20px;
}

/* Step-by-step styling */
.step-container {
    counter-reset: step-counter;
}

.step-item {
    counter-increment: step-counter;
    background: #fff;
    border-left: 4px solid #007bff;
    margin: 20px 0;
    padding: 20px 24px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 0 8px 8px 0;
}

.step-item::before {
    content: counter(step-counter);
    background: #007bff;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: absolute;
    left: -17px;
    top: 20px;
    font-size: 14px;
}

/* ============================================ */
/* MOBILE-SPECIFIC ENHANCEMENTS */
/* ============================================ */

@media (max-width: 768px) {
    .tool-section {
        padding: 20px;
        margin: 16px 0;
    }
    
    .step-item {
        padding: 16px 20px;
        margin: 16px 0;
    }
    
    .step-item::before {
        width: 26px;
        height: 26px;
        left: -15px;
        top: 16px;
        font-size: 12px;
    }
    
    .cta-section {
        padding: 24px 20px;
        margin: 30px 0;
    }
    
    .implementation-guide {
        padding: 20px;
        margin: 24px 0;
    }
}

/* ============================================ */
/* VISUAL EMPHASIS ELEMENTS */
/* ============================================ */

/* Highlight quotes and important statements */
.content-highlight {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 5px solid #2196f3;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-weight: 500;
    color: #1565c0;
}

/* Statistics and numbers */
.stat-highlight {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border: 2px solid #9c27b0;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
    text-align: center;
    font-weight: 600;
    color: #4a148c;
}

/* Success stories and testimonials */
.success-story {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    position: relative;
}

.success-story::before {
    content: "✓";
    position: absolute;
    top: -10px;
    left: 20px;
    background: #4caf50;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

/* Warning or important notes */
.important-note {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-left: 5px solid #ff9800;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.important-note::before {
    content: "⚠";
    position: absolute;
    left: -12px;
    top: 20px;
    background: #ff9800;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* ============================================ */
/* TYPOGRAPHY REFINEMENTS */
/* ============================================ */

/* Improve readability for long-form content */
.article-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.article-content p:first-child {
    font-size: 22px;
    line-height: 1.6;
    color: #2c3e50;
    font-weight: 400;
    margin-bottom: 28px;
}

/* Enhanced list styling */
.article-content ul {
    padding-left: 0;
    list-style: none;
}

.article-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.article-content ul li::before {
    content: "▶";
    color: #007bff;
    font-size: 12px;
    position: absolute;
    left: 8px;
    top: 4px;
}

/* Numbered lists with better styling */
.article-content ol {
    counter-reset: custom-counter;
    padding-left: 0;
    list-style: none;
}

.article-content ol li {
    counter-increment: custom-counter;
    position: relative;
    padding-left: 40px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.article-content ol li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #007bff;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* ============================================ */
/* PERFORMANCE AND ACCESSIBILITY */
/* ============================================ */

/* Ensure smooth animations */
.tool-section,
.step-item,
.content-highlight,
.success-story {
    will-change: transform;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .tool-section,
    .step-item,
    .content-highlight {
        border-width: 3px;
        border-color: #000;
    }
    
    .article-content p::before {
        background: #000;
        color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .tool-section,
    .step-item {
        transition: none;
        transform: none;
    }
    
    .tool-section:hover {
        transform: none;
    }
}