/* Islamic Prayer Times Pro - Animations */

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

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

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

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(44, 95, 45, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(44, 95, 45, 0.4);
    }
}

@keyframes countdownPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Apply animations */
.iptp-shortcode-container {
    animation: fadeIn 0.6s ease-out;
}

.iptp-time-row {
    animation: slideInRight 0.4s ease-out backwards;
}

.iptp-time-row:nth-child(1) { animation-delay: 0.1s; }
.iptp-time-row:nth-child(2) { animation-delay: 0.15s; }
.iptp-time-row:nth-child(3) { animation-delay: 0.2s; }
.iptp-time-row:nth-child(4) { animation-delay: 0.25s; }
.iptp-time-row:nth-child(5) { animation-delay: 0.3s; }
.iptp-time-row:nth-child(6) { animation-delay: 0.35s; }

.iptp-row-current,
.iptp-row-next {
    animation: glow 2s ease-in-out infinite;
}

.iptp-time-value {
    animation: countdownPulse 1s ease-in-out infinite;
}

.iptp-current-badge,
.iptp-next-badge {
    animation: pulse 2s ease-in-out infinite;
}

/* Hover effects */
.iptp-time-row:hover {
    transform: translateX(4px);
}

.iptp-current-prayer-box,
.iptp-next-prayer-box {
    transition: transform 0.3s ease;
}

.iptp-current-prayer-box:hover,
.iptp-next-prayer-box:hover {
    transform: translateY(-4px);
}

/* Loading animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.iptp-loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(44, 95, 45, 0.3);
    border-top-color: #2c5f2d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
