/**
 * DentalSite Pro Blog - Blog Specific Styles
 * Additional styles for blog pages
 * Version: 1.0.0
 */

/* === Blog Listing Specific === */
.articles-count {
    margin-bottom: var(--spacing-3);
}

.articles-count p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* === Additional Article Card Styles === */
.article-card-image .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
}

/* === Smooth Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeIn 0.5s ease-out;
}

/* === Loading States === */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Notification Toast === */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    background: var(--text-primary);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}
/* ==========================================
   KEY TAKEAWAYS BOX (AI/SGE OPTIMIZATION)
   Add this to /assets/css/blog.css
   ========================================== */

.key-takeaways-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #0284c7;
    padding: 24px 28px;
    margin: 24px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.1);
}

.key-takeaways-box h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #0c4a6e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.key-takeaways-box h2 i {
    color: #0284c7;
    font-size: 16px;
}

.key-takeaways-box ul {
    margin: 0;
    padding-left: 24px;
    list-style: none;
}

.key-takeaways-box li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #0c4a6e;
    position: relative;
    padding-left: 8px;
}

.key-takeaways-box li:before {
    content: "✓";
    position: absolute;
    left: -20px;
    color: #0284c7;
    font-weight: bold;
    font-size: 16px;
}

.key-takeaways-box li:last-child {
    margin-bottom: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .key-takeaways-box {
        padding: 20px;
        margin: 20px -10px;
    }
    
    .key-takeaways-box h2 {
        font-size: 16px;
    }
}
/* ==========================================
   KEY TAKEAWAYS BOX (AI/SGE OPTIMIZATION)
   Add this to /assets/css/blog.css
   ========================================== */

.key-takeaways-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #0284c7;
    padding: 24px 28px;
    margin: 24px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.1);
}

.key-takeaways-box h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #0c4a6e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.key-takeaways-box h2 i {
    color: #0284c7;
    font-size: 16px;
}

.key-takeaways-box ul {
    margin: 0;
    padding-left: 24px;
    list-style: none;
}

.key-takeaways-box li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #0c4a6e;
    position: relative;
    padding-left: 8px;
}

.key-takeaways-box li:before {
    content: "✓";
    position: absolute;
    left: -20px;
    color: #0284c7;
    font-weight: bold;
    font-size: 16px;
}

.key-takeaways-box li:last-child {
    margin-bottom: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .key-takeaways-box {
        padding: 20px;
        margin: 20px -10px;
    }
    
    .key-takeaways-box h2 {
        font-size: 16px;
    }
}

/* ==========================================
   TOC ACTIVE STATE & ENGAGEMENT
   Add this to /assets/css/blog.css
   ========================================== */

.toc-link.active {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 600;
    border-left: 3px solid #3b82f6;
}

.toc-link {
    transition: all 0.2s ease;
}

.toc-link:hover {
    background: #f0f9ff;
    transform: translateX(4px);
}
/* ==========================================
   FAQ SECTION - ALWAYS OPEN (BEST FOR SEO 2026)
   Add this to /assets/css/blog.css
   ========================================== */

.faq-section {
    margin: 40px 0;
    padding: 32px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.faq-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-section h2 i {
    color: #3b82f6;
    font-size: 22px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    background: white;
    border-radius: 8px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.faq-question {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

.faq-answer {
    margin: 0;
}

.faq-answer p {
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
    font-size: 15px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .faq-section {
        padding: 24px 16px;
        margin: 32px 0;
    }
    
    .faq-section h2 {
        font-size: 20px;
    }
    
    .faq-question {
        font-size: 16px;
    }
    
    .faq-answer p {
        font-size: 14px;
    }
}

/* Print friendly */
@media print {
    .faq-section {
        background: white;
        border: 1px solid #ccc;
    }
}