/*
 * Barayande Didgah Frontend Styles - vYourVersion (Live Icon Animation)
 */

/* 
 * --- تغییر ۱: تعریف فریم‌های انیمیشن ---
*/
@keyframes ai-sparkle-effect {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(15deg);
    }
}

.bd-summary-box {
    background: linear-gradient(105deg, #f7f9fc 0%, #edf2f7 100%);
    border: 1px solid #e2e8f0;
    padding: 20px 20px;
    
    /* <<< اصلاح شد: حذف مارجین چپ و راست برای تمام عرض شدن >>> */
    /* قبلاً: margin: 25px 25px; */
    margin: 25px 0; 
    
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
}

.bd-summary-box:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.bd-summary-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap; 
}

.bd-summary-box-title-wrapper {
    display: flex;
    align-items: center;
}

.bd-summary-box-header .bd-icon {
    margin-left: 12px;
    color: #4A90E2;
    flex-shrink: 0;
    animation: ai-sparkle-effect 4s ease-in-out infinite;
}

.bd-summary-box-header .bd-icon svg {
    width: 24px;
    height: 24px;
}

.bd-summary-box-header .bd-title {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
}

.bd-summary-box-header .bd-subtitle {
    font-size: 12px;
    color: #718096;
    font-style: italic;
}

.bd-summary-box-content p {
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

/* استایل موبایل */
@media (max-width: 768px) {
    .bd-summary-box {
        text-align: center;
        padding: 20px 20px;
        
        /* <<< اصلاح شد: در موبایل هم مارجین چپ و راست حذف شد >>> */
        /* قبلاً: margin: 25px 25px; */
        margin: 20px 0;
    }

    .bd-summary-box-header {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }
}

/* ... کدهای قبلی سر جای خود باشند ... */

/* استایل کانتینر تگ‌ها */
.bd-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
}

/* استایل کلی تگ (بدنه خاکستری) */
.bd-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px; /* فونت ریز و شیک */
    font-weight: 500;
    color: #4b5563; /* رنگ متن خاکستری تیره */
    background-color: #f3f4f6; /* پس‌زمینه خاکستری روشن */
    padding: 4px 12px 4px 4px; /* پدینگ تنظیم شده برای آیکون */
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    cursor: default;
}

/* هاور */
.bd-tag:hover {
    background-color: #e5e7eb;
}

/* استایل مشترک آیکون‌ها (حذف وابستگی به Dashicons) */
.bd-tag .dashicons {
    font-size: 14px;
    width: 20px;
    height: 20px;
    display: inline-block; /* تغییر از flex به inline-block */
    border-radius: 50%;
    color: transparent; /* متن آیکون مخفی شود */
    flex-shrink: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px; /* اندازه آیکون داخلی */
}

/* آیکون مثبت (سبز با تیک سفید) */
.bd-tag.positive .dashicons {
    background-color: #10b981;
    /* آیکون تیک SVG (انکود شده) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

/* آیکون منفی (قرمز با ضربدر سفید) */
.bd-tag.negative .dashicons {
    background-color: #ef4444;
    /* آیکون ضربدر SVG (انکود شده) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
}