/* ============================================================
   دکمه قلب - بدون بوردر، بدون هاور، بدون افکت
   ============================================================ */
.fav-btn {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.fav-btn:focus,
.fav-btn:active,
.fav-btn:hover {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.fav-btn:disabled {
    cursor: wait;
    opacity: 0.6;
}

/* ---------- آیکون قلب ---------- */
.fav-btn .fav-icon {
    font-size: 22px;
    line-height: 1;
    display: inline-block;
    transition: color .2s ease, transform .15s ease;
    color: #787c82 !important;
    font-style: normal;
}

.fav-btn.is-favorite .fav-icon {
    color: #e63946 !important;
}

.fav-btn:hover .fav-icon {
    transform: scale(1.1);
}

.fav-btn.is-favorite:hover .fav-icon {
    color: #e63946 !important;
}

/* ============================================================
   Tooltip «افزودن به علاقه‌مندی» (هاور)
   ============================================================ */
.fav-btn .fav-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #212121;
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
    font-family: inherit;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 9999;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    direction: rtl;
}

.fav-btn .fav-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #212121;
}

.fav-btn:hover .fav-tooltip,
.fav-btn:focus .fav-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* در موبایل tooltip را نمایش نده (هاور وجود ندارد) */
@media (hover: none) {
    .fav-btn .fav-tooltip {
        display: none;
    }
}

/* ============================================================
   Toast / نوتیف
   ============================================================ */
.uf-toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    direction: rtl;
}

.uf-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #212121;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
    opacity: 0;
    transform: translateY(20px);
    animation: ufToastIn .3s ease forwards;
    pointer-events: auto;
    border: 1px solid rgba(255,255,255,.08);
}

.uf-toast.uf-toast-out {
    animation: ufToastOut .25s ease forwards;
}

.uf-toast .uf-toast-icon {
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.uf-toast.uf-toast-added .uf-toast-icon {
    color: #e63946;
}

.uf-toast.uf-toast-removed .uf-toast-icon {
    color: #b4b4b4;
}

.uf-toast .uf-toast-text {
    white-space: nowrap;
}

@keyframes ufToastIn {
    from { opacity: 0; transform: translateY(20px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ufToastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(20px) scale(.96); }
}

@media (max-width: 600px) {
    .uf-toast-container {
        bottom: 16px;
        left: 12px;
        right: 12px;
        transform: none;
        align-items: center;
    }
    .uf-toast {
        font-size: 13px;
        padding: 10px 16px;
        max-width: 100%;
    }
}

/* ============================================================
   لیست علاقمندی‌ها
   ============================================================ */
.fav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fav-list .fav-item {
    margin: 15px 0;
    padding: 0;
    border-radius: 50px;
    overflow: hidden;
}

.fav-list .fav-item-link {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 14px 20px;
    background: #333333;
    border-radius: 50px;
    text-decoration: none;
    color: #ffffff;
    transition: background 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.fav-list .fav-item-link:hover {
    background: #ffffff !important;
    color: #333333 !important;
    text-decoration: none;
}

.fav-list .fav-item-title {
    font-size: 15px;
    color: #ffffff;
    text-decoration: none;
}

.fav-list .fav-item-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 400;
    white-space: nowrap;
    text-decoration: none;
}

.fav-list .fav-item-view i {
    font-size: 1rem;
    color: #ffffff;
}

.fav-list .fav-item a:hover {
    text-decoration: none;
}

.fav-list .fav-item-link:hover .fav-item-title,
.fav-list .fav-item-link:hover .fav-item-view {
    font-weight: 500;
    text-decoration: none;
    color: #333 !important;
}

.fav-empty {
    color: #888;
    font-style: italic;
}

/* ============================================================
   شمارنده بازدید و کامنت
   ============================================================ */
.uf-views {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #787c82;
}

@media (max-width: 600px) {
    .uf-views { font-size: 14px; }
}

.uf-views-item,
.uf-comments-item {
    display: inline-flex;
    font-family: inherit;
    align-items: center;
    gap: 5px;
}

.uf-views-item i {
    font-size: 0px !important;
    color: #fff;
}

.uf-comments-item i {
    font-size: 0px !important;
    color: #fff;
}

.uf-views-sep {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: #787C82;
}