/* ============================================
   /components/UpdatePage.css
   استایل دکمه بروزرسانی
   نسخه: 1.1.0 — بزرگ‌تر شدن آیکون در موبایل
   ============================================ */

.TopIcons .update-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, transform 0.2s ease;
}

.TopIcons .update-btn:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.TopIcons .update-btn:active {
    transform: scale(0.92);
}

.TopIcons .update-btn img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
    pointer-events: none;
}

/* حالت تاریک */
html.theme-dark .TopIcons .update-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ===== واکنش‌گرایی برای موبایل ===== */
@media (max-width: 767px) {
    .TopIcons .update-btn {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0.2rem; /* پدینگ کم‌تر تا آیکون بزرگ‌تر دیده شود */
    }
    
    .TopIcons .update-btn img {
        width: 30px !important; /* از 26px به 30px افزایش یافت */
        height: 30px !important;
    }
}

/* ===== تبلت ===== */
@media (min-width: 768px) and (max-width: 1023px) {
    .TopIcons .update-btn img {
        width: 28px !important;
        height: 28px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .TopIcons .update-btn { transition: none; }
    .TopIcons .update-btn:hover { transform: none; }
}