/* Styles pour la section "Lire aussi" sur le frontend */

.rar-read-also-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rar-section-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}

/*.rar-section-title::before {
    content: "📖";
    margin-right: 0.5rem;
    font-size: 1.1rem;
}
*/
.rar-articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

/* Article individuel */
.rar-article-item {
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;

}


.rar-article-title {
    margin: 0 0 0.5rem 0;
    font-size: 14px;
    line-height: 1.4;
}

.rar-article-title a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.rar-article-title a:hover {
    color: #005a87;
    text-decoration: underline;
}

.rar-article-excerpt {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rar-article-meta {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #888;
}

.rar-article-date {
    display: inline-flex;
    align-items: center;
}

.rar-article-date::before {
    content: "📅";
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .rar-read-also-section {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .rar-articles-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .rar-article-item {
        padding: 0.75rem;
    }
    
    .rar-section-title {
        font-size: 1.1rem;
    }
    
    .rar-article-title {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .rar-read-also-section {
        margin: 1rem 0;
        padding: 0.75rem;
    }
    
    .rar-article-item {
        padding: 0.5rem;
    }
    
    .rar-section-title {
        font-size: 1rem;
    }
}

/* Animations */
.rar-read-also-section {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rar-article-item {
    animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Variantes de couleurs pour différents thèmes */
.rar-read-also-section.theme-dark {
    background: #2d3748;
    border-left-color: #4299e1;
}

.rar-read-also-section.theme-dark .rar-section-title {
    color: #e2e8f0;
}

.rar-read-also-section.theme-dark .rar-article-item {
    background: #4a5568;
    border-color: #718096;
}

.rar-read-also-section.theme-dark .rar-article-title a {
    color: #63b3ed;
}

.rar-read-also-section.theme-dark .rar-article-title a:hover {
    color: #90cdf4;
}

.rar-read-also-section.theme-dark .rar-article-excerpt {
    color: #a0aec0;
}

.rar-read-also-section.theme-dark .rar-article-date {
    color: #718096;
}

/* Support pour les thèmes avec des couleurs personnalisées */
.rar-read-also-section.theme-custom {
    background: var(--rar-bg-color, #ffffff);
    border-left-color: var(--rar-accent-color, #61c419);
}

.rar-read-also-section.theme-custom .rar-section-title {
    color: var(--rar-title-color, #333);
}

.rar-read-also-section.theme-custom .rar-article-title a {
    color: var(--rar-link-color, #61c419);
}

.rar-read-also-section.theme-custom .rar-article-title a:hover {
    color: var(--rar-link-hover-color, #005a87);
}

/* Amélioration de l'accessibilité */
.rar-article-title a:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
    border-radius: 2px;
}



/* Support pour les préférences de réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
    .rar-read-also-section,
    .rar-article-item {
        animation: none;
    }
    
    .rar-article-item:hover {
        transform: none;
    }
}

/* Styles pour l'impression */
@media print {
    .rar-read-also-section {
        background: none;
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .rar-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .rar-article-item {
        box-shadow: none;
        border: 1px solid #eee;
    }
    
    .rar-article-title a {
        color: #000;
        text-decoration: underline;
    }
} 