/* ===========================================================================
   استایل ابزارک‌های سایدبار (Qluch Widgets)
   طراحی مینیمال، هماهنگ با پالت رنگی تم (نارنجی #da552f، خاکستری‌ها،
   حاشیه‌های #e2e8f0 و شعاع گردی ۱۲px مطابق style.css اصلی تم)
   =========================================================================== */

.qluch-widget { margin-bottom: 24px; }
.qluch-widget:last-child { margin-bottom: 0; }

.qluch-widget-inner { display: flex; flex-direction: column; gap: 12px; }

.qluch-widget-head { display: flex; align-items: flex-start; gap: 10px; }

.qluch-widget-icon {
    flex-shrink: 0;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 9px;
    background: #fff5f2;
    color: #da552f;
}
.qluch-widget-icon svg { width: 16px; height: 16px; }

.qluch-widget-headtext { flex: 1; min-width: 0; }

.qluch-widget-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
}

.qluch-widget-desc {
    margin: 3px 0 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: #718096;
}

.qluch-widget-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; flex-direction: column;
    gap: 2px;
}

.qluch-widget-item + .qluch-widget-item { border-top: 1px solid #f1f3f5; }

.qluch-widget-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 2px;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s ease;
}
.qluch-widget-row:hover { background: #f8f9fa; }

.qluch-widget-thumb {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 9px;
    overflow: hidden;
    background: #f1f3f5;
    display: flex; align-items: center; justify-content: center;
}
.qluch-widget-thumb-img { width: 36px; height: 36px; object-fit: cover; display: block; }
.qluch-widget-thumb-fallback {
    font-size: 14px; font-weight: 700; color: #a0aec0;
}

.qluch-widget-row-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qluch-widget-row-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.qluch-widget-row-excerpt {
    display: block;
    font-size: 12px;
    color: #a0aec0;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qluch-widget-row-comment {
    font-size: 12.5px;
    color: #718096;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.qluch-widget-row-meta {
    font-size: 11.5px;
    color: #a0aec0;
}

.qluch-widget-row-meta--author {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 1px;
}

.qluch-widget-avatar { flex-shrink: 0; display: block; }

.qluch-widget-version-badge {
    font-size: 11px;
    font-weight: 600;
    color: #da552f;
    background: #fff5f2;
    padding: 1px 7px;
    border-radius: 20px;
    white-space: nowrap;
}

.qluch-widget-empty {
    margin: 0;
    font-size: 12.5px;
    color: #a0aec0;
    text-align: center;
    padding: 14px 5px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* پیشخوان: کادر دورِ فیلد آیکون SVG کمی جمع و جورتر باشد */
.widget-content textarea[style*="monospace"] { font-size: 12px; }
