﻿/* ===============================
   🌈 شريط علوي متدرج
================================== */
.grad-bar {
    height: 4px;
    background: linear-gradient(90deg, #FFD54F, #4CAF50, #009688);
    background-size: 300% 100%;
    animation: gradAnim 8s linear infinite;
}

@keyframes gradAnim {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ===============================
   📢 شريط الإعلان
================================== */
.promo-banner {
    background: linear-gradient(90deg, #009688, #4CAF50);
    padding: 12px 20px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #07706D;
    /* ✨ ظهور متدرج */
    opacity: 0;
    transform: translateY(-15px);
    animation: fadeUp 1.5s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* النص المتغير */
.animated-text {
    animation: zoomText 6s ease-in-out infinite alternate;
}

@keyframes zoomText {
    0%, 100% {
        font-size: 18px;
        color: #fff;
    }

    50% {
        font-size: 22px;
        color: #FFD700;
    }
}

/* العداد */
.promo-countdown {
    background: rgba(0,0,0,0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
    font-family: monospace;
    animation: fadeIn 2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===============================
   🌟 أيقونات متحركة بجانب الإعلان
================================== */
.icons-rotate {
    display: inline-flex;
    gap: 12px;
    margin-left: 15px;
}

    .icons-rotate .icon {
        font-size: 26px;
        display: inline-block;
    }

        /* حركات متنوعة وبطيئة */
        .icons-rotate .icon:nth-child(1) {
            animation: spinIcon 6s linear infinite;
            color: #FFD700;
        }

        .icons-rotate .icon:nth-child(2) {
            animation: bounceIcon 3s infinite;
            color: #FF4081;
        }

        .icons-rotate .icon:nth-child(3) {
            animation: pulseIcon 4s infinite;
            color: #4CAF50;
        }

        .icons-rotate .icon:nth-child(4) {
            animation: swingIcon 5s infinite ease-in-out;
            color: #2196F3;
        }

/* Keyframes */
@keyframes spinIcon {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

@keyframes bounceIcon {
    0%,100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

@keyframes pulseIcon {
    0%,100% {
        transform: scale(1);
        opacity: 1
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7
    }
}

@keyframes swingIcon {
    0% {
        transform: rotate(0)
    }

    25% {
        transform: rotate(10deg)
    }

    50% {
        transform: rotate(-10deg)
    }

    75% {
        transform: rotate(6deg)
    }

    100% {
        transform: rotate(0)
    }
}

/* ===============================
   📱 موبايل
================================== */
@media (max-width: 768px) {
    .promo-banner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .icons-rotate {
        justify-content: center;
        margin: 8px 0;
    }
}
