/**
 * Frontend Countdown Styles
 */
.etc-countdown-wrapper {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.etc-countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    margin: 0 auto;
}

.etc-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 10px;
}

.etc-countdown-number {
    display: block;
    font-weight: bold;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.etc-countdown-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    font-size: 0.9em;
}

.etc-countdown-expired,
.etc-countdown-expired-message {
    text-align: center;
    padding: 20px;
}

/* Animations */
.etc-animation-fade .etc-countdown-item {
    animation: etcFadeIn 0.5s ease-in;
}

@keyframes etcFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.etc-animation-slide .etc-countdown-item {
    animation: etcSlideIn 0.5s ease-out;
}

@keyframes etcSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.etc-animation-pulse .etc-countdown-number {
    animation: etcPulse 2s ease-in-out infinite;
}

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

.etc-countdown-number.etc-updated {
    animation: etcUpdate 0.3s ease;
}

@keyframes etcUpdate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        color: inherit;
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .etc-countdown-container {
        flex-direction: row;
    }
    
    .etc-countdown-item {
        min-width: 60px;
        padding: 8px;
    }
    
    .etc-countdown-number {
        font-size: 0.8em !important;
    }
    
    .etc-countdown-label {
        font-size: 0.75em;
    }
}

@media (max-width: 480px) {
    .etc-countdown-item {
        min-width: 50px;
        padding: 5px;
    }
}

/* RTL Support */
.rtl .etc-countdown-container {
    direction: rtl;
}

