/* ======================================== 
   Ramadan Banner - رمضان كريم 
   يمكن حذف هذا الملف بالكامل بعد رمضان 
======================================== */

/* Main Banner Container */
.discount-banner {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #1a472a 0%, #2d5f3f 50%, #1a472a 100%);
    color: white;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1300;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-family: 'Cairo', sans-serif;
    overflow: hidden;
    border-bottom: 3px solid #fac564;
    margin-top: 70px;
}

/* Ramadan Background Image */
.ramadan-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.ramadan-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.2);
}

/* Hide banner when closed */
.discount-banner.hidden {
    display: none !important;
}

/* Content Container */
.discount-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Icon - Ramadan Image */
.discount-icon-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    animation: glow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    align-self: stretch;
}

/* Legacy icon support */
.discount-icon {
    font-size: 28px;
    animation: glow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

@keyframes glow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.9));
    }
}

/* Text */
.discount-text {
    font-size: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    color: #ffd700;
}

/* Timer */
.discount-timer {
    background: rgba(250, 197, 100, 0.25);
    padding: 4px 12px;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #ffd700;
    border: 2px solid rgba(255, 215, 0, 0.4);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* CTA Button */
.discount-cta {
    background: linear-gradient(135deg, #fac564 0%, #f8b739 100%);
    color: #1a472a;
    padding: 8px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3), 0 4px 15px rgba(250, 197, 100, 0.6);
    border: 3px solid #ffd700;
    position: relative;
    animation: glow-box 2s ease-in-out infinite;
}

@keyframes glow-box {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3), 0 4px 15px rgba(250, 197, 100, 0.6);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.5), 0 6px 25px rgba(250, 197, 100, 0.8);
    }
}

.discount-cta:hover {
    background: linear-gradient(135deg, #f8b739 0%, #fac564 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.5), 0 8px 30px rgba(250, 197, 100, 0.9);
    text-decoration: none;
    color: #000;
}

/* Close Button */
.discount-close {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 22px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    font-weight: bold;
    line-height: 1;
}

.discount-close:hover {
    background: rgba(220, 53, 69, 0.9);
    border-color: #fff;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .discount-banner {
        padding: 8px 15px;
        flex-direction: row;
        gap: 12px;
        align-items: center;
        margin-top: 70px;
        z-index: 1300;
    }

    .discount-content {
        flex-direction: row;
        gap: 12px;
        text-align: right;
        align-items: center;
    }

    .discount-icon-img {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .discount-icon {
        font-size: 22px;
    }

    .discount-text {
        font-size: 13px;
        line-height: 1.4;
        flex: 1;
    }

    .discount-cta {
        padding: 8px 18px;
        font-size: 14px;
        font-weight: 800;
        background: linear-gradient(135deg, #ffd700 0%, #fac564 100%);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
        animation: pulse-button 2s infinite;
    }

    @keyframes pulse-button {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.05);
        }
    }

    .discount-close {
        position: absolute;
        top: 5px;
        left: 5px;
        width: 28px;
        height: 28px;
        font-size: 18px;
        margin-right: 0;
        background: rgba(0, 0, 0, 0.5);
        border: 2px solid rgba(255, 255, 255, 0.3);
        color: #fff;
        font-weight: bold;
        line-height: 1;
    }

    .discount-close:hover {
        background: rgba(255, 0, 0, 0.7);
        border-color: #fff;
    }
}

@media (max-width: 480px) {
    .discount-content {
        flex-wrap: wrap;
        justify-content: center;
    }

    .discount-text {
        font-size: 13px;
    }

    .discount-timer {
        font-size: 11px;
        padding: 3px 8px;
    }

    .discount-cta {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
}