/* assets/css/floating-filter.css */

.fanuus-ff-wrap {
    max-width: 900px; /* افزایش عرض کانتینر برای جا دادن کادرها */
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.fanuus-ff-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
}

/* کانتینر اصلی برای Dropdownها و علامت + */
#fanuus-conditions-container {
    display: flex;
    flex-wrap: wrap; 
    align-items: center;
    
    /* تنظیم فاصله افقی و عمودی برای Dropdown و جداکننده */
    gap: 15px 25px; /* row-gap (عمودی) column-gap (افقی) */
    
    margin-top: 10px;
    padding-bottom: 10px; 
}

/* استایل Dropdown‌های تکی */
.fanuus-tags-dropdown {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    
    /* تنظیم عرض ثابت برای تساوی اندازه‌ها */
    width: 220px; 
    
    height: 40px; 
    box-sizing: border-box; 
}

/* استایل جداکننده "+" */
.fanuus-and-separator {
    font-weight: 600;
    color: #0073aa; 
    white-space: nowrap; 
    font-size: 1.2em;
}

/* ناحیه نتایج */
.fanuus-results {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* استایل تیتر نتایج پویا */
.fanuus-results-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa; 
    color: #333;
}

.fanuus-note, .fanuus-loading, .fanuus-error {
    text-align: center;
    padding: 15px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    color: #555;
}

/* Styles for the book item results (نمایش عکس و متن کنار هم) */
.book-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s;
}

.book-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.book-link-wrap {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 10px;
}

.book-thumbnail-wrap {
    flex: 0 0 80px; 
    margin-left: 15px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
}

.book-thumbnail-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.book-details-wrap {
    flex-grow: 1;
}

.book-details-wrap h4 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: #0073aa;
}

.book-concepts {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

.book-concepts strong {
    font-weight: 600;
    color: #333;
}