/**
 * @module tabs
 * @description Simple, mobile-friendly tabs
 */

/**
 * Primary tabs component
 * Handles tab controls, content visibility, and mobile presentation states
 *
 * @selector .fs-tabs
 * @modifier .fs-tabs-enabled - Applied when tabs are enabled
 * @modifier .fs-tabs-active - Applied when a tab/content pair is active
 * @modifier .fs-tabs-mobile - Applied when mobile tab mode is active
 */
.fs-tabs {

  /**
   * Enabled state styles for desktop and mobile tab controls
   * @selector .fs-tabs-tab.fs-tabs-enabled
   * @selector .fs-tabs-tab_mobile.fs-tabs-enabled
   */
  &-tab&-enabled,
  &-tab_mobile&-enabled {
    cursor: pointer;
  }

  /**
   * Hidden state for inactive tab content panels; active panels keep their own display
   * @selector .fs-tabs-content.fs-tabs-enabled:not(.fs-tabs-active)
   */
  &-content&-enabled:not(&-active) {
    display: none;
  }

  //

  /**
   * Mobile-specific appearance reset for generated mobile tab button
   * @selector .fs-tabs-tab_mobile.fs-tabs-mobile
   */
  &-tab_mobile&-mobile {
    appearance: none;
  }

  /**
   * Hidden state for desktop tabs in mobile mode, and for mobile tabs outside it
   * @selector .fs-tabs-tab.fs-tabs-mobile
   * @selector .fs-tabs-tab_mobile:not(.fs-tabs-mobile)
   */
  &-tab&-mobile,
  &-tab_mobile:not(&-mobile) {
    display: none;
  }
}