/* ========================================
   Promo Banner Widget Styles
   ======================================== */

.wpb-promo-banner {
    display: flex;
    align-items: center;
    background-color: #1a1a2e;
    border-radius: 15px;
    padding: 20px 30px;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    direction: rtl;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.wpb-promo-banner:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Horizontal Style */
.wpb-promo-banner.wpb-horizontal {
    justify-content: space-between;
    gap: 30px;
}

/* Compact Style */
.wpb-promo-banner.wpb-compact {
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.wpb-promo-banner.wpb-compact .wpb-top-row {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* Icon Styles */
.wpb-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: #c8ff00;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    font-weight: 800;
    transition: all 0.3s ease;
}

.wpb-icon svg {
    width: 30px;
    height: 30px;
}

.wpb-promo-banner:hover .wpb-icon {
    transform: scale(1.05);
}

/* Content Styles */
.wpb-content {
    flex: 1;
}

.wpb-title {
    margin: 0 0 5px 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.wpb-description {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}

/* Timer Styles */
.wpb-timer {
    display: flex;
    gap: 10px;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.wpb-timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 45px;
}

.wpb-timer-number {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.wpb-timer-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    line-height: 1;
}

/* Compact Timer */
.wpb-compact .wpb-timer {
    width: 100%;
    justify-content: center;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.wpb-timer-item.wpb-pulse {
    animation: pulse 1s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 1024px) {
    .wpb-promo-banner.wpb-horizontal {
        gap: 20px;
        padding: 20px 25px;
    }
    
    .wpb-icon {
        width: 50px;
        height: 50px;
    }
    
    .wpb-icon svg {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 768px) {
    .wpb-promo-banner.wpb-horizontal {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .wpb-promo-banner.wpb-horizontal .wpb-timer {
        width: 100%;
        justify-content: center;
    }
    
    .wpb-title {
        font-size: 16px;
    }
    
    .wpb-description {
        font-size: 13px;
    }
    
    .wpb-timer {
        gap: 8px;
        padding: 10px 15px;
    }
    
    .wpb-timer-item {
        min-width: 40px;
    }
    
    .wpb-timer-number {
        font-size: 18px;
    }
    
    .wpb-timer-label {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .wpb-promo-banner {
        padding: 15px 20px;
    }
    
    .wpb-icon {
        width: 45px;
        height: 45px;
    }
    
    .wpb-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .wpb-title {
        font-size: 15px;
    }
    
    .wpb-description {
        font-size: 12px;
    }
    
    .wpb-timer {
        gap: 6px;
        padding: 8px 12px;
    }
    
    .wpb-timer-item {
        min-width: 35px;
    }
    
    .wpb-timer-number {
        font-size: 16px;
    }
    
    .wpb-timer-label {
        font-size: 9px;
    }
}

/* RTL Support */
[dir="rtl"] .wpb-promo-banner {
    direction: rtl;
}

[dir="ltr"] .wpb-promo-banner {
    direction: ltr;
}

/* ========================================
   CTA Style (النمط الثالث)
   ======================================== */

.wpb-promo-banner.wpb-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.wpb-left-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.wpb-right-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* ========================================
   CTA Button Styles
   ======================================== */

.wpb-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    background-color: #c8ff00;
    color: #1a1a2e;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(200, 255, 0, 0.3);
}

.wpb-cta-button:hover {
    background-color: #ffffff;
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 255, 0, 0.4);
}

.wpb-cta-button:active {
    transform: translateY(0);
}

.wpb-cta-icon-before,
.wpb-cta-icon-after {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.wpb-cta-icon-before svg,
.wpb-cta-icon-after svg {
    width: 16px;
    height: 16px;
}

/* CTA in Horizontal */
.wpb-horizontal .wpb-cta-button {
    flex-shrink: 0;
}

/* CTA in Compact */
.wpb-compact .wpb-cta-button {
    width: 100%;
    margin-top: 10px;
}

/* CTA in CTA Style */
.wpb-cta .wpb-cta-button {
    padding: 14px 35px;
    font-size: 16px;
}

/* ========================================
   Responsive for CTA Style
   ======================================== */

@media (max-width: 1024px) {
    .wpb-promo-banner.wpb-cta {
        gap: 20px;
    }
    
    .wpb-left-content {
        gap: 15px;
    }
    
    .wpb-right-content {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .wpb-promo-banner.wpb-cta {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .wpb-left-content {
        flex-direction: column;
        width: 100%;
    }
    
    .wpb-right-content {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .wpb-cta .wpb-timer {
        width: 100%;
        justify-content: center;
    }
    
    .wpb-cta .wpb-cta-button {
        width: 100%;
    }
    
    .wpb-horizontal .wpb-cta-button,
    .wpb-compact .wpb-cta-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .wpb-cta-button {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .wpb-cta .wpb-cta-button {
        padding: 12px 30px;
        font-size: 15px;
    }
}
