/* ================ استایل کامل تایم‌لاین با پیشوند bb- ================ */

.bb-timeline-container {
    width: 100%;
    margin: 0 auto;
    padding: 1%;
    direction: rtl;
    box-sizing: border-box;
}

/* بلاک تایم‌لاین */
.bb-timeline-block {
    margin: 20px 10px;
    background: #fbfbfb;
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
}

.bb-timeline-block.hidden {
    display: none !important; /* important برای اطمینان از مخفی شدن */
}

/* محتوای تایم‌لاین */
.bb-timeline-content {
    padding: 15px 15px;
}

/* هدر تایم‌لاین */
.bb-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* نوع خبر */
.bb-timeline-type {
    display: flex;
    align-items: center;
    font-family: 'PeydaWebVF', sans-serif;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    padding: 2px 15px;
    border-radius: 5px;
}

/* آیکون نوع خبر */
.bb-type-icon-wrapper {
    width: 20px;
    height: 20px;
    margin-left: 1px;
    margin-right: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.bb-type-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* تاریخ خبر */
.bb-timeline-date {
    font-size: 13px;
    color: #777;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'IRANYekanXVF', sans-serif;
}

/* متن داخل تایم‌لاین */
.bb-timeline-content .bb-short-text,
.bb-timeline-content .bb-full-text,
.bb-timeline-content div {
    font-size: 15px;
    line-height: 2;
    color: #777b83;
    margin: 0;
    font-family: 'IRANYekanXVF', sans-serif;
}
/* برای اینکه تگ p هم استایل بگیرد */
.bb-timeline-content p {
    font-size: 15px;
    line-height: 2;
    color: #777b83;
    margin: 0;
    font-family: 'IRANYekanXVF', sans-serif;
}


/* رنگ‌بندی انواع خبر */
.bb-news-normal .bb-timeline-type, .bb-news-normal .bb-type-icon-wrapper {
    background: #4CAF50;
}
.bb-news-important .bb-timeline-type, .bb-news-important .bb-type-icon-wrapper {
    background: #ffb000;
}
.bb-news-urgent .bb-timeline-type, .bb-news-urgent .bb-type-icon-wrapper {
    background: #e70003;
}

/* افکت هاور */
.bb-news-normal:hover {
    box-shadow: inset 0 0 0 2px #4CAF50;
}
.bb-news-important:hover {
    box-shadow: inset 0 0 0 2px #FF9800;
}
.bb-news-urgent:hover {
    box-shadow: inset 0 0 0 2px #F44336;
}

/* نگهدارنده دکمه "کامل بخوانید" برای وسط‌چینی */
.bb-timeline-button-wrapper {
    text-align: center;
    width: 100%;
    margin-top: 15px;
}

/* استایل دکمه "کامل بخوانید" / "بستن" */
.bb-read-more-btn {
    font-family: 'IRANYekanXVF', sans-serif;
    font-size: 13px;
    color: #777;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 8px 18px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    font-weight: normal;
    display: inline-block;
    transition: all 0.2s ease-in-out;
}
.bb-read-more-btn:hover {
    background-color: #e9e9e9;
    border-color: #ccc;
    color: #333;
}
.bb-read-more-btn.bb-is-open {
    background-color: #eaeaea;
    color: #555;
    border-color: #bbb;
}

/* نگهدارنده دکمه "خبر های قدیمی تر" */
.bb-timeline-load-more {
    text-align: center;
    margin: 20px 0;
}

/* استایل دکمه "خبر های قدیمی تر" */
#bb-load-more-timeline {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background: #4CAF50;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'PeydaWebVF', sans-serif;
}

/* نمایش پیام تایم‌لاین خالی */
.bb-timeline-empty {
    text-align: center;
    padding: 30px;
    font-size: 16px;
    color: #777;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px auto;
    width: 96%;
    font-family: 'IRANYekanXVF', sans-serif;
}

/* ================ پایان استایل تایم‌لاین ================ */


