/**
 * استایل‌های تیک آبی تایید فروشنده
 * @version 2.2.0
 */

/* تیک آبی کنار نام */
.tsvaye-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #1DA1F2, #0d8bd9);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    margin-right: 4px;
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(29, 161, 242, 0.3);
}

.tsvaye-verified-badge-large {
    width: 24px;
    height: 24px;
    font-size: 14px;
}

/* تیک آبی روی تصویر پروفایل - مثل اینستاگرام و تلگرام */
.tsvaye-verified-profile-badge {
    position: absolute;
    bottom: -4px;
    left: -4px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1DA1F2, #0d8bd9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    font-weight: bold;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(29, 161, 242, 0.6), 0 0 0 2px rgba(29, 161, 242, 0.3);
    animation: tsvaye-badge-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

@keyframes tsvaye-badge-pop {
    0% { 
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(0deg);
    }
    100% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* wrapper برای تصاویر */
.tsvaye-verified-profile-badge-wrapper {
    position: relative;
    display: inline-block;
}

/* برای تصاویر مختلف */
.dokan-seller-thumbnail {
    position: relative;
    display: inline-block;
}

.seller-profile-img-wrapper {
    position: relative;
    display: inline-block;
}

.seller-details .seller-profile-img {
    position: relative;
    display: inline-block;
}

/* تصویر آواتار کاربر در صفحات مختلف */
.dokan-seller-title-area .seller-avatar,
.seller-product-info .seller-avatar,
.woocommerce .single-product .product-meta .seller-avatar,
.product-card .seller-avatar {
    position: relative;
    display: inline-block;
}

/* شفاف کردن پس‌زمینه تصویر برای تیک */
.tsvaye-verified-profile-badge-wrapper img {
    border-radius: 50%;
}

/* پشتیبانی از حالت profile_img دکان */
.profile_img {
    position: relative;
    display: inline-block;
}

.profile_img .tsvaye-verified-profile-badge-wrapper {
    position: relative;
    display: inline-block;
}

/* اطمینان از اینکه تیک روی تمام اندازه‌های تصویر صحیح است */
.profile_img .tsvaye-verified-profile-badge {
    bottom: -6px;
    left: -6px;
    width: 36px;
    height: 36px;
    font-size: 20px;
}

/* پشتیبانی برای کمپوننت‌های مختلف */
[class*="profile"] {
    position: relative;
}

[class*="seller"] {
    position: relative;
}

[class*="vendor"] {
    position: relative;
}

[class*="author"] {
    position: relative;
}

/* بهینه‌سازی برای دستگاه‌های مختلف */
@media (max-width: 768px) {
    .tsvaye-verified-profile-badge {
        width: 28px;
        height: 28px;
        font-size: 16px;
        bottom: -2px;
        left: -2px;
    }

    .profile_img .tsvaye-verified-profile-badge {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

/* جلوگیری از تغییرات نامطلوب */
.tsvaye-verified-profile-badge::after,
.tsvaye-verified-profile-badge::before {
    content: none;
}

/* سازگاری با Font Awesome و ایکون‌های دیگر */
.profile_img {
    position: relative;
    display: inline-block;
}

.profile_img .tsvaye-verified-profile-badge-wrapper {
    position: relative;
    display: inline-block;
}

/* اطمینان از اینکه badge در بالای همه چیز نمایش یابد */
.profile_img .tsvaye-verified-profile-badge {
    z-index: 100;
}
