/* Умная поисковая строка - современный Material Design */

.smart-search-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.smart-search-input {
    width: 100%;
    padding: 10px 20px 10px 50px;
    font-size: 1.2rem;
    border: 4px dashed rgba(100,100,100,.2);
    border-radius: 20px;
    outline: none;
    background: transparent;
    transition: all 0.2s ease;
    box-sizing: border-box;
    color: #fafafa;
    font-family: 'Play Bold', FontAwesome;
    text-align: center;
}

/* Переопределяем стили для интеграции с существующим дизайном */
.search .smart-search-container .form-control {
    padding: 10px 20px 10px 50px;
    border: 4px dashed rgba(100,100,100,.2);
    border-radius: 20px;
    font-size: 1.2rem;
    background: transparent;
    box-shadow: none;
    color: #fafafa;
    font-family: 'Play Bold', FontAwesome;
    text-align: center;
}

.smart-search-input:focus {
    border: 4px solid #fafafa;
    box-shadow: 0 0 5px #fafafa;
    background: transparent;
}

.smart-search-input:hover {
    border-color: rgba(150,150,150,.3);
}

.smart-search-input::placeholder {
    color: #7a7a7a;
    font-weight: 400;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(100,100,100,.4);
    font-size: 20px;
    pointer-events: none;
    transition: color 0.2s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    width: 20px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.smart-search-input:focus + .search-icon {
    color: #fafafa;
}

.smart-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(34,34,34,.95);
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255,255,255,.1);
    margin-top: 8px;
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.2s ease, opacity 0.1s ease;
    max-height: 400px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    display: none;
}

.smart-suggestions.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.suggestion-category {
    padding: 8px 16px 4px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255,255,255,.02);
    font-family: 'Play Regular';
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid rgba(255,255,255,.05);
    position: relative;
    color: #fafafa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(225,68,37,.1);
}

.suggestion-item.selected {
    background: rgba(225,68,37,.2);
}

.suggestion-icon {
    font-size: 16px;
    margin-right: 12px;
    width: 20px;
    text-align: center;
    opacity: 0.7;
    color: rgba(255,255,255,.6);
}

.suggestion-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.suggestion-text {
    font-size: 14px;
    color: #fafafa;
    font-weight: 400;
    margin-bottom: 2px;
    font-family: 'Play Regular';
}

.suggestion-extra {
    font-size: 12px;
    color: rgba(255,255,255,.6);
    opacity: 0.8;
    font-family: 'Play Regular';
}

.suggestion-category-badge {
    display: none;
}

.suggestion-highlight {
    background: rgba(225,68,37,.3);
    color: #fafafa;
    font-weight: 600;
    padding: 1px 2px;
    border-radius: 2px;
}

/* Анимация загрузки */
.suggestions-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #5f6368;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f1f3f4;
    border-top: 2px solid #4285f4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Пустое состояние */
.suggestions-empty {
    padding: 20px;
    text-align: center;
    color: #5f6368;
    font-size: 14px;
}

