/* Searching Animation Styles */

.searching-animation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(127, 176, 105, 0.05) 0%, rgba(127, 176, 105, 0.02) 100%);
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.searching-content {
    text-align: center;
    max-width: 500px;
}

.searching-mascot {
    width: 120px;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
}

/* Bounce animation for mascot */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animated-bounce {
    animation: bounce 2s ease-in-out infinite;
}

.searching-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.searching-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 2.5rem;
    transition: opacity 0.3s ease;
    line-height: 1.5;
}

/* Animated dots */
.searching-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.searching-dots .dot {
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.searching-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.searching-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

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

/* Progress bar */
.searching-progress {
    width: 100%;
    max-width: 300px;
    height: 4px;
    background-color: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin: 1rem auto;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    width: 0%;
    animation: progress 10s ease-out forwards;
    border-radius: 2px;
}

@keyframes progress {
    0% {
        width: 0%;
    }
    30% {
        width: 40%;
    }
    50% {
        width: 60%;
    }
    70% {
        width: 80%;
    }
    90% {
        width: 95%;
    }
    100% {
        width: 100%;
    }
}

.stores-checked {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-top: 1rem;
}

#stores-count {
    font-weight: 600;
    color: var(--primary);
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .searching-animation-container {
        min-height: 350px;
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .searching-mascot {
        width: 100px;
    }
    
    .searching-title {
        font-size: 1.5rem;
    }
    
    .searching-message {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .searching-dots .dot {
        width: 10px;
        height: 10px;
    }
}