/* ============================================
   TABS COMPONENT
   Tab navigation for content switching
   ============================================ */

.tabs {
  display: flex;
  border-bottom: 0.0625rem solid var(--pipeline-highlight-border);
  margin-bottom: 0.625rem;
}


/* ============================================
   TAB BUTTONS
   Individual tab button styling
   ============================================ */

.tab-button {
  /* Layout */
  background-color: transparent;
  border: none;
  border-bottom: 0.125rem solid transparent;
  padding: 0.625rem 1.25rem;
  cursor: pointer;
  
  /* Typography */
  color: var(--text-color);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  
  /* Animation */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-button.active {
  border-bottom: 0.125rem solid var(--pipeline-tabs-text);
  color: var(--pipeline-tabs-text);
}

.tab-button:hover {
  color: var(--pipeline-tabs-text);
}


/* ============================================
   TAB CONTENT
   Content panels for each tab
   ============================================ */

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}


/* ============================================
   RESPONSIVE DESIGN
   Mobile tab layout
   ============================================ */

/* Tablet: up to 1024px */
@media (max-width: 64rem) {
  .tabs {
    align-items: flex-start;
    word-break: break-word;
  }

  .tab-button {
    width: 100%;
    padding: 0.9375rem;
    margin-bottom: 0.625rem;
    text-align: center;
  }

  .tab-content {
    padding: 0.625rem;
  }
}

/* Mobile: up to 768px */
@media (max-width: 48rem) {
  .tabs {
    flex-direction: row;
    align-items: center;
  }

  .tab-button {
    width: 100%;
    text-align: center;
    padding: 0.9375rem;
    margin-bottom: 0.625rem;
    font-size: 0.875rem;
  }

  .tab-button.active {
    font-size: 0.875rem;
  }

  .tab-content {
    padding: 0.625rem;
  }
}
