/* index.css - Стили только для главной страницы (карта вселенной) */

/* Специфичные стили для поля поиска на главной */
#search-box {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.7);
    border: 1px solid #333;
    border-radius: 30px;
    display: flex;
    align-items: center;
    padding: 5px 5px 5px 20px;
    z-index: 100;
    backdrop-filter: blur(5px);
    gap: 10px;
    height: 46px;
    box-sizing: border-box;
}

#search-box input {
    background: transparent;
    border: none;
    color: #0f0;
    font-family: monospace;
    font-size: 14px;
    padding: 0;
    margin: 0;
    width: 200px;
    outline: none;
    height: 100%;
    line-height: normal;
    display: flex;
    align-items: center;
}

#search-box input::placeholder {
    color: #666;
    line-height: normal;
}

#search-box button {
    background: transparent;
    color: #0f0;
    border: 1px solid #0f0;
    border-radius: 20px;
    padding: 8px 20px;
    cursor: pointer;
    font-family: monospace;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
    box-sizing: border-box;
}

#search-box button:hover {
    background: #0f0;
    color: #000;
}

/* Стили для суперзвёзд на карте */
.superstar {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: filter 0.2s;
    will-change: transform;
    min-width: 1px;
    min-height: 1px;
    image-rendering: crisp-edges;
}

.superstar:hover {
    filter: drop-shadow(0 0 10px #0f0);
    z-index: 10;
}

.superstar.frozen {
    opacity: 0.7;
    filter: grayscale(0.5);
}

#star-highlight {
    filter: drop-shadow(0 0 20px #0f0);
    animation: pulse 1s ease-in-out;
    z-index: 100;
}

@keyframes pulse {
    0% { filter: drop-shadow(0 0 0 #0f0); }
    50% { filter: drop-shadow(0 0 30px #0f0); }
    100% { filter: drop-shadow(0 0 20px #0f0); }
}