/* Стили для страницы поиска */

.filter-group {
    margin-bottom: 1.25rem;
}

.filter-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.filter-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.filter-select:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    outline: none;
}

/* Стили для чекбоксов фильтров */
.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff6b35;
    flex-shrink: 0;
}

.filter-checkbox-label {
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
    flex: 1;
}

.filter-checkbox-label:hover {
    color: #ff6b35;
}

.filter-checkbox:checked + .filter-checkbox-label {
    color: #ff6b35;
    font-weight: 500;
}

.search-page-header {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.search-form-wrapper {
    max-width: 100%;
}

.search-form-main {
    width: 100%;
}

.search-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.search-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    outline: none;
}

.search-submit-btn {
    padding: 0.875rem 2rem;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.search-results-header {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff8f5 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #ff6b35;
}

.search-results-title-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.search-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.search-icon-circle i {
    color: #ffffff;
    font-size: 1.5rem;
}

.search-title-content {
    flex: 1;
}

.search-results-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.search-query-info {
    font-size: 1.05rem;
    color: #495057;
    margin: 0;
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.query-text {
    color: #6c757d;
}

.query-highlight {
    color: #ff6b35;
    font-weight: 600;
    background: #fff3cd;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.results-count {
    color: #495057;
    font-weight: 500;
}

.count-number {
    color: #ff6b35;
    font-weight: 700;
    font-size: 1.15rem;
}

.active-filters-container {
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    margin-top: 1.5rem;
}

.active-filters-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.active-filters-label i {
    color: #ff6b35;
    margin-right: 0.5rem;
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.active-filter-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.875rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
}

.remove-all-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.875rem;
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.remove-all-filters:hover {
    background: #e9ecef;
    color: #ff6b35;
    border-color: #ff6b35;
    text-decoration: none;
}

.filter-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.filter-actions .btn-primary {
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.filter-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.search-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.empty-state-icon {
    font-size: 4rem;
    color: #e9ecef;
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.empty-state-text {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.search-suggestions {
    margin-top: 2rem;
}

.suggestions-title {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.suggestions-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.suggestion-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.suggestion-tag:hover {
    background: #ff6b35;
    color: #ffffff;
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.compact-game-category {
    display: inline-block;
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.compact-game-category i {
    font-size: 0.7rem;
    margin-right: 0.25rem;
}

/* Боковая панель */
.search-sidebar-wrapper {
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    z-index: 100;
    padding-bottom: 20px;
}

.search-sidebar-wrapper::-webkit-scrollbar {
    width: 6px;
}

.search-sidebar-wrapper::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.search-sidebar-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    border-radius: 10px;
}

.search-sidebar-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #f7931e, #ff6b35);
}

.search-sidebar {
    position: relative;
}

.sidebar-widget-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.sidebar-widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #ff6b35;
}

.sidebar-widget-title i {
    color: #ff6b35;
}

.popular-games-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-game-item {
    border-bottom: 1px solid #f0f2f5;
    padding-bottom: 1rem;
}

.popular-game-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-game-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.popular-game-link:hover {
    text-decoration: none;
}

.popular-game-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.popular-game-link:hover .popular-game-title {
    color: #ff6b35;
}

.popular-game-description {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

/* Подсветка найденных слов */
mark {
    background: #fff3cd;
    color: #856404;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .search-sidebar-wrapper {
        margin-top: 2rem;
        position: static;
        max-height: none;
        overflow-y: visible;
    }
    
    .search-sidebar {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
    }
    
    .search-submit-btn {
        width: 100%;
    }
    
    .search-results-title {
        font-size: 1.5rem;
    }
    
    .suggestions-tags {
        flex-direction: column;
        align-items: stretch;
    }
    
    .suggestion-tag {
        text-align: center;
    }
}