.suggestions-empty-icon {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* История поиска */
.suggestion-item.history {
    opacity: 0.8;
}

.suggestion-item.history:hover {
    opacity: 1;
}

/* Подсказки концертов - индикатор перехода */
.suggestion-item.concert-link {
    position: relative;
    cursor: pointer;
}

.suggestion-item.concert-link:hover {
    background: rgba(225,68,37,.15);
}

.link-indicator {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(225,68,37,.8);
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transition: all 0.2s ease;
}

.suggestion-item.concert-link:hover .link-indicator {
    opacity: 1;
    transform: translateY(-50%) translateX(-2px);
}

.clear-history {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #5f6368;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0;
    font-size: 12px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suggestion-item.history:hover .clear-history {
    opacity: 1;
}

.clear-history:hover {
    background: #f1f3f4;
    color: #d93025;
}

/* Статус поиска - скрыт */
.search-status {
    display: none !important;
}

/* Интеграция с существующим дизайном */
.search .smart-search-container {
    width: 100%;
    max-width: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .smart-search-container {
        max-width: 100%;
        margin: 0;
    }
    
    .smart-search-input {
        padding: 14px 16px 14px 44px;
        font-size: 16px;
    }
    
    .search-icon {
        left: 16px;
        font-size: 18px;
        height: 18px;
        width: 18px;
    }
    
    .smart-suggestions {
        margin-left: 0;
        margin-right: 0;
        border-radius: 8px;
    }
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    .smart-search-input {
        background: #303134;
        border-color: #5f6368;
        color: #e8eaed;
    }
    
    .smart-search-input::placeholder {
        color: #9aa0a6;
    }
    
    .smart-suggestions {
        background: #303134;
        border-color: #5f6368;
    }
    
    .suggestion-category {
        background: #202124;
        color: #9aa0a6;
    }
    
    .suggestion-item {
        border-color: #3c4043;
    }
    
    .suggestion-item:hover {
        background: #3c4043;
    }
    
    .suggestion-text {
        color: #e8eaed;
    }
    
    .suggestion-category-badge {
        background: #3c4043;
        color: #9aa0a6;
    }
}

/* Анимации появления */
.suggestion-item {
    animation: slideIn 0.2s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

.suggestion-item:nth-child(1) { animation-delay: 0.05s; }
.suggestion-item:nth-child(2) { animation-delay: 0.1s; }
.suggestion-item:nth-child(3) { animation-delay: 0.15s; }
.suggestion-item:nth-child(4) { animation-delay: 0.2s; }
.suggestion-item:nth-child(5) { animation-delay: 0.25s; }

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

/* SPOTLIGHT КНОПКИ - ИСПРАВЛЕННАЯ ВЕРСИЯ */

/* Контейнер кнопок */
.concert-spotlight-buttons {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
    margin-top: 18px !important;
    max-width: 550px !important;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
}

/* Базовые стили spotlight кнопок */
.spotlight-btn {
    font-family: 'Jost', sans-serif !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    text-decoration: none;
    color: #fff !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 42px !important;
    border: 2px solid transparent;
    backdrop-filter: blur(10px) !important;
}

/* Общий hover только для кнопок БЕЗ специфичных классов активности */
.spotlight-btn:hover:not(.spotlight-top10):not(.spotlight-new):not(.spotlight-discount):not(.spotlight-4u) {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    text-decoration: none;
    color: #fff;
}

.spotlight-btn:active {
    transform: translateY(-1px) scale(0.98) !important;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transition: all 0.1s ease;
}

.spotlight-text {
    font-family: 'Jost', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: 0.3px;
    color: #fff !important;
    opacity: 1 !important;
}

/* НЕАКТИВНЫЕ КНОПКИ - повышенная непрозрачность */
.spotlight-btn.inactive {
    transform: none !important;
}

.spotlight-btn.inactive:hover {
    transform: translateY(-1px) scale(1.01) !important;
}

/* Топ-10 - красный (уменьшенная насыщенность) */
.spotlight-top10.inactive {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.3) 0%, rgba(255, 150, 160, 0.2) 100%) !important;
    border-color: rgba(255, 71, 87, 0.2);
    box-shadow: 
        0 4px 8px rgba(255, 71, 87, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 15px rgba(255, 71, 87, 0.15) !important;
}

.spotlight-top10.inactive:hover {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.35) 0%, rgba(255, 150, 160, 0.25) 100%) !important;
    border-color: rgba(255, 71, 87, 0.25);
    box-shadow: 
        0 6px 12px rgba(255, 71, 87, 0.15),
        0 3px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 71, 87, 0.2) !important;
}

