/* journey.css - Стили для эффекта путешествия по звёздам */

@keyframes journeyPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7);
        opacity: 1;
        z-index: 10000;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        box-shadow: 0 0 50px 25px rgba(0, 255, 0, 0.5);
        opacity: 0.9;
        z-index: 10000;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
        opacity: 1;
        z-index: 10000;
    }
}

@keyframes journeyGlow {
    0% {
        filter: drop-shadow(0 0 5px #0f0) drop-shadow(0 0 10px #0f0) brightness(1.2);
    }
    50% {
        filter: drop-shadow(0 0 20px #0f0) drop-shadow(0 0 40px #0f0) brightness(1.5);
    }
    100% {
        filter: drop-shadow(0 0 5px #0f0) drop-shadow(0 0 10px #0f0) brightness(1.2);
    }
}

@keyframes journeyRipple {
    0% {
        width: 0px;
        height: 0px;
        opacity: 0.8;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

@keyframes journeyMessagePulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    40% {
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

/* Анимация растворения */
@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.journey-highlight {
    animation: journeyPulse 1.5s ease-in-out, journeyGlow 1.5s ease-in-out;
    position: relative;
    z-index: 10000 !important;
}

.journey-highlight::before,
.journey-highlight::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #0f0;
    border-radius: 50%;
    pointer-events: none;
    animation: journeyRipple 1.5s ease-out infinite;
}

.journey-highlight::after {
    animation-delay: 0.5s;
}

.journey-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
}

.journey-overlay.active {
    opacity: 1;
}

.journey-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    border: 2px solid #0f0;
    border-radius: 50px;
    padding: 12px 30px;
    color: #0f0;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 10px #0f0;
    z-index: 10001;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 0 20px rgba(0,255,0,0.3);
    /* Убираем анимацию пульсации, чтобы не менялся размер */
    opacity: 1;
    transition: opacity 0.3s;
}

/* Класс для скрытия сообщения */
.journey-message.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Класс для появления сообщения */
.journey-message.visible {
    opacity: 1;
}

/* Класс для растворения карточки */
.fade-out {
    animation: fadeOut 0.5s ease-in-out forwards;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .journey-message {
        top: 60px;
        font-size: 14px;
        padding: 8px 20px;
        white-space: normal;
        max-width: 90%;
        text-align: center;
    }
}