﻿
/* فونت وزیر محلی – هیچ‌وقت خطا نمی‌ده */
@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn[wght].ttf') format('truetype-variations');
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'IranNastaliq';
    src: url('/fonts/IranNastaliq.ttf') format('truetype');
    font-display: swap;
}

body, .mud-typography, * {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}








/* انیمیشن نرم ورود کارت‌ها */
/*.product-card-animated {
    animation: productCardEnter 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes productCardEnter {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    70% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}*/

/* هور effect روی hover */
/*.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    overflow: hidden;
}

    .product-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 12px 40px rgba(94,53,177,0.25) !important;
    }*/

/*//-----------------------------------------------------------------------*/

/* منوی کشویی فیلتر موبایل - اصلاح‌شده */
.mobile-filter-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1400;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

    .mobile-filter-drawer.show {
        transform: translateY(0);
    }

/* دستگیره کشویی */
.drag-handle {
    width: 40px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin: 0 auto 16px;
}

/* انیمیشن کارت‌ها - بهبودیافته */
.product-card-animated {
    animation: productCardEnter 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
    opacity: 0;
    transform: translateY(24px);
}

@keyframes productCardEnter {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }

    60% {
        opacity: 0.9;
        transform: translateY(-4px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* هاور کارت */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    overflow: hidden;
}

    .product-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 12px 40px rgba(94,53,177,0.25) !important;
    }

/* استایل سایدبار */
.filter-sidebar {
    position: sticky;
    top: 20px;
}

/*//-----------------------------------------------------------------------*/

/* در wwwroot/css/app.css یا site.css */
.mud-snackbar {
    border-radius: 12px !important;
    font-family: 'IRANSans', 'Tahoma', sans-serif;
}

.mud-snackbar-content-message {
    font-size: 0.9rem;
}
/*//-----------------------------------------------------------------------*/

/* Media viewer responsive styles */
.media-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

video, audio {
    max-width: 100%;
    outline: none;
}

/* Mobile optimizations */
@media (max-width: 600px) {
    .mud-dialog .mud-dialog-content {
        padding: 12px !important;
    }

    .mud-card {
        margin-bottom: 1rem !important;
    }

    .mud-card-media > * {
        min-height: 180px;
    }

    video {
        max-height: 200px !important;
    }
}
/*//-----------------------------------------------------------------------*/
/*//----------------------------- استایلهای آپلود و نمایش دلنوشته ها --------*/

/* Mobile-first responsive */
@media (max-width: 768px) {
    .mud-tabs-toolbar {
        flex-wrap: wrap;
    }

    .mud-tab {
        flex: 1 0 50%;
        font-size: 0.85rem;
    }

    .rounded-3xl {
        border-radius: 16px !important;
    }
}

/* Hover effects */
.hover-shadow:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading skeleton */
.mud-skeleton {
    border-radius: 12px;
}

/*//-----------------------------------------------------------------------*/





/*//-----------------------------------------------------------------------*/
