/* تصميم العداد التنازلي */
.countdown-section {
    background: #20a9f6;
    padding: 0.5rem 0;
    color: white;
    text-align: center;
    width: 100%;
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.countdown-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" width="100" height="100"/><rect fill="rgba(255,255,255,0.05)" width="50" height="50"/><rect fill="rgba(255,255,255,0.05)" width="50" height="50" x="50" y="50"/></svg>');
    background-size: 20px;
    opacity: 0.3;
    z-index: 0;
}

.countdown-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.countdown-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.countdown-title::after {
    content: "";
    display: block;
    width: 50%;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #ff9e40);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-value {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.countdown-value::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
    border-radius: 8px 8px 0 0;
}

.countdown-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    opacity: 0.8;
    font-weight: 500;
}

.countdown-separator {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 -0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.countdown-animation.pulse {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* تنسيق زر العروض */
.countdown-button-container {
    margin-top: 0.8rem;
    padding-bottom: 0.2rem;
}

.countdown-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.countdown-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.countdown-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: white;
}

.countdown-button i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
    position: relative;
    top: -1px;
}

/* تصميم متجاوب للأجهزة المحمولة */
@media (max-width: 768px) {
    .countdown-title {
        font-size: 1.5rem;
    }
    
    .countdown-box {
        min-width: 60px;
    }
    
    .countdown-value {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .countdown-separator {
        font-size: 1.8rem;
        margin: 0 -0.7rem;
    }
}

@media (max-width: 480px) {
    .countdown-timer {
        gap: 0.5rem;
    }
    
    .countdown-box {
        min-width: 50px;
    }
    
    .countdown-value {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
    
    .countdown-separator {
        font-size: 1.5rem;
        margin: 0 -0.8rem;
    }
}
