/* General Styles */
.countdown-timer-wrapper {
    position: relative;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.countdown-timer.view-block {
    flex-direction: row;
}

.countdown-timer.view-inline {
    display: inline-flex;
}

/* Timer Unit Styles */
.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
    min-width: 80px;
    position: relative;
}

.timer-digit {
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
    color: #333;
}

.timer-label {
    font-size: 14px;
    margin-top: 10px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Layout Styles */
/* Classic Layout */
.countdown-timer.layout-classic .timer-unit {
    background: #f5f5f5;
}

/* Circle Layout */
.countdown-timer.layout-circle .timer-unit {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    padding: 0;
    position: relative;
}

.countdown-timer.layout-circle .timer-digit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.countdown-timer.layout-circle .timer-label {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 12px;
}

/* Vertical Slider Layout */
.countdown-timer.layout-vertical .timer-unit {
    overflow: hidden;
    position: relative;
}

.countdown-timer.layout-vertical .timer-digit {
    transition: transform 0.5s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .countdown-timer {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .timer-unit {
        min-width: 60px;
        padding: 15px;
    }
    
    .timer-digit {
        font-size: 24px;
    }
    
    .timer-label {
        font-size: 12px;
    }
    
    .countdown-timer.layout-circle .timer-unit {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .timer-unit {
        min-width: 50px;
        padding: 10px;
    }
    
    .timer-digit {
        font-size: 20px;
    }
    
    .timer-label {
        font-size: 10px;
    }
}

/* Expired Message */
.countdown-expired-message {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInDown {
    from {
        transform: translate3d(0, -100%, 0);
        visibility: visible;
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInUp {
    from {
        transform: translate3d(0, 100%, 0);
        visibility: visible;
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInLeft {
    from {
        transform: translate3d(-100%, 0, 0);
        visibility: visible;
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInRight {
    from {
        transform: translate3d(100%, 0, 0);
        visibility: visible;
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    50% {
        opacity: 1;
    }
}

@keyframes bounceIn {
    from, 20%, 40%, 60%, 80%, to {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(0.9, 0.9, 0.9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(0.97, 0.97, 0.97);
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

@keyframes flipInX {
    from {
        transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
        animation-timing-function: ease-in;
        opacity: 0;
    }
    40% {
        transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
        animation-timing-function: ease-in;
    }
    60% {
        transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
        opacity: 1;
    }
    80% {
        transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
    }
    to {
        transform: perspective(400px);
    }
}

@keyframes flipInY {
    from {
        transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
        animation-timing-function: ease-in;
        opacity: 0;
    }
    40% {
        transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
        animation-timing-function: ease-in;
    }
    60% {
        transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
        opacity: 1;
    }
    80% {
        transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
    }
    to {
        transform: perspective(400px);
    }
}

@keyframes rotateIn {
    from {
        transform-origin: center;
        transform: rotate3d(0, 0, 1, -200deg);
        opacity: 0;
    }
    to {
        transform-origin: center;
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@keyframes rollIn {
    from {
        opacity: 0;
        transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes pulse {
    from {
        transform: scale3d(1, 1, 1);
    }
    50% {
        transform: scale3d(1.05, 1.05, 1.05);
    }
    to {
        transform: scale3d(1, 1, 1);
    }
}

@keyframes flash {
    from, 50%, to {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0;
    }
}

@keyframes shake {
    from, to {
        transform: translate3d(0, 0, 0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translate3d(-10px, 0, 0);
    }
    20%, 40%, 60%, 80% {
        transform: translate3d(10px, 0, 0);
    }
}

@keyframes swing {
    20% {
        transform: rotate3d(0, 0, 1, 15deg);
    }
    40% {
        transform: rotate3d(0, 0, 1, -10deg);
    }
    60% {
        transform: rotate3d(0, 0, 1, 5deg);
    }
    80% {
        transform: rotate3d(0, 0, 1, -5deg);
    }
    to {
        transform: rotate3d(0, 0, 1, 0deg);
    }
}

@keyframes tada {
    from {
        transform: scale3d(1, 1, 1);
    }
    10%, 20% {
        transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
    }
    30%, 50%, 70%, 90% {
        transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
    }
    40%, 60%, 80% {
        transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
    }
    to {
        transform: scale3d(1, 1, 1);
    }
}

@keyframes wobble {
    from {
        transform: translate3d(0, 0, 0);
    }
    15% {
        transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
    }
    30% {
        transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
    }
    45% {
        transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
    }
    60% {
        transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
    }
    75% {
        transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes jello {
    from, 11.1%, to {
        transform: translate3d(0, 0, 0);
    }
    22.2% {
        transform: skewX(-12.5deg) skewY(-12.5deg);
    }
    33.3% {
        transform: skewX(6.25deg) skewY(6.25deg);
    }
    44.4% {
        transform: skewX(-3.125deg) skewY(-3.125deg);
    }
    55.5% {
        transform: skewX(1.5625deg) skewY(1.5625deg);
    }
    66.6% {
        transform: skewX(-0.78125deg) skewY(-0.78125deg);
    }
    77.7% {
        transform: skewX(0.390625deg) skewY(0.390625deg);
    }
    88.8% {
        transform: skewX(-0.1953125deg) skewY(-0.1953125deg);
    }
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

/* Animation Classes */
.animated {
    animation-fill-mode: both;
}

.animated.fadeIn {
    animation-name: fadeIn;
}

.animated.slideInDown {
    animation-name: slideInDown;
}

.animated.slideInUp {
    animation-name: slideInUp;
}

.animated.slideInLeft {
    animation-name: slideInLeft;
}

.animated.slideInRight {
    animation-name: slideInRight;
}

.animated.zoomIn {
    animation-name: zoomIn;
}

.animated.bounceIn {
    animation-name: bounceIn;
}

.animated.flipInX {
    animation-name: flipInX;
}

.animated.flipInY {
    animation-name: flipInY;
}

.animated.rotateIn {
    animation-name: rotateIn;
}

.animated.rollIn {
    animation-name: rollIn;
}

.animated.pulse {
    animation-name: pulse;
    animation-iteration-count: infinite;
}

.animated.flash {
    animation-name: flash;
    animation-iteration-count: infinite;
}

.animated.shake {
    animation-name: shake;
}

.animated.swing {
    animation-name: swing;
}

.animated.tada {
    animation-name: tada;
}

.animated.wobble {
    animation-name: wobble;
}

.animated.jello {
    animation-name: jello;
}

.animated.heartBeat {
    animation-name: heartBeat;
    animation-iteration-count: infinite;
}
/* Add these hover animations to countdown-timer.css */

/* Hover Effects */
.timer-unit {
    transition: all 0.3s ease;
}

/* Grow */
.countdown-timer.hover-grow .timer-unit:hover {
    transform: scale(1.1);
}

/* Shrink */
.countdown-timer.hover-shrink .timer-unit:hover {
    transform: scale(0.9);
}

/* Pulse Grow */
@keyframes pulse-grow {
    to { transform: scale(1.1); }
}
.countdown-timer.hover-pulse-grow .timer-unit:hover {
    animation: pulse-grow 0.3s linear infinite alternate;
}

/* Pulse Shrink */
@keyframes pulse-shrink {
    to { transform: scale(0.9); }
}
.countdown-timer.hover-pulse-shrink .timer-unit:hover {
    animation: pulse-shrink 0.3s linear infinite alternate;
}

/* Push */
.countdown-timer.hover-push .timer-unit:hover {
    transform: scale(0.95);
}

/* Pop */
.countdown-timer.hover-pop .timer-unit:hover {
    transform: scale(1.05);
}

/* Float */
@keyframes float {
    to { transform: translateY(-10px); }
}
.countdown-timer.hover-float .timer-unit:hover {
    animation: float 0.5s ease-in-out infinite alternate;
}

/* Sink */
@keyframes sink {
    to { transform: translateY(10px); }
}
.countdown-timer.hover-sink .timer-unit:hover {
    animation: sink 0.5s ease-in-out infinite alternate;
}

/* Bob */
@keyframes bob {
    0% { transform: translateY(-8px); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(-8px); }
}
.countdown-timer.hover-bob .timer-unit:hover {
    animation: bob 1s ease-in-out infinite;
}

/* Hang */
@keyframes hang {
    0% { transform: translateY(8px); }
    50% { transform: translateY(4px); }
    100% { transform: translateY(8px); }
}
.countdown-timer.hover-hang .timer-unit:hover {
    animation: hang 1s ease-in-out infinite;
}

/* Additional entrance animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-100%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes zoomInDown {
    from {
        opacity: 0;
        transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0);
    }
    60% {
        opacity: 1;
        transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);
    }
}

@keyframes zoomInLeft {
    from {
        opacity: 0;
        transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0);
    }
    60% {
        opacity: 1;
        transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0);
    }
}

@keyframes zoomInRight {
    from {
        opacity: 0;
        transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0);
    }
    60% {
        opacity: 1;
        transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0);
    }
}

@keyframes zoomInUp {
    from {
        opacity: 0;
        transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);
    }
    60% {
        opacity: 1;
        transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);
    }
}

@keyframes rubberBand {
    from { transform: scale3d(1, 1, 1); }
    30% { transform: scale3d(1.25, 0.75, 1); }
    40% { transform: scale3d(0.75, 1.25, 1); }
    50% { transform: scale3d(1.15, 0.85, 1); }
    65% { transform: scale3d(0.95, 1.05, 1); }
    75% { transform: scale3d(1.05, 0.95, 1); }
    to { transform: scale3d(1, 1, 1); }
}

/* Animation classes */
.animated.fadeInDown { animation-name: fadeInDown; }
.animated.fadeInLeft { animation-name: fadeInLeft; }
.animated.fadeInRight { animation-name: fadeInRight; }
.animated.fadeInUp { animation-name: fadeInUp; }
.animated.zoomInDown { animation-name: zoomInDown; }
.animated.zoomInLeft { animation-name: zoomInLeft; }
.animated.zoomInRight { animation-name: zoomInRight; }
.animated.zoomInUp { animation-name: zoomInUp; }
.animated.rubberBand { animation-name: rubberBand; }
