/********************************************************************************
 * Eclipse Tractus-X - Industry Core Hub Frontend
 *
 * Copyright (c) 2025 Contributors to the Eclipse Foundation
 *
 * See the NOTICE file(s) distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Apache License, Version 2.0 which is available at
 * https://www.apache.org/licenses/LICENSE-2.0.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the
 * License for the specific language govern in permissions and limitations
 * under the License.
 *
 * SPDX-License-Identifier: Apache-2.0
********************************************************************************/

@use '../../config/variables' as *;

.search-mode-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);

  .search-mode-title {
    color: $brand-text;
    margin-bottom: 16px;
    font-weight: 600;
    text-align: center;
  }

  .search-mode-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;

    .search-mode-button {
      flex: 1;
      padding: 10px 16px;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.3);
      background: rgba(255, 255, 255, 0.1);
      color: rgba(255, 255, 255, 0.8);
      font-size: 0.875rem;
      transition: all 0.2s ease;

      &:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
      }

      &.active {
        background: $blue-gradient-bg;
        color: $brand-text;
        border-color: $brand-text;
        font-weight: 600;
      }
    }
  }

  .search-mode-info {
    display: flex;
    gap: 4px;

    .info-chip {
      font-size: 0.75rem;
      height: 24px;
      background: rgba(255, 255, 255, 0.15);
      color: $brand-text;
      border: 1px solid rgba(255, 255, 255, 0.3);

      &.active-info {
        background: rgba(76, 175, 80, 0.2);
        border-color: #4caf50;
        color: #4caf50;
      }

      &.inactive-info {
        background: rgba(255, 152, 0, 0.2);
        border-color: #ff9800;
        color: #ff9800;
      }
    }
  }
}
