/* search-loading.css - Štýly pre loading indikátor */

/* Loading Overlay */
#search-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

/* Loading Box */
.search-loading-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Spinner */
.loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1a73e8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Text štýly */
.search-loading-box h3 {
    font-size: 24px;
    color: #1a73e8;
    margin-bottom: 15px;
    font-weight: 600;
}

.search-loading-box p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

#searching-word {
    font-weight: bold;
    color: #1a73e8;
    font-size: 18px;
}

/* Animované bodky */
.loading-dots {
    font-size: 30px;
    color: #1a73e8;
}

.loading-dots span {
    animation: blink 1.4s infinite;
    animation-fill-mode: both;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 60%, 100% {
        opacity: 0.2;
    }
    20% {
        opacity: 1;
    }
}

/* Responzívne štýly */
@media (max-width: 768px) {
    .search-loading-box {
        padding: 30px 20px;
        width: 95%;
    }
    
    .loading-spinner {
        width: 50px;
        height: 50px;
    }
    
    .search-loading-box h3 {
        font-size: 20px;
    }
    
    .search-loading-box p {
        font-size: 14px;
    }
    
    #searching-word {
        font-size: 16px;
    }
}

/* Alternatívny dizajn - modernejší */
.search-loading-box.modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.search-loading-box.modern h3,
.search-loading-box.modern p,
.search-loading-box.modern #searching-word {
    color: white;
}

.search-loading-box.modern .loading-spinner {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: white;
}

/* Minimalistický dizajn */
.search-loading-box.minimal {
    background: #f8f9fa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.search-loading-box.minimal h3 {
    font-size: 20px;
    font-weight: 400;
}

/* Pulse efekt pre celý box */
.search-loading-box {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}