/* ====================================================
   🎨 Dynamic Colors - تأثيرات الانتقال السلسة
   ==================================================== */

/* انتقال سلس لكل تغيير لون */
body.tc-dynamic-colors-active * {
    transition: background-color 0.8s ease,
                border-color 0.8s ease,
                box-shadow 0.8s ease,
                color 0.5s ease;
}

/* تأثير "fade in" عند تحميل الألوان */
body.tc-dynamic-colors-active::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
        var(--tc-dynamic-primary, #FFA836),
        var(--tc-dynamic-secondary, #ff5722));
    z-index: 999999;
    animation: tc-color-loaded 2s ease-out;
    pointer-events: none;
}

@keyframes tc-color-loaded {
    0% { transform: scaleX(0); transform-origin: right; }
    50% { transform: scaleX(1); transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: left; }
}

/* مؤشر "الألوان من البوستر" */
body.tc-dynamic-colors-active .ml-single-hero::after {
    content: '🎨';
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 16px;
    opacity: 0.4;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    padding: 6px 10px;
    border-radius: 20px;
    z-index: 10;
    pointer-events: none;
    animation: tc-color-pulse 3s ease-in-out infinite;
}

@keyframes tc-color-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}
