/* Coupon Card Enhancements */

/* Featured/Popular Labels */
.coupon-card {
    position: relative;
    overflow: visible;
}

.coupon-label {
    position: absolute;
    top: -5px;
    right: 15px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: labelPulse 2s ease-in-out infinite;
}

.coupon-label.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.coupon-label.popular {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.coupon-label.exclusive {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
}

.coupon-label.hot {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #fff;
}

.coupon-label i {
    margin-right: 4px;
    font-size: 13px;
}

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

/* Countdown Timer */
.coupon-countdown {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 5;
    animation: timerGlow 2s ease-in-out infinite;
}

.coupon-countdown.urgent {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    animation: timerUrgent 1s ease-in-out infinite;
}

.coupon-countdown.expired {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    animation: none;
}

.countdown-icon {
    display: inline-block;
    margin-right: 6px;
    animation: timerTick 1s ease-in-out infinite;
}

.countdown-time {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.countdown-label {
    font-size: 11px;
    opacity: 0.9;
    margin-right: 4px;
}

@keyframes timerGlow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.6);
    }
}

@keyframes timerUrgent {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(245, 87, 108, 0.4);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 4px 20px rgba(245, 87, 108, 0.8);
        transform: translateY(-2px);
    }
}

@keyframes timerTick {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

/* Cloud animation for countdown */
.countdown-cloud {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 30px;
    opacity: 0;
    animation: cloudFloat 3s ease-in-out infinite;
}

.countdown-cloud::before,
.countdown-cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.countdown-cloud::before {
    width: 30px;
    height: 30px;
    top: 0;
    left: 10px;
}

.countdown-cloud::after {
    width: 40px;
    height: 20px;
    top: 10px;
    left: 0;
}

@keyframes cloudFloat {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.6;
        transform: translateX(-50%) translateY(-10px);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .coupon-label {
        font-size: 10px;
        padding: 4px 12px;
        right: 10px;
    }
    
    .coupon-countdown {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .countdown-time {
        font-size: 12px;
    }
}

/* Slider rounded pill corners */
.slider-rounded-pill {
    border-radius: 50px !important;
    overflow: hidden;
}

.slider-rounded-pill img {
    border-radius: 50px !important;
}

/* Slider container with pill style */
.slider-container-pill .slider-item {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slider-container-pill .slider-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.slider-container-pill .slider-item img {
    border-radius: 50px;
}
