/**
 * پالت انیمیشن‌های پیشرفته، جلوه‌های شیشه‌ای Glassmorphism و روانشناسی نور
 * سیستم پلتفرم ابرفروشگاه آلفا - استاندارد ۲۰۲۶
 */

/* ۱. استایل‌های پایه شیشه‌ای و سطوح مات */
.glass-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-panel-dark {
    background: rgba(18, 19, 22, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ۲. گرادیان‌های نوری و هاله‌های نور محیطی (Mesh Glow) */
.ambient-glow {
    position: relative;
}
.ambient-glow::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(25px);
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
}

/* ۳. انحنای نرم متوالی اپل (Squircle Effect) */
.squircle-card {
    border-radius: 1.5rem;
    corner-shape: squircle; /* برای مرورگرهای نسل آینده */
}

/* ۴. شبیه‌ساز برچسب هولوگرافیک لوکس */
.hologram-shimmer {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.08) 25%,
        rgba(255, 215, 0, 0.2) 50%,
        rgba(255, 255, 255, 0.08) 75%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 200%;
    animation: hologramMove 6s ease-in-out infinite;
}

@keyframes hologramMove {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* ۵. پالس ملایم هات‌اسپات‌های خرید سریع (Shoppable Hotspots) */
.hotspot-pulse {
    position: relative;
}
.hotspot-pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    animation: hotspotRipple 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

@keyframes hotspotRipple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* ۶. شناوری نرم المان‌های باارزش (Subtle Levitation) */
.soft-levitate {
    animation: levitate 5s ease-in-out infinite alternate;
}

@keyframes levitate {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-6px);
    }
}

/* ۷. مهار کامل فلش‌های صفحه و شتاب‌دهی GPU */
.gpu-accelerate {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ۸. سایه‌های نرم چندلایه‌ای Ambient */
.shadow-ambient {
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.03),
        0 12px 24px -4px rgba(0, 0, 0, 0.06),
        0 24px 48px -12px rgba(0, 0, 0, 0.04);
}

.shadow-ambient-hover:hover {
    box-shadow: 
        0 8px 12px -2px rgba(0, 0, 0, 0.05),
        0 20px 32px -4px rgba(0, 0, 0, 0.08),
        0 32px 64px -12px rgba(0, 0, 0, 0.08);
}