/* Новинки - синий (уменьшенная насыщенность) */
.spotlight-new.inactive {
    background: linear-gradient(135deg, rgba(55, 66, 250, 0.3) 0%, rgba(120, 130, 255, 0.2) 100%) !important;
    border-color: rgba(55, 66, 250, 0.2);
    box-shadow: 
        0 4px 8px rgba(55, 66, 250, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 15px rgba(55, 66, 250, 0.15) !important;
}

.spotlight-new.inactive:hover {
    background: linear-gradient(135deg, rgba(55, 66, 250, 0.35) 0%, rgba(120, 130, 255, 0.25) 100%) !important;
    border-color: rgba(55, 66, 250, 0.25);
    box-shadow: 
        0 6px 12px rgba(55, 66, 250, 0.15),
        0 3px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 20px rgba(55, 66, 250, 0.2) !important;
}

/* Скидки - темно-зеленый (уменьшенная насыщенность) */
.spotlight-discount.inactive {
    background: linear-gradient(135deg, rgba(22, 160, 133, 0.3) 0%, rgba(46, 204, 113, 0.2) 100%) !important;
    border-color: rgba(22, 160, 133, 0.2);
    box-shadow: 
        0 4px 8px rgba(22, 160, 133, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 15px rgba(22, 160, 133, 0.15) !important;
}

.spotlight-discount.inactive:hover {
    background: linear-gradient(135deg, rgba(22, 160, 133, 0.35) 0%, rgba(46, 204, 113, 0.25) 100%) !important;
    border-color: rgba(22, 160, 133, 0.25);
    box-shadow: 
        0 6px 12px rgba(22, 160, 133, 0.15),
        0 3px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 20px rgba(22, 160, 133, 0.2) !important;
}

/* Для вас - фиолетовый (уменьшенная насыщенность) */
.spotlight-4u.inactive {
    background: linear-gradient(135deg, rgba(165, 94, 234, 0.3) 0%, rgba(200, 150, 255, 0.2) 100%) !important;
    border-color: rgba(165, 94, 234, 0.2);
    box-shadow: 
        0 4px 8px rgba(165, 94, 234, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 15px rgba(165, 94, 234, 0.15) !important;
}

.spotlight-4u.inactive:hover {
    background: linear-gradient(135deg, rgba(165, 94, 234, 0.35) 0%, rgba(200, 150, 255, 0.25) 100%) !important;
    border-color: rgba(165, 94, 234, 0.25);
    box-shadow: 
        0 6px 12px rgba(165, 94, 234, 0.15),
        0 3px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 20px rgba(165, 94, 234, 0.2) !important;
}

/* АКТИВНЫЕ КНОПКИ - с пульсирующим свечением */
.spotlight-btn.active {
    animation: pulse-glow 2s ease-in-out infinite alternate;
}



@keyframes pulse-glow {
    0% { 
        box-shadow: 
            0 6px 12px rgba(0, 0, 0, 0.2),
            0 3px 6px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.5),
            0 0 30px rgba(255, 255, 255, 0.3);
    }
    100% { 
        box-shadow: 
            0 8px 16px rgba(0, 0, 0, 0.3),
            0 4px 8px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            0 0 40px rgba(255, 255, 255, 0.5);
    }
}

.spotlight-top10.active {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.8) 0%, rgba(255, 150, 160, 0.6) 100%) !important;
    border-color: rgba(255, 71, 87, 0.8);
    animation: pulse-glow-red 2s ease-in-out infinite alternate !important;
}

.spotlight-btn.spotlight-top10.active:hover {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.8) 0%, rgba(255, 150, 160, 0.6) 100%) !important;
    border-color: rgba(255, 71, 87, 0.8) !important;
    animation: pulse-glow-red 2s ease-in-out infinite alternate !important;
    transform: translateY(-2px) scale(1.02) !important;
}

@keyframes pulse-glow-red {
    0% { 
        box-shadow: 
            0 4px 8px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.5),
            0 0 40px rgba(255, 71, 87, 0.8);
    }
    100% { 
        box-shadow: 
            0 6px 12px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            0 0 60px rgba(255, 71, 87, 1.0);
    }
}

.spotlight-new.active {
    background: linear-gradient(135deg, rgba(55, 66, 250, 0.8) 0%, rgba(120, 130, 255, 0.6) 100%) !important;
    border-color: rgba(55, 66, 250, 0.8);
    animation: pulse-glow-blue 2s ease-in-out infinite alternate !important;
}

