/**
 * CalcHourly - Animations CSS
 * Gradient and glow animations inspired by dashboard design
 */

/* Gradient Animation */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
        background-size: 160% 180%;
    }
    50% {
        background-position: 100% 50%;
        background-size: 100% 100%;
    }
    100% {
        background-position: 0% 50%;
        background-size: 160% 180%;
    }
}

/* Glow Animation */
@keyframes glowAnimation {
    0% {
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
    }
    25% {
        box-shadow: 0 0 40px rgba(255, 125, 186, 0.25);
    }
    50% {
        box-shadow: 0 0 30px rgba(134, 239, 172, 0.8);
    }
    75% {
        box-shadow: 0 0 40px rgba(255, 91, 70, 0.25);
    }
    100% {
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
    }
}

/* Glow Pulse Animation */
@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
    }
    50% {
        text-shadow: 0 0 25px rgba(134, 239, 172, 0.8);
    }
}

/* Time Gradient Class */
.time-gradient {
    background: linear-gradient(90deg, #8AEFAC, #3B82F6, #9332EA);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientAnimation 5s linear infinite;
}

/* AM/PM Gradient Class */
.am-gradient {
    background: linear-gradient(90deg, #93C5FD, #E0F2FE);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientAnimation 5s linear infinite;
}

/* Time Glow Class */
.time-glow {
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
    animation: glowPulse 2s infinite;
}

/* Check-in Button Animation */
.check-in-button {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
    animation: glowAnimation 5s linear infinite;
    transition: all 0.3s ease;
}

.check-in-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        rgba(56, 189, 248, 0.3),
        rgba(134, 239, 172, 0.3),
        rgba(147, 51, 234, 0.3));
    animation: gradientAnimation 5s linear infinite;
    transition: all 0.3s ease;
    z-index: -1;
}

.check-in-button:hover::before {
    transform: scale(1.2);
}

/* Home Button (3D Effect) */
.home-button {
    background: linear-gradient(145deg, rgb(16 16 16), rgb(59 59 59));
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: inset 1px 1px 6px rgb(255 255 255 / 50%),
                inset 4px 4px 10px rgb(0 0 0 / 50%),
                0 0 15px rgba(56, 189, 248, 0.2),
                inset -10px -12px 14px rgb(0 0 0 / 70%);
}

.home-button::after {
    z-index: 0;
    content: '';
    position: absolute;
    top: 22%;
    left: 23%;
    width: 36%;
    height: 32%;
    background: #000000;
    border: none;
    filter: blur(14px);
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Slide In Animation */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

/* Scale Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.3s ease-out;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.bounce {
    animation: bounce 1s infinite;
}

/* Rotate Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate {
    animation: rotate 2s linear infinite;
}

/* Progress Bar Animation */
@keyframes progressBar {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

.progress-bar-animated {
    animation: progressBar 1s ease-out;
}

/* Skeleton Loading Animation */
@keyframes skeleton {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0px,
        rgba(255, 255, 255, 0.1) 40px,
        rgba(255, 255, 255, 0.05) 80px
    );
    background-size: 200px 100%;
    animation: skeleton 1.5s infinite;
}
