/**
 * Section: Unified Search Panel
 * 統合検索パネル - タブ切り替え
 */

:where(.s-unified-search-001) {
  padding: var(--wp--preset--spacing--3-xl) var(--wp--preset--spacing--lg);
}

:where(.s-unified-search-001__container) {
  max-width: var(--wp--style--global--wide-size);
  margin: 0 auto;
}

/* Title */
:where(.s-unified-search-001__title) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--wp--preset--spacing--sm);
  font-size: var(--wp--preset--font-size--3-xl);
  font-weight: var(--wp--custom--font-weight--bold);
  text-align: center;
  margin: 0 0 var(--wp--preset--spacing--3-xl) 0;
  color: var(--wp--preset--color--basic-text);
}

:where(.s-unified-search-001__title .material-symbols-outlined) {
  font-size: 4rem;
  color: var(--wp--preset--color--primary);
}

/* Tabs Navigation */
:where(.s-unified-search-001__tabs) {
  display: flex;
  justify-content: center;
  gap: var(--wp--preset--spacing--sm);
  margin-bottom: var(--wp--preset--spacing--2-xl);
  border-bottom: var(--wp--custom--border--width--2) solid
    var(--wp--preset--color--gray-light);
}

:where(.s-unified-search-001__tab) {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--xs);
  padding: var(--wp--preset--spacing--base) var(--wp--preset--spacing--xl);
  background: transparent;
  border: none;
  border-bottom: var(--wp--custom--border--width--2) solid transparent;
  font-size: var(--wp--preset--font-size--base);
  font-weight: var(--wp--custom--font-weight--medium);
  color: var(--wp--preset--color--gray-dark);
  cursor: pointer;
  transition: all var(--wp--custom--transition--duration--base)
    var(--wp--custom--transition--timing--ease);
  margin-bottom: calc(var(--wp--custom--border--width--2) * -1);
}

:where(.s-unified-search-001__tab .material-symbols-outlined) {
  font-size: 2.4rem;
}

:where(.s-unified-search-001__tab:hover) {
  color: var(--wp--preset--color--primary);
  opacity: 0.9;
}

/* Active tab colors - theme-specific */
:where(.s-unified-search-001__tab[data-tab="clinic"].is-active) {
  color: var(--wp--preset--color--tertiary);
  border-bottom-color: var(--wp--preset--color--tertiary);
}

:where(.s-unified-search-001__tab[data-tab="treatment"].is-active) {
  color: var(--wp--preset--color--primary);
  border-bottom-color: var(--wp--preset--color--primary);
}

:where(.s-unified-search-001__tab[data-tab="column"].is-active) {
  color: var(--wp--preset--color--success);
  border-bottom-color: var(--wp--preset--color--success);
}

/* Tab Panels */
:where(.s-unified-search-001__panel) {
  display: none;
}

:where(.s-unified-search-001__panel.is-active) {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  :where(.s-unified-search-001) {
    padding: var(--wp--preset--spacing--2-xl) var(--wp--preset--spacing--base);
  }

  :where(.s-unified-search-001__title) {
    font-size: var(--wp--preset--font-size--2-xl);
    margin-bottom: var(--wp--preset--spacing--2-xl);
  }

  :where(.s-unified-search-001__title .material-symbols-outlined) {
    font-size: 3rem;
  }

  :where(.s-unified-search-001__tabs) {
    gap: var(--wp--preset--spacing--xs);
    margin-bottom: var(--wp--preset--spacing--xl);
  }

  :where(.s-unified-search-001__tab) {
    padding: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--base);
    font-size: var(--wp--preset--font-size--sm);
  }

  :where(.s-unified-search-001__tab .material-symbols-outlined) {
    font-size: 2rem;
  }

  :where(.s-unified-search-001__tab-text) {
    display: none;
  }

  /* モバイルではアイコンのみ表示 */
  :where(.s-unified-search-001__tab) {
    flex-direction: column;
    padding: var(--wp--preset--spacing--sm);
  }
}

@media (min-width: 769px) {
  :where(.s-unified-search-001__tab-text) {
    display: inline;
  }
}