.spotlight-btn.spotlight-new.active:hover {
    background: linear-gradient(135deg, rgba(55, 66, 250, 0.8) 0%, rgba(120, 130, 255, 0.6) 100%) !important;
    border-color: rgba(55, 66, 250, 0.8) !important;
    animation: pulse-glow-blue 2s ease-in-out infinite alternate !important;
    transform: translateY(-2px) scale(1.02) !important;
}

@keyframes pulse-glow-blue {
    0% { 
        box-shadow: 
            0 4px 8px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.5),
            0 0 40px rgba(55, 66, 250, 0.8);
    }
    100% { 
        box-shadow: 
            0 6px 12px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            0 0 60px rgba(55, 66, 250, 1.0);
    }
}

.spotlight-discount.active {
    background: linear-gradient(135deg, rgba(22, 160, 133, 0.8) 0%, rgba(46, 204, 113, 0.6) 100%) !important;
    border-color: rgba(22, 160, 133, 0.8);
    animation: pulse-glow-green 2s ease-in-out infinite alternate !important;
}

.spotlight-btn.spotlight-discount.active:hover {
    background: linear-gradient(135deg, rgba(22, 160, 133, 0.8) 0%, rgba(46, 204, 113, 0.6) 100%) !important;
    border-color: rgba(22, 160, 133, 0.8) !important;
    animation: pulse-glow-green 2s ease-in-out infinite alternate !important;
    transform: translateY(-2px) scale(1.02) !important;
}



@keyframes pulse-glow-green {
    0% { 
        box-shadow: 
            0 4px 8px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.5),
            0 0 40px rgba(22, 160, 133, 0.8);
    }
    100% { 
        box-shadow: 
            0 6px 12px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            0 0 60px rgba(22, 160, 133, 1.0);
    }
}

.spotlight-4u.active {
    background: linear-gradient(135deg, rgba(165, 94, 234, 0.8) 0%, rgba(200, 150, 255, 0.6) 100%) !important;
    border-color: rgba(165, 94, 234, 0.8);
    animation: pulse-glow-purple 2s ease-in-out infinite alternate !important;
}

.spotlight-btn.spotlight-4u.active:hover {
    background: linear-gradient(135deg, rgba(165, 94, 234, 0.8) 0%, rgba(200, 150, 255, 0.6) 100%) !important;
    border-color: rgba(165, 94, 234, 0.8) !important;
    animation: pulse-glow-purple 2s ease-in-out infinite alternate !important;
    transform: translateY(-2px) scale(1.02) !important;
}

@keyframes pulse-glow-purple {
    0% { 
        box-shadow: 
            0 4px 8px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.5),
            0 0 40px rgba(165, 94, 234, 0.8);
    }
    100% { 
        box-shadow: 
            0 6px 12px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            0 0 60px rgba(165, 94, 234, 1.0);
    }
}

/* Общий hover эффект для активных кнопок - только если нет более специфичного стиля */
.spotlight-btn.active:hover:not(.spotlight-top10):not(.spotlight-new):not(.spotlight-discount):not(.spotlight-4u) {
    transform: translateY(-2px) scale(1.02) !important;
    /* Сохраняем анимацию при hover */
    animation: inherit !important;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .concert-spotlight-buttons {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-top: 15px !important;
        max-width: 100% !important;
    }
    
    .spotlight-btn {
        padding: 8px 10px !important;
        min-height: 38px !important;
        font-size: 12px !important;
    }
    
    .spotlight-text {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .spotlight-btn {
        padding: 7px 8px !important;
        min-height: 35px !important;
        font-size: 11px !important;
    }
    
    .spotlight-text {
        font-size: 11px !important;
    }
}

/* Дополнительные исправления для кроссбраузерности */
.search-icon {
    vertical-align: middle;
    text-align: center;
}

/* Специальное исправление для Windows браузеров */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .search-icon {
        top: 48%;
        transform: translateY(-48%);
    }
}

/* Дополнительное исправление для Chrome на Windows */
@supports (-webkit-appearance: none) {
    .search-icon {
        top: 48%;
        transform: translateY(-48%);
    }
}