/* استایل مشترک برای متن قابل کپی شدن */
.copyable, .copyable-wallet {
    border: 1px solid #c7cac4; /* حاشیه خاکستری */
    background-color: #f8f8f8; /* پس‌زمینه خاکستری روشن */
    padding: 0 28px 0 10px; /* فاصله داخلی */
    margin-top: 10px; /* فاصله خارجی از بالا */
    margin-bottom: 10px; /* فاصله خارجی از پایین */
    margin-left: 4px; /* فاصله داخلی از چپ */
    margin-right: 0px; /* فاصله داخلی از راست */
    border-radius: 4px; /* گوشه‌های گرد */
    display: inline-flex; /* استفاده از Flexbox برای افقی و عمودی وسط کردن */
    align-items: center; /* هم‌راستایی عمودی */
    justify-content: center; /* هم‌راستایی افقی */
    font-family: 'IRANYekanXVF', sans-serif; /* انتخاب فونت */
    font-size: 0.85rem; /* اندازه فونت */
    font-weight: bold; /* وزن فونت بولد */
    cursor: pointer; /* تغییر شکل نشانگر به دست */
    height: 35px; /* ارتفاع ثابت */
    position: relative; /* موقعیت نسبی برای آیکن */
    line-height: 35px; /* تنظیم فاصله بین خطوط برای وسط قرار دادن متن عمودی */
}

/* استایل تغییر رنگ پس‌زمینه هنگام هاور */
.copyable:hover, .copyable-wallet:hover {
    background-color: #f3f3f3; /* پس‌زمینه تیره‌تر هنگام هاور */
}

/* استایل آیکن کپی */
.copyable::after, .copyable-wallet::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%); /* مرکز کردن عمودی */
    width: 18px; /* عرض آیکن */
    height: 18px; /* ارتفاع آیکن */
    background-image: url('/wp-content/themes/hello-elementor-child/themes-img/copy-ico.svg'); /* بارگذاری آیکن */
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer; /* تغییر شکل نشانگر به دست */
}

/* تغییر حالت آیکن هنگام هاور */
.copyable:hover::after, .copyable-wallet:hover::after {
    filter: grayscale(0) brightness(0) saturate(100%) contrast(100%) opacity(0.8) hue-rotate(0deg) invert(0);
}

/* استایل اختصاصی برای .copyable */
.copyable {
    display: inline-block; /* نمایش به صورت بلوک داخلی */
}

/* استایل اختصاصی برای .copyable-wallet */
.copyable-wallet {
    display: inline-flex; /* استفاده از Flexbox */
    align-items: center; /* هم‌راستایی عمودی */
    line-height: 35px; /* تنظیم فاصله بین خطوط برای وسط قرار دادن متن عمودی */
}

/* استایل برای باکس ارز */
.currency-box {
    border: 1px solid #ada082;
    background-color: #b0a68426;
    color: #7a7a7a;
    padding: 0 15px;
    margin: 0 0 15px 15px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'IRANYekanXVF', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    height: 35px;
}

/* استایل آیکن ارز */
.currency-icon {
    width: 15px;
    height: 15px;
    margin-right: 5px;
}

/* استایل برای کانتینر باکس کیف پول */
.wallet-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    direction: ltr;
    height: 35px; /* ارتفاع باکس برابر با سایر قسمت‌ها */
    margin-bottom: 10px; /* فاصله خارجی بین کانتینرها */
}

.qr-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.qr-tooltip .qr-code {
    visibility: hidden;
    width: 120px;
    height: 120px;
    position: absolute;
    top: -140px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: visibility 0.2s ease-in-out;
}

.qr-tooltip:hover .qr-code {
    visibility: visible;
}

/* استایل پیام کپی شد! */
.copy-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* مرکز صفحه */
    background-color: #e70003c4; /* قرمز */
    color: #f8f8f8;
    padding: 10px 50px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 800;
    z-index: 9999;
    display: block;
    font-family: 'PeydaWebVF', sans-serif;
}

/* استایل فقط برای دکمه‌های ACF */
a.acf-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'PeydaWebVF', sans-serif !important;
    padding: 1px 1px 0px 6px;
    background-color: #E8F5E9;
    border: 1px solid #00b67a;
    color: #00b67a;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
    margin: 5px;
    min-width: 50px;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* استایل آیکن SVG فقط برای دکمه‌های ACF */
a.acf-download-btn .download-icon {
    width: 16px;
    height: 16px;
    margin: 0 5px;
    vertical-align: middle;
    transition: filter 0.3s ease;
}

/* هاور کردن فقط برای دکمه‌های ACF */
a.acf-download-btn:hover {
    background-color: #00b67a;
    border-color: #009262;
    color: #ffffff;
}

/* سفید کردن آیکن موقع هاور فقط برای دکمه‌های ACF */
a.acf-download-btn:hover .download-icon {
    filter: brightness(0) invert(1); /* تبدیل به سفید */
}

/* ریسپانسیو کردن فقط برای دکمه‌های ACF */
@media (max-width: 768px) {
    a.acf-download-btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}