/* Search Tooltip для первых посетителей */
.search-tooltip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.search-tooltip {
    position: fixed;
    /* bottom и right будут установлены через JavaScript */
    z-index: 9999;
    display: none;
    animation: slideInFromBottom 0.5s ease-out;
}

.search-tooltip-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    max-width: 300px;
    position: relative;
}

.search-tooltip-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-tooltip-title i {
    font-size: 24px;
    animation: pulse 2s infinite;
}

.search-tooltip-text {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    opacity: 0.95;
}

.search-tooltip-button {
    background: white;
    color: #667eea;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 14px;
}

.search-tooltip-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Стрелка указывающая на кнопку поиска */
.search-tooltip-arrow {
    position: absolute;
    bottom: -60px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 60px solid #764ba2;
    filter: drop-shadow(0 5px 10px rgba(118, 75, 162, 0.3));
    animation: bounceArrow 1.5s infinite;
}

/* Highlight для кнопки поиска */
.search-button-highlight {
    animation: highlightPulse 2s infinite !important;
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7) !important;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceArrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(102, 126, 234, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* Скрыть на маленьких экранах */
@media (max-width: 992px) {

    .search-tooltip,
    .search-tooltip-overlay {
        display: none !important;
    }
}

/* Адаптация для средних экранов */
@media (min-width: 993px) and (max-width: 1200px) {
    .search-tooltip-content {
        max-width: 250px;
        padding: 15px 20px;
    }

    .search-tooltip-title {
        font-size: 16px;
    }

    .search-tooltip-text {
        font-size: 13px;
    }